39 #include <wx/stattext.h>
40 #include <wx/statbox.h>
42 #include <wx/radiobut.h>
43 #include <wx/choice.h>
44 #include <wx/button.h>
94 SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
95 wxDialog::Create( parent,
id, caption, pos,
size, style );
100 GetSizer()->SetSizeHints(
this);
144 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
145 itemDialog1->SetSizer(itemBoxSizer2);
147 wxBoxSizer* itemBoxSizer3 =
new wxBoxSizer(wxVERTICAL);
148 itemBoxSizer2->Add(itemBoxSizer3, 0, 0, 0);
150 wxStaticBox* itemStaticBoxSizer4Static =
new wxStaticBox(itemDialog1,
wxID_ANY,
_(
"Settings"));
151 wxStaticBoxSizer* itemStaticBoxSizer4 =
new wxStaticBoxSizer(itemStaticBoxSizer4Static, wxVERTICAL);
152 itemBoxSizer3->Add(itemStaticBoxSizer4, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
154 wxBoxSizer* itemBoxSizer5 =
new wxBoxSizer(wxHORIZONTAL);
155 itemStaticBoxSizer4->Add(itemBoxSizer5, 1, wxALIGN_LEFT|wxALL, 5);
157 wxStaticText* itemStaticText6 =
new wxStaticText( itemDialog1, wxID_STATIC,
_(
"Font Size:"), wxDefaultPosition, wxDefaultSize, 0 );
158 itemBoxSizer5->Add(itemStaticText6, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
160 wxArrayString m_FontSizeStrings;
161 m_FontSizeStrings.Add(
_(
"6"));
162 m_FontSizeStrings.Add(
_(
"8"));
163 m_FontSizeStrings.Add(
_(
"10"));
164 m_FontSizeStrings.Add(
_(
"12"));
165 m_FontSizeStrings.Add(
_(
"14"));
166 m_FontSizeStrings.Add(
_(
"18"));
167 m_FontSizeStrings.Add(
_(
"20"));
168 m_FontSizeStrings.Add(
_(
"24"));
171 itemBoxSizer5->Add(
m_FontSize, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
173 wxBoxSizer* itemBoxSizer8 =
new wxBoxSizer(wxHORIZONTAL);
174 itemStaticBoxSizer4->Add(itemBoxSizer8, 0, wxALIGN_LEFT|wxALL, 5);
176 wxStaticText* itemStaticText9 =
new wxStaticText( itemDialog1, wxID_STATIC,
_(
"Feature Coloration:"), wxDefaultPosition, wxDefaultSize, 0 );
177 itemBoxSizer8->Add(itemStaticText9, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
179 wxArrayString m_FeatColorStrings;
180 m_FeatColorStrings.Add(
_(
"None"));
181 m_FeatColorStrings.Add(
_(
"All"));
182 m_FeatColorStrings.Add(
_(
"Selected"));
183 m_FeatColorStrings.Add(
_(
"MouseOver"));
186 itemBoxSizer8->Add(
m_FeatColor, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
188 wxBoxSizer* itemBoxSizer11 =
new wxBoxSizer(wxHORIZONTAL);
189 itemStaticBoxSizer4->Add(itemBoxSizer11, 0, wxALIGN_LEFT|wxALL, 5);
191 wxStaticText* itemStaticText12 =
new wxStaticText( itemDialog1, wxID_STATIC,
_(
"Codon Display:"), wxDefaultPosition, wxDefaultSize, 0 );
192 itemBoxSizer11->Add(itemStaticText12, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
194 wxArrayString m_CodonDisplayStrings;
195 m_CodonDisplayStrings.Add(
_(
"None"));
196 m_CodonDisplayStrings.Add(
_(
"All"));
197 m_CodonDisplayStrings.Add(
_(
"Selected"));
198 m_CodonDisplayStrings.Add(
_(
"MouseOver"));
201 itemBoxSizer11->Add(
m_CodonDisplay, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
203 wxBoxSizer* itemBoxSizer14 =
new wxBoxSizer(wxHORIZONTAL);
204 itemStaticBoxSizer4->Add(itemBoxSizer14, 0, wxALIGN_LEFT|wxALL, 5);
206 wxStaticText* itemStaticText15 =
new wxStaticText( itemDialog1, wxID_STATIC,
_(
"Display Coordinates:"), wxDefaultPosition, wxDefaultSize, 0 );
207 itemBoxSizer14->Add(itemStaticText15, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
209 wxArrayString m_DispCoordStrings;
210 m_DispCoordStrings.Add(
_(
"Absolute"));
211 m_DispCoordStrings.Add(
_(
"Relative"));
215 m_DispCoord->SetToolTip(
_(
"Display coordinates relative to start of sequence or to start of selection"));
216 itemBoxSizer14->Add(
m_DispCoord, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
218 wxGridSizer* itemGridSizer17 =
new wxGridSizer(0, 2, 0, 0);
219 itemBoxSizer2->Add(itemGridSizer17, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
221 wxButton* itemButton18 =
new wxButton( itemDialog1,
ID_SEQTEXTDLG_OK,
_(
"Ok"), wxDefaultPosition, wxDefaultSize, 0 );
222 itemGridSizer17->Add(itemButton18, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
224 wxButton* itemButton19 =
new wxButton( itemDialog1,
ID_SEQTEXTDLG_CANCEL,
_(
"Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
225 itemGridSizer17->Add(itemButton19, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
void SetFeatureColorationChoice(CSeqTextPaneConfig::EFeatureDisplayType ftype)
void SetShowAbsolutePosition(bool show_abs)
void SetFontSize(int font_size)
void SetCodonDrawChoice(CSeqTextPaneConfig::EFeatureDisplayType ftype)
CSeqTextPaneConfig::EFeatureDisplayType GetFeatureColorationChoice()
CSeqTextPaneConfig::EFeatureDisplayType GetCodonDrawChoice()
bool GetShowAbsolutePosition()
CwxSeqTextViewOptions()
Constructors.
static bool ShowToolTips()
Should we show tooltips?
wxChoice * m_CodonDisplay
void Init()
Initialises member variables.
void OnSeqtextdlgOkClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_SEQTEXTDLG_OK
CRef< CSeqTextConfig > m_Config
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
~CwxSeqTextViewOptions()
Destructor.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
bool Create(wxWindow *parent, wxWindowID id=10000, const wxString &caption=_("Sequence Text View Options"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX)
Creation.
void CreateControls()
Creates the controls and sizers.
void OnSeqtextdlgCancelClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_SEQTEXTDLG_CANCEL
static const char * str(char *buf, int n)
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static int StringToInt(const CTempString str, TStringToNumFlags flags=0, int base=10)
Convert string to int.
static string IntToString(int value, TNumToStringFlags flags=0, int base=10)
Convert int to string.
const struct ncbi::grid::netcache::search::fields::SIZE size
#define ID_SEQTEXTDLG_DISPLAYCOORD
#define ID_SEQTEXTDLG_FEATCOLOR
#define ID_SEQTEXTDLG_CANCEL
#define ID_SEQTEXTDLG_CODONDISPLAY
#define ID_SEQTEXTDLG_FONTSIZE
wxString ToWxString(const string &s)
string ToStdString(const wxString &s)