NCBI C++ ToolKit
wx_aln_properties_dlg.cpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 /* $Id: wx_aln_properties_dlg.cpp 45919 2021-01-12 14:51:14Z shkeda $
2  * ===========================================================================
3  *
4  * PUBLIC DOMAIN NOTICE
5  * National Center for Biotechnology Information
6  *
7  * This software/database is a "United States Government Work" under the
8  * terms of the United States Copyright Act. It was written as part of
9  * the author's official duties as a United States Government employee and
10  * thus cannot be copyrighted. This software/database is freely available
11  * to the public for use. The National Library of Medicine and the U.S.
12  * Government have not placed any restriction on its use or reproduction.
13  *
14  * Although all reasonable efforts have been taken to ensure the accuracy
15  * and reliability of the software and data, the NLM and the U.S.
16  * Government do not and cannot warrant the performance or results that
17  * may be obtained by using this software or data. The NLM and the U.S.
18  * Government disclaim all warranties, express or implied, including
19  * warranties of performance, merchantability or fitness for any particular
20  * purpose.
21  *
22  * Please cite the author in any work or product based on this material.
23  *
24  * ===========================================================================
25  *
26  * Authors:
27  *
28  * File Description:
29  *
30  */
31 #include <ncbi_pch.hpp>
32 
33 ////@begin includes
34 ////@end includes
35 
37 
41 
42 #include <wx/panel.h>
43 #include <wx/stattext.h>
44 #include <wx/statline.h>
45 #include <wx/statbox.h>
46 #include <wx/combobox.h>
47 #include <wx/sizer.h>
48 #include <wx/clrpicker.h>
49 #include <wx/checklst.h>
50 #include <wx/valgen.h>
51 #include <wx/bitmap.h>
52 #include <wx/icon.h>
53 #include <wx/checkbox.h>
54 
56 
57 
58 IMPLEMENT_DYNAMIC_CLASS( CAlnPropertiesDlg, CDialog )
59 
60 BEGIN_EVENT_TABLE( CAlnPropertiesDlg, CDialog )
61 
62 ////@begin CAlnPropertiesDlg event table entries
63  EVT_BUTTON( wxID_OK, CAlnPropertiesDlg::OnOkClick )
64 ////@end CAlnPropertiesDlg event table entries
65 
67 
69 {
70  Init();
71 }
72 
73 CAlnPropertiesDlg::CAlnPropertiesDlg( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
74 {
75  Init();
76  Create(parent, id, caption, pos, size, style);
77 }
78 
79 bool CAlnPropertiesDlg::Create( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
80 {
81 ////@begin CAlnPropertiesDlg creation
82  SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
83  CDialog::Create( parent, id, caption, pos, size, style );
84 
86  if (GetSizer())
87  {
88  GetSizer()->SetSizeHints(this);
89  }
90  Centre();
91 ////@end CAlnPropertiesDlg creation
92  return true;
93 }
94 
96 {
97 ////@begin CAlnPropertiesDlg destruction
98 ////@end CAlnPropertiesDlg destruction
99 }
100 
102 {
103  m_Style = NULL;
104 
105 ////@begin CAlnPropertiesDlg member initialisation
113 ////@end CAlnPropertiesDlg member initialisation
114 }
115 
117 {
118 ////@begin CAlnPropertiesDlg content construction
119  CAlnPropertiesDlg* itemCDialog1 = this;
120 
121  wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxVERTICAL);
122  itemCDialog1->SetSizer(itemBoxSizer2);
123 
124  wxFlexGridSizer* itemFlexGridSizer3 = new wxFlexGridSizer(0, 1, 0, 0);
125  itemBoxSizer2->Add(itemFlexGridSizer3, 1, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
126 
127  wxPanel* itemPanel4 = new wxPanel( itemCDialog1, ID_PANEL, wxDefaultPosition, wxDefaultSize, wxNO_BORDER|wxTAB_TRAVERSAL );
128  itemFlexGridSizer3->Add(itemPanel4, 1, wxGROW, 5);
129 
130  wxBoxSizer* itemBoxSizer5 = new wxBoxSizer(wxVERTICAL);
131  itemPanel4->SetSizer(itemBoxSizer5);
132 
133  wxFlexGridSizer* itemFlexGridSizer6 = new wxFlexGridSizer(0, 2, 0, 0);
134  itemFlexGridSizer3->Add(itemFlexGridSizer6, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
135 
136  wxStaticText* itemStaticText7 = new wxStaticText( itemCDialog1, wxID_STATIC, _("Visible Columns:"), wxDefaultPosition, wxDefaultSize, 0 );
137  itemFlexGridSizer6->Add(itemStaticText7, 0, wxALIGN_RIGHT|wxALIGN_TOP|wxALL, 5);
138 
139  wxArrayString m_VisColumnsListStrings;
140  m_VisColumnsList = new wxCheckListBox( itemCDialog1, ID_VIS_COLUMNS, wxDefaultPosition, wxSize(220, 130), m_VisColumnsListStrings, wxLB_SINGLE );
141  itemFlexGridSizer6->Add(m_VisColumnsList, 3, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
142 
143  wxStaticText* itemStaticText9 = new wxStaticText( itemCDialog1, wxID_STATIC, _("Text Font:"), wxDefaultPosition, wxDefaultSize, 0 );
144  itemFlexGridSizer6->Add(itemStaticText9, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
145 
146  wxBoxSizer* itemBoxSizer10 = new wxBoxSizer(wxHORIZONTAL);
147  itemFlexGridSizer6->Add(itemBoxSizer10, 1, wxGROW|wxALIGN_CENTER_VERTICAL, 5);
148 
149  wxArrayString m_TextFaceComboStrings;
150  m_TextFaceCombo = new wxComboBox( itemCDialog1, ID_TEXT_FACE_COMBO, wxEmptyString, wxDefaultPosition, wxDefaultSize, m_TextFaceComboStrings, wxCB_READONLY );
151  itemBoxSizer10->Add(m_TextFaceCombo, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5);
152 
153  wxArrayString m_TextSizeComboStrings;
154  m_TextSizeCombo = new wxComboBox( itemCDialog1, ID_TEXT_SIZE_COMBO, wxEmptyString, wxDefaultPosition, wxSize(50, -1), m_TextSizeComboStrings, wxCB_READONLY );
155  itemBoxSizer10->Add(m_TextSizeCombo, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
156 
157  wxStaticText* itemStaticText13 = new wxStaticText( itemCDialog1, wxID_STATIC, _("Sequence Font:"), wxDefaultPosition, wxDefaultSize, 0 );
158  itemFlexGridSizer6->Add(itemStaticText13, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
159 
160  wxBoxSizer* itemBoxSizer14 = new wxBoxSizer(wxHORIZONTAL);
161  itemFlexGridSizer6->Add(itemBoxSizer14, 0, wxGROW|wxALIGN_CENTER_VERTICAL, 5);
162 
163  wxArrayString m_SeqFaceComboStrings;
164  m_SeqFaceCombo = new wxComboBox( itemCDialog1, ID_SEQ_FACE_COMBO, wxEmptyString, wxDefaultPosition, wxDefaultSize, m_SeqFaceComboStrings, wxCB_READONLY );
165  itemBoxSizer14->Add(m_SeqFaceCombo, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5);
166 
167  wxArrayString m_SeqSizeComboStrings;
168  m_SeqSizeCombo = new wxComboBox( itemCDialog1, ID_FACE_SIZE_COMBO, wxEmptyString, wxDefaultPosition, wxSize(50, -1), m_SeqSizeComboStrings, wxCB_READONLY );
169  itemBoxSizer14->Add(m_SeqSizeCombo, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
170 
171  wxStaticText* itemStaticText17 = new wxStaticText( itemCDialog1, wxID_STATIC, _("Alignment:"), wxDefaultPosition, wxDefaultSize, 0 );
172  itemFlexGridSizer6->Add(itemStaticText17, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
173 
174  m_ShowIdenticalBases = new wxCheckBox( itemCDialog1, ID_IDENTICAL_BASES_CHECKBOX, _("Show Identical Bases with Anchor Row"), wxDefaultPosition, wxDefaultSize, 0 );
175  m_ShowIdenticalBases->SetValue(false);
176  m_ShowIdenticalBases->SetHelpText(_("If a master row is selected, show base letters instead of circle glyps"));
178  m_ShowIdenticalBases->SetToolTip(_("If a master row is selected, show base letters instead of circle glyps"));
179  itemFlexGridSizer6->Add(m_ShowIdenticalBases, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
180 
181  wxStaticText* itemStaticText19 = new wxStaticText( itemCDialog1, wxID_STATIC, _("Consensus:"), wxDefaultPosition, wxDefaultSize, 0 );
182  itemFlexGridSizer6->Add(itemStaticText19, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
183 
184  m_ShowConsensus = new wxCheckBox( itemCDialog1, ID_CONSENSUS_CHECKBOX, _("Show When Available"), wxDefaultPosition, wxDefaultSize, 0 );
185  m_ShowConsensus->SetValue(false);
186  m_ShowConsensus->SetHelpText(_("Show consensus for non-sparse alignments"));
188  m_ShowConsensus->SetToolTip(_("Show consensus for non-sparse alignments"));
189  itemFlexGridSizer6->Add(m_ShowConsensus, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
190 
191  itemFlexGridSizer6->AddGrowableCol(1);
192 
193  wxStaticLine* itemStaticLine21 = new wxStaticLine( itemCDialog1, wxID_STATIC, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
194  itemFlexGridSizer3->Add(itemStaticLine21, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
195 
196  wxBoxSizer* itemBoxSizer22 = new wxBoxSizer(wxHORIZONTAL);
197  itemFlexGridSizer3->Add(itemBoxSizer22, 0, wxGROW|wxALIGN_CENTER_VERTICAL, 5);
198 
199  wxFlexGridSizer* itemFlexGridSizer23 = new wxFlexGridSizer(0, 2, 0, 0);
200  itemBoxSizer22->Add(itemFlexGridSizer23, 1, wxALIGN_TOP, 5);
201 
202  wxStaticText* itemStaticText24 = new wxStaticText( itemCDialog1, wxID_STATIC, _("Text Color:"), wxDefaultPosition, wxDefaultSize, 0 );
203  itemFlexGridSizer23->Add(itemStaticText24, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
204 
205  wxColourPickerCtrl* itemColourPickerCtrl25 = new wxColourPickerCtrl( itemCDialog1, ID_TEXT_COLOR, wxColour(0, 0, 0), wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );
206  itemFlexGridSizer23->Add(itemColourPickerCtrl25, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
207 
208  wxStaticText* itemStaticText26 = new wxStaticText( itemCDialog1, wxID_STATIC, _("Back Color:"), wxDefaultPosition, wxDefaultSize, 0 );
209  itemFlexGridSizer23->Add(itemStaticText26, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
210 
211  wxColourPickerCtrl* itemColourPickerCtrl27 = new wxColourPickerCtrl( itemCDialog1, ID_BACK_COLOR, wxColour(0, 0, 0), wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );
212  itemFlexGridSizer23->Add(itemColourPickerCtrl27, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
213 
214  wxStaticText* itemStaticText28 = new wxStaticText( itemCDialog1, wxID_STATIC, _("Sequence Color:"), wxDefaultPosition, wxDefaultSize, 0 );
215  itemFlexGridSizer23->Add(itemStaticText28, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
216 
217  wxColourPickerCtrl* itemColourPickerCtrl29 = new wxColourPickerCtrl( itemCDialog1, ID_SEQ_COLOR, wxColour(0, 0, 0), wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );
218  itemFlexGridSizer23->Add(itemColourPickerCtrl29, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
219 
220  wxStaticText* itemStaticText30 = new wxStaticText( itemCDialog1, wxID_STATIC, _("Frame Color:"), wxDefaultPosition, wxDefaultSize, 0 );
221  itemFlexGridSizer23->Add(itemStaticText30, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
222 
223  wxColourPickerCtrl* itemColourPickerCtrl31 = new wxColourPickerCtrl( itemCDialog1, ID_FRAME_COLOR, wxColour(0, 0, 0), wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );
224  itemFlexGridSizer23->Add(itemColourPickerCtrl31, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
225 
226  itemFlexGridSizer23->AddGrowableCol(0);
227 
228  wxFlexGridSizer* itemFlexGridSizer32 = new wxFlexGridSizer(0, 2, 0, 0);
229  itemBoxSizer22->Add(itemFlexGridSizer32, 1, wxALIGN_TOP, 5);
230 
231  wxStaticText* itemStaticText33 = new wxStaticText( itemCDialog1, wxID_STATIC, _("Segments Color:"), wxDefaultPosition, wxDefaultSize, 0 );
232  itemFlexGridSizer32->Add(itemStaticText33, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
233 
234  wxColourPickerCtrl* itemColourPickerCtrl34 = new wxColourPickerCtrl( itemCDialog1, ID_SEG_COLOR, wxColour(0, 0, 0), wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );
235  itemFlexGridSizer32->Add(itemColourPickerCtrl34, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
236 
237  wxStaticText* itemStaticText35 = new wxStaticText( itemCDialog1, wxID_STATIC, _("Selected Text Color:"), wxDefaultPosition, wxDefaultSize, 0 );
238  itemFlexGridSizer32->Add(itemStaticText35, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
239 
240  wxColourPickerCtrl* itemColourPickerCtrl36 = new wxColourPickerCtrl( itemCDialog1, ID_SEL_TEXT_COLOR, wxColour(0, 0, 0), wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );
241  itemFlexGridSizer32->Add(itemColourPickerCtrl36, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
242 
243  wxStaticText* itemStaticText37 = new wxStaticText( itemCDialog1, wxID_STATIC, _("Selected Back Color:"), wxDefaultPosition, wxDefaultSize, 0 );
244  itemFlexGridSizer32->Add(itemStaticText37, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
245 
246  wxColourPickerCtrl* itemColourPickerCtrl38 = new wxColourPickerCtrl( itemCDialog1, ID_SEL_BACK_COLOR, wxColour(0, 0, 0), wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );
247  itemFlexGridSizer32->Add(itemColourPickerCtrl38, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
248 
249  wxStaticText* itemStaticText39 = new wxStaticText( itemCDialog1, wxID_STATIC, _("Focused Back Color:"), wxDefaultPosition, wxDefaultSize, 0 );
250  itemFlexGridSizer32->Add(itemStaticText39, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
251 
252  wxColourPickerCtrl* itemColourPickerCtrl40 = new wxColourPickerCtrl( itemCDialog1, ID_FOCUSED_BACK_COLOR, wxColour(0, 0, 0), wxDefaultPosition, wxDefaultSize, wxCLRP_DEFAULT_STYLE );
253  itemFlexGridSizer32->Add(itemColourPickerCtrl40, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
254 
255  itemFlexGridSizer32->AddGrowableCol(0);
256 
257  wxStaticLine* itemStaticLine41 = new wxStaticLine( itemCDialog1, wxID_STATIC, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
258  itemFlexGridSizer3->Add(itemStaticLine41, 0, wxALIGN_CENTER_HORIZONTAL|wxGROW|wxALL, 5);
259 
260  itemFlexGridSizer3->AddGrowableRow(0);
261  itemFlexGridSizer3->AddGrowableCol(0);
262 
263  wxStdDialogButtonSizer* itemStdDialogButtonSizer42 = new wxStdDialogButtonSizer;
264 
265  itemBoxSizer2->Add(itemStdDialogButtonSizer42, 0, wxALIGN_RIGHT|wxALL, 5);
266  wxButton* itemButton43 = new wxButton( itemCDialog1, wxID_OK, _("&OK"), wxDefaultPosition, wxDefaultSize, 0 );
267  itemStdDialogButtonSizer42->AddButton(itemButton43);
268 
269  wxButton* itemButton44 = new wxButton( itemCDialog1, wxID_CANCEL, _("&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
270  itemStdDialogButtonSizer42->AddButton(itemButton44);
271 
272  itemStdDialogButtonSizer42->Realize();
273 
274  // Set validators
275  m_VisColumnsList->SetValidator( wxGenericValidator(& m_VisColumns) );
276  m_TextFaceCombo->SetValidator( wxGenericValidator(& m_TextFace) );
277  m_TextSizeCombo->SetValidator( wxGenericValidator(& m_TextSize) );
278  m_SeqFaceCombo->SetValidator( wxGenericValidator(& m_SeqFace) );
279  m_SeqSizeCombo->SetValidator( wxGenericValidator(& m_SeqSize) );
280  itemColourPickerCtrl25->SetValidator( CColorPickerValidator(& m_TextColor) );
281  itemColourPickerCtrl27->SetValidator( CColorPickerValidator(& m_BackColor) );
282  itemColourPickerCtrl29->SetValidator( CColorPickerValidator(& m_SeqColor) );
283  itemColourPickerCtrl31->SetValidator( CColorPickerValidator(& m_FrameColor) );
284  itemColourPickerCtrl34->SetValidator( CColorPickerValidator(& m_SegmentColor) );
285  itemColourPickerCtrl36->SetValidator( CColorPickerValidator(& m_SelTextColor) );
286  itemColourPickerCtrl38->SetValidator( CColorPickerValidator(& m_SelBackColor) );
287  itemColourPickerCtrl40->SetValidator( CColorPickerValidator(& m_FocusedColor) );
288 ////@end CAlnPropertiesDlg content construction
289 }
290 
292 {
293  return true;
294 }
295 wxBitmap CAlnPropertiesDlg::GetBitmapResource( const wxString& name )
296 {
297  // Bitmap retrieval
298 ////@begin CAlnPropertiesDlg bitmap retrieval
299  wxUnusedVar(name);
300  return wxNullBitmap;
301 ////@end CAlnPropertiesDlg bitmap retrieval
302 }
303 wxIcon CAlnPropertiesDlg::GetIconResource( const wxString& name )
304 {
305  // Icon retrieval
306 ////@begin CAlnPropertiesDlg icon retrieval
307  wxUnusedVar(name);
308  return wxNullIcon;
309 ////@end CAlnPropertiesDlg icon retrieval
310 }
311 
312 
314 {
315  m_Style = &style;
316 
317  // check visible columns
318  m_AllColumns.clear();
319  m_VisColumns.Clear();
320 
321  size_t n = m_Style->m_Columns.size();
322  for( size_t i = 0; i < n; i++ ) {
324  m_AllColumns.push_back(col.m_Name);
325  if(col.m_Visible) {
326  m_VisColumns.Add((int)i);
327  }
328  }
329 
330  // initialize Columns Check List
332 
333  vector<string> values;
334 
335  // Populate Font Face combos
336  /// Fill font face and size choices
337  wxArrayString font_faces;
338  wxArrayString font_sizes;
339 
340  std::vector<string> faces;
341  std::vector<string> sizes;
342 
345 
346  size_t idx;
347  for (idx = 0; idx<faces.size(); ++idx)
348  font_faces.Add(ToWxString(faces[idx]));
349  for (idx = 0; idx<sizes.size(); ++idx)
350  font_sizes.Add(ToWxString(sizes[idx]));
351 
354 
357 
358  m_TextFaceCombo->Clear();
359  m_TextFaceCombo->Append(font_faces);
360  m_TextFaceCombo->SetStringSelection(m_TextFace);
361 
362  m_SeqFaceCombo->Clear();
363  m_SeqFaceCombo->Append(font_faces);
364  m_SeqFaceCombo->SetStringSelection(m_SeqFace);
365 
366  m_TextSizeCombo->Clear();
367  m_TextSizeCombo->Append(font_sizes);
368  m_TextSizeCombo->SetStringSelection(m_TextSize);
369 
370  m_SeqSizeCombo->Clear();
371  m_SeqSizeCombo->Append(font_sizes);
372  m_SeqSizeCombo->SetStringSelection(m_SeqSize);
373 
376 
385 }
386 
387 
388 void CAlnPropertiesDlg::OnOkClick(wxCommandEvent& event)
389 {
390  if(TransferDataFromWindow()) {
392 
393  // reset Visible by default
395  it->m_Visible = false;
396  }
397 
398  for( size_t i = 0; i < m_VisColumns.GetCount(); i++ ) {
399  int index = m_VisColumns[i];
400  m_Style->m_Columns[index].m_Visible = true;
401  }
402 
404  unsigned int font_size = NStr::StringToInt(ToStdString(m_TextSize));
406  m_Style->m_TextFont.SetFontSize(font_size);
407 
411  m_Style->m_SeqFont.SetFontSize(font_size);
413  m_Style->m_ShowConsensus = m_ShowConsensus->GetValue();
414 
423 
424  EndModal(wxID_OK);
425  }
426 }
427 
428 
430 
CwxAlnPropertiesDlg.
wxCheckListBox * m_VisColumnsList
CWidgetDisplayStyle * m_Style
wxIcon GetIconResource(const wxString &name)
bool Create(wxWindow *parent, wxWindowID id=ID_CWXALNPROPERTIESDLG, const wxString &caption=_("Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
wxBitmap GetBitmapResource(const wxString &name)
void SetParams(CWidgetDisplayStyle &style)
void OnOkClick(wxCommandEvent &event)
vector< string > m_AllColumns
CDialog.
Definition: dialog.hpp:47
virtual void EndModal(int retCode)
Definition: dialog.cpp:142
CWidgetDisplayStyle is a collection of display properties common for all rows in the CAlnMultiWidget.
bool m_ShowIdenticalBases
sequence font
CGlTextureFont m_TextFont
vector< SColumn > TColumns
CGlTextureFont m_SeqFont
text font (description, positions etc.)
virtual const CRgbaColor & GetColor(EColorType type) const
virtual void SetColor(EColorType type, const CRgbaColor &color)
#define _(proto)
Definition: ct_nlmzip_i.h:78
void Init_wxControl(wxControlWithItems &combo, const vector< string > &values)
FillComboBox() initializes wxWidgets controls with a list of text strings; works for wxListBox,...
static void Init(void)
Definition: cursor6.c:76
static const column_t columns[]
Definition: utf8_2.c:22
#define NON_CONST_ITERATE(Type, Var, Cont)
Non constant version of ITERATE macro.
Definition: ncbimisc.hpp:822
#define NULL
Definition: ncbistd.hpp:225
static void GetAllFaces(vector< string > &faces)
GetAllFaces() and GetAllSizes() fills containers with strings repesenting all available enumerated (p...
static string FaceToString(EFontFace face)
funtions below provide conversion of font parameters to strings and back.
void SetFontFace(EFontFace face, bool use_bitmap_overrides=true)
EFontFace GetFontFace() const
EFontFace
Set of pre-defined fonts for which we know we have valid font files.
static void GetAllSizes(vector< string > &sizes)
void SetFontSize(unsigned int size)
Set/get font size in points.
static EFontFace FaceFromString(const string &str)
Selects a font face given a string or eFontFace_LastFont on failure.
unsigned int GetFontSize() const
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
static int StringToInt(const CTempString str, TStringToNumFlags flags=0, int base=10)
Convert string to int.
Definition: ncbistr.cpp:630
static string IntToString(int value, TNumToStringFlags flags=0, int base=10)
Convert int to string.
Definition: ncbistr.hpp:5086
END_EVENT_TABLE()
int i
yy_size_t n
const struct ncbi::grid::netcache::search::fields::SIZE size
wxString ToWxString(const string &s)
Definition: wx_utils.hpp:173
string ToStdString(const wxString &s)
Definition: wx_utils.hpp:161
Modified on Sat Jul 13 13:40:31 2024 by modify_doxy.py rev. 669887