33 #include <wx/stattext.h>
34 #include <wx/button.h>
35 #include <wx/choice.h>
36 #include <wx/checkbox.h>
37 #include <wx/statbox.h>
38 #include <wx/radiobox.h>
39 #include <wx/bitmap.h>
105 SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
106 CDialog::Create( parent,
id, caption, pos,
size, style );
111 GetSizer()->SetSizeHints(
this);
164 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
165 itemCDialog1->SetSizer(itemBoxSizer2);
167 wxStaticBox* itemStaticBoxSizer3Static =
new wxStaticBox(itemCDialog1,
wxID_ANY,
_(
"Format"));
168 wxStaticBoxSizer* itemStaticBoxSizer3 =
new wxStaticBoxSizer(itemStaticBoxSizer3Static, wxHORIZONTAL);
169 itemBoxSizer2->Add(itemStaticBoxSizer3, 0, wxGROW|wxALL, 5);
171 wxArrayString m_ViewTypeCtrlStrings;
172 m_ViewTypeCtrl =
new wxChoice( itemCDialog1,
ID_CHOICE5, wxDefaultPosition, wxDefaultSize, m_ViewTypeCtrlStrings, 0 );
173 itemStaticBoxSizer3->Add(
m_ViewTypeCtrl, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
175 itemStaticBoxSizer3->Add(7, 8, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5);
177 wxStaticText* itemStaticText6 =
new wxStaticText( itemCDialog1, wxID_STATIC,
_(
"Font Size:"), wxDefaultPosition, wxDefaultSize, 0 );
178 itemStaticBoxSizer3->Add(itemStaticText6, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
180 wxArrayString m_FontSizeCtrlStrings;
181 m_FontSizeCtrlStrings.Add(
_(
"8"));
182 m_FontSizeCtrlStrings.Add(
_(
"10"));
183 m_FontSizeCtrlStrings.Add(
_(
"12"));
184 m_FontSizeCtrlStrings.Add(
_(
"14"));
185 m_FontSizeCtrl =
new wxChoice( itemCDialog1,
ID_CHOICE2, wxDefaultPosition, wxDefaultSize, m_FontSizeCtrlStrings, 0 );
187 itemStaticBoxSizer3->Add(
m_FontSizeCtrl, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
189 wxStaticBox* itemStaticBoxSizer8Static =
new wxStaticBox(itemCDialog1,
wxID_ANY,
_(
"Flat File Options"));
190 wxStaticBoxSizer* itemStaticBoxSizer8 =
new wxStaticBoxSizer(itemStaticBoxSizer8Static, wxVERTICAL);
191 itemBoxSizer2->Add(itemStaticBoxSizer8, 0, wxGROW|wxALL, 5);
193 wxBoxSizer* itemBoxSizer9 =
new wxBoxSizer(wxHORIZONTAL);
194 itemStaticBoxSizer8->Add(itemBoxSizer9, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 0);
196 wxStaticText* itemStaticText10 =
new wxStaticText( itemCDialog1, wxID_STATIC,
_(
"Mode"), wxDefaultPosition, wxDefaultSize, 0 );
197 itemBoxSizer9->Add(itemStaticText10, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
199 wxArrayString m_FlatFileModeCtrlStrings;
200 m_FlatFileModeCtrlStrings.Add(
_(
"Editing"));
201 m_FlatFileModeCtrlStrings.Add(
_(
"Public Preview"));
206 wxFlexGridSizer* itemFlexGridSizer12 =
new wxFlexGridSizer(0, 2, 0, 0);
207 itemStaticBoxSizer8->Add(itemFlexGridSizer12, 0, wxALIGN_LEFT|wxALL, 5);
211 itemFlexGridSizer12->Add(
m_OpenExpandedCtrl, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
215 itemFlexGridSizer12->Add(
m_HideVariationsCtrl, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
217 itemFlexGridSizer12->Add(7, 8, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
221 itemFlexGridSizer12->Add(
m_HideStsCtrl, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
223 wxBoxSizer* itemBoxSizer17 =
new wxBoxSizer(wxVERTICAL);
224 itemStaticBoxSizer8->Add(itemBoxSizer17, 0, wxALIGN_LEFT|wxALL, 5);
226 m_ShowSeq =
new wxCheckBox( itemCDialog1,
ID_CHECKBOX5,
_(
"Show sequence instead of scaffold instructions"), wxDefaultPosition, wxDefaultSize, 0 );
228 itemBoxSizer17->Add(
m_ShowSeq, 0, wxALIGN_LEFT|wxALL, 5);
234 wxArrayString m_FeatureModeCtrlStrings;
235 m_FeatureModeCtrlStrings.Add(
_(
"Show gene model"));
236 m_FeatureModeCtrlStrings.Add(
_(
"All features in range"));
237 m_FeatureModeCtrl =
new wxRadioBox( itemCDialog1,
ID_RADIOBOX,
_(
"Feature Mode"), wxDefaultPosition, wxDefaultSize, m_FeatureModeCtrlStrings, 1, wxRA_SPECIFY_ROWS );
241 wxStaticBox* itemStaticBoxSizer21Static =
new wxStaticBox(itemCDialog1,
wxID_ANY,
_(
"ASN Options"));
242 wxStaticBoxSizer* itemStaticBoxSizer21 =
new wxStaticBoxSizer(itemStaticBoxSizer21Static, wxHORIZONTAL);
243 itemBoxSizer2->Add(itemStaticBoxSizer21, 0, wxGROW|wxALL, 5);
249 itemStaticBoxSizer21->Add(7, 8, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5);
255 wxStaticLine* itemStaticLine25 =
new wxStaticLine( itemCDialog1, wxID_STATIC, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
256 itemBoxSizer2->Add(itemStaticLine25, 0, wxGROW|wxALL, 5);
258 wxStdDialogButtonSizer* itemStdDialogButtonSizer26 =
new wxStdDialogButtonSizer;
260 itemBoxSizer2->Add(itemStdDialogButtonSizer26, 0, wxALIGN_RIGHT|wxALL, 5);
261 wxButton* itemButton27 =
new wxButton( itemCDialog1, wxID_OK,
_(
"&OK"), wxDefaultPosition, wxDefaultSize, 0 );
262 itemStdDialogButtonSizer26->AddButton(itemButton27);
264 wxButton* itemButton28 =
new wxButton( itemCDialog1, wxID_CANCEL,
_(
"&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
265 itemStdDialogButtonSizer26->AddButton(itemButton28);
267 wxButton* itemButton29 =
new wxButton( itemCDialog1, wxID_APPLY,
_(
"&Apply"), wxDefaultPosition, wxDefaultSize, 0 );
268 itemStdDialogButtonSizer26->AddButton(itemButton29);
270 itemStdDialogButtonSizer26->Realize();
306 if (selected >= 0 && (
unsigned int)selected < m_FontSizeCtrl->GetCount())
310 if (selected >= 0 && (
unsigned int)selected < m_FlatFileModeCtrl->GetCount())
317 if (selected >= 0 && (
unsigned int)selected < m_FeatureModeCtrl->GetCount())
372 if (wxNOT_FOUND != selected) {
382 if (wxNOT_FOUND != selected) {
391 if (wxNOT_FOUND != selected) {
413 if (wxNOT_FOUND != selected) {
487 if (wxNOT_FOUND != selected) {
void SetShowComponentFeats(bool value=true)
bool GetOpenExpanded() const
void SetShowASNTypes(bool value)
TViewType GetViewType() const
void SetViewType(TViewType value)
void SetFeatMode(int value)
bool CanShowFlatFile() const
void SetHideVariations(bool value)
void SetHideSTS(bool value)
int GetFlatFileMode() const
bool GetShowSequence() const
void SetShowSequence(bool value)
void SetFlatFileMode(int value)
void SetFontSize(int value)
bool GetShowComponentFeats() const
bool GetShowASNPathToRoot() const
bool GetShowASNTypes() const
void SetOpenExpanded(bool value)
bool CanShowFastA() const
bool GetHideVariations() const
bool ObjectIsFeature() const
void SetShowASNPathToRoot(bool value)
void Init()
Initialises member variables.
void OnViewTypeSelected(wxCommandEvent &event)
wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_CHOICE5
wxCheckBox * m_ShowASNTypesCtrl
wxCheckBox * m_HideStsCtrl
wxChoice * m_FlatFileModeCtrl
wxChoice * m_ViewTypeCtrl
wxRadioBox * m_FeatureModeCtrl
void OnOkClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK
void x_TransferDataToWindow()
void OnApplyClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_APPLY
wxCheckBox * m_ShowASNPathToRootCtrl
~CTextViewOptionsDlg()
Destructor.
static bool ShowToolTips()
Should we show tooltips?
wxCheckBox * m_HideVariationsCtrl
bool Create(wxWindow *parent, wxWindowID id=ID_CTEXTVIEWOPTIONSDLG, const wxString &caption=_("Text View Options"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(266, 184), long style=wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
CTextViewOptionsDlg()
Constructors.
wxChoice * m_FontSizeCtrl
void CreateControls()
Creates the controls and sizers.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
wxCheckBox * m_ShowComponentFeats
wxCheckBox * m_OpenExpandedCtrl
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const struct ncbi::grid::netcache::search::fields::SIZE size