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

Go to the SVN repository for this file.

1 /* $Id: text_view_options_dlg.cpp 41134 2018-05-31 15:32:04Z katargir $
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: Roman Katargin
27  */
28 
29 
30 #include <ncbi_pch.hpp>
31 
32 #include <wx/sizer.h>
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>
40 #include <wx/icon.h>
41 
42 ////@begin includes
43 ////@end includes
44 
48 
49 ////@begin XPM images
50 ////@end XPM images
51 
53 
54 /*!
55  * CTextViewOptionsDlg type definition
56  */
57 
58 IMPLEMENT_DYNAMIC_CLASS( CTextViewOptionsDlg, CDialog )
59 
60 
61 /*!
62  * CTextViewOptionsDlg event table definition
63  */
64 
65 BEGIN_EVENT_TABLE( CTextViewOptionsDlg, CDialog )
66 
67 ////@begin CTextViewOptionsDlg event table entries
69 
70  EVT_BUTTON( wxID_OK, CTextViewOptionsDlg::OnOkClick )
71 
72  EVT_BUTTON( wxID_APPLY, CTextViewOptionsDlg::OnApplyClick )
73 
74 ////@end CTextViewOptionsDlg event table entries
75 
77 
78 
79 /*!
80  * CTextViewOptionsDlg constructors
81  */
82 
84 {
85  Init();
86 }
87 
88 CTextViewOptionsDlg::CTextViewOptionsDlg( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
89  : m_Panel()
90 {
91  Init();
92  Create(parent, id, caption, pos, size, style);
93 }
94 
95 
96 /*!
97  * CTextViewOptionsDlg creator
98  */
99 
100 bool CTextViewOptionsDlg::Create( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
101 {
102  m_Panel = dynamic_cast<CTextPanel*>(parent);
103 
104 ////@begin CTextViewOptionsDlg creation
105  SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
106  CDialog::Create( parent, id, caption, pos, size, style );
107 
108  CreateControls();
109  if (GetSizer())
110  {
111  GetSizer()->SetSizeHints(this);
112  }
113  Centre();
114 ////@end CTextViewOptionsDlg creation
115  return true;
116 }
117 
118 
119 /*!
120  * CTextViewOptionsDlg destructor
121  */
122 
124 {
125 ////@begin CTextViewOptionsDlg destruction
126 ////@end CTextViewOptionsDlg destruction
127 }
128 
129 
130 /*!
131  * Member initialisation
132  */
133 
135 {
136 ////@begin CTextViewOptionsDlg member initialisation
137  m_Reload = false;
138  m_Invalidate = false;
139  m_SaveState = false;
146  m_ShowSeq = NULL;
151 ////@end CTextViewOptionsDlg member initialisation
152 }
153 
154 
155 /*!
156  * Control creation for CTextViewOptionsDlg
157  */
158 
160 {
161 ////@begin CTextViewOptionsDlg content construction
162  CTextViewOptionsDlg* itemCDialog1 = this;
163 
164  wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxVERTICAL);
165  itemCDialog1->SetSizer(itemBoxSizer2);
166 
167  wxStaticBox* itemStaticBoxSizer3Static = new wxStaticBox(itemCDialog1, wxID_ANY, _("Format"));
168  wxStaticBoxSizer* itemStaticBoxSizer3 = new wxStaticBoxSizer(itemStaticBoxSizer3Static, wxHORIZONTAL);
169  itemBoxSizer2->Add(itemStaticBoxSizer3, 0, wxGROW|wxALL, 5);
170 
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);
174 
175  itemStaticBoxSizer3->Add(7, 8, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5);
176 
177  wxStaticText* itemStaticText6 = new wxStaticText( itemCDialog1, wxID_STATIC, _("Font Size:"), wxDefaultPosition, wxDefaultSize, 0 );
178  itemStaticBoxSizer3->Add(itemStaticText6, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
179 
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 );
186  m_FontSizeCtrl->SetStringSelection(_("10"));
187  itemStaticBoxSizer3->Add(m_FontSizeCtrl, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
188 
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);
192 
193  wxBoxSizer* itemBoxSizer9 = new wxBoxSizer(wxHORIZONTAL);
194  itemStaticBoxSizer8->Add(itemBoxSizer9, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 0);
195 
196  wxStaticText* itemStaticText10 = new wxStaticText( itemCDialog1, wxID_STATIC, _("Mode"), wxDefaultPosition, wxDefaultSize, 0 );
197  itemBoxSizer9->Add(itemStaticText10, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
198 
199  wxArrayString m_FlatFileModeCtrlStrings;
200  m_FlatFileModeCtrlStrings.Add(_("Editing"));
201  m_FlatFileModeCtrlStrings.Add(_("Public Preview"));
202  m_FlatFileModeCtrl = new wxChoice( itemCDialog1, ID_CHOICE3, wxDefaultPosition, wxDefaultSize, m_FlatFileModeCtrlStrings, 0 );
203  m_FlatFileModeCtrl->SetStringSelection(_("Editing"));
204  itemBoxSizer9->Add(m_FlatFileModeCtrl, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
205 
206  wxFlexGridSizer* itemFlexGridSizer12 = new wxFlexGridSizer(0, 2, 0, 0);
207  itemStaticBoxSizer8->Add(itemFlexGridSizer12, 0, wxALIGN_LEFT|wxALL, 5);
208 
209  m_OpenExpandedCtrl = new wxCheckBox( itemCDialog1, ID_CHECKBOX4, _("Open Expanded"), wxDefaultPosition, wxDefaultSize, 0 );
210  m_OpenExpandedCtrl->SetValue(false);
211  itemFlexGridSizer12->Add(m_OpenExpandedCtrl, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
212 
213  m_HideVariationsCtrl = new wxCheckBox( itemCDialog1, ID_CHECKBOX, _("Hide variation features"), wxDefaultPosition, wxDefaultSize, 0 );
214  m_HideVariationsCtrl->SetValue(false);
215  itemFlexGridSizer12->Add(m_HideVariationsCtrl, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
216 
217  itemFlexGridSizer12->Add(7, 8, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
218 
219  m_HideStsCtrl = new wxCheckBox( itemCDialog1, ID_CHECKBOX3, _("Hide STS features"), wxDefaultPosition, wxDefaultSize, 0 );
220  m_HideStsCtrl->SetValue(false);
221  itemFlexGridSizer12->Add(m_HideStsCtrl, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
222 
223  wxBoxSizer* itemBoxSizer17 = new wxBoxSizer(wxVERTICAL);
224  itemStaticBoxSizer8->Add(itemBoxSizer17, 0, wxALIGN_LEFT|wxALL, 5);
225 
226  m_ShowSeq = new wxCheckBox( itemCDialog1, ID_CHECKBOX5, _("Show sequence instead of scaffold instructions"), wxDefaultPosition, wxDefaultSize, 0 );
227  m_ShowSeq->SetValue(false);
228  itemBoxSizer17->Add(m_ShowSeq, 0, wxALIGN_LEFT|wxALL, 5);
229 
230  m_ShowComponentFeats = new wxCheckBox( itemCDialog1, ID_CHECKBOX6, _("Show component features"), wxDefaultPosition, wxDefaultSize, 0 );
231  m_ShowComponentFeats->SetValue(false);
232  itemBoxSizer17->Add(m_ShowComponentFeats, 0, wxALIGN_LEFT|wxALL, 5);
233 
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 );
238  m_FeatureModeCtrl->SetSelection(0);
239  itemBoxSizer2->Add(m_FeatureModeCtrl, 0, wxGROW|wxALL, 5);
240 
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);
244 
245  m_ShowASNTypesCtrl = new wxCheckBox( itemCDialog1, ID_CHECKBOX1, _("Show ASN.1 types"), wxDefaultPosition, wxDefaultSize, 0 );
246  m_ShowASNTypesCtrl->SetValue(false);
247  itemStaticBoxSizer21->Add(m_ShowASNTypesCtrl, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
248 
249  itemStaticBoxSizer21->Add(7, 8, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5);
250 
251  m_ShowASNPathToRootCtrl = new wxCheckBox( itemCDialog1, ID_CHECKBOX2, _("Show path to root"), wxDefaultPosition, wxDefaultSize, 0 );
252  m_ShowASNPathToRootCtrl->SetValue(false);
253  itemStaticBoxSizer21->Add(m_ShowASNPathToRootCtrl, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
254 
255  wxStaticLine* itemStaticLine25 = new wxStaticLine( itemCDialog1, wxID_STATIC, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
256  itemBoxSizer2->Add(itemStaticLine25, 0, wxGROW|wxALL, 5);
257 
258  wxStdDialogButtonSizer* itemStdDialogButtonSizer26 = new wxStdDialogButtonSizer;
259 
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);
263 
264  wxButton* itemButton28 = new wxButton( itemCDialog1, wxID_CANCEL, _("&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
265  itemStdDialogButtonSizer26->AddButton(itemButton28);
266 
267  wxButton* itemButton29 = new wxButton( itemCDialog1, wxID_APPLY, _("&Apply"), wxDefaultPosition, wxDefaultSize, 0 );
268  itemStdDialogButtonSizer26->AddButton(itemButton29);
269 
270  itemStdDialogButtonSizer26->Realize();
271 
272 ////@end CTextViewOptionsDlg content construction
273  if (RunningInsideNCBI()) {
274  m_FlatFileModeCtrl->AppendString(_("RefSeq Preview"));
275  }
276 
278 }
279 
281 {
282  if (!m_Panel)
283  return;
284 
285  if (m_Panel->CanShowFlatFile())
286  m_ViewTypeCtrl->Append(wxT("Flat File"), (void*)CTextPanel::kFlatFile);
287  if (m_Panel->CanShowFastA())
288  m_ViewTypeCtrl->Append(wxT("FastA"), (void*)CTextPanel::kFastA);
289  if (m_Panel->CanShowASN())
290  m_ViewTypeCtrl->Append(wxT("ASN"), (void*)CTextPanel::kASN);
291 // if (m_Panel->CanShowXML())
292 // m_ViewTypeCtrl->Append(wxT("XML"), (void*)CTextPanel::kXML);
293 
295  if (viewType == CTextPanel::kXML)
296  viewType = CTextPanel::kASN;
297 
298  for (unsigned int i = 0; i < m_ViewTypeCtrl->GetCount(); ++i) {
299  if ((CTextPanel::TViewType)(intptr_t)m_ViewTypeCtrl->GetClientData(i) == viewType) {
300  m_ViewTypeCtrl->SetSelection(i);
301  break;
302  }
303  }
304 
305  int selected = m_Panel->GetFontSize();
306  if (selected >= 0 && (unsigned int)selected < m_FontSizeCtrl->GetCount())
307  m_FontSizeCtrl->SetSelection(selected);
308 
309  selected = m_Panel->GetFlatFileMode();
310  if (selected >= 0 && (unsigned int)selected < m_FlatFileModeCtrl->GetCount())
311  m_FlatFileModeCtrl->SetSelection(selected);
312 
313  m_ShowSeq->SetValue(m_Panel->GetShowSequence());
315 
316  selected = m_Panel->GetFeatMode();
317  if (selected >= 0 && (unsigned int)selected < m_FeatureModeCtrl->GetCount())
318  m_FeatureModeCtrl->SetSelection(selected);
319 
322 
324  m_HideStsCtrl->SetValue(m_Panel->GetHideSTS());
326 
328 }
329 
330 /*!
331  * Should we show tooltips?
332  */
333 
335 {
336  return true;
337 }
338 
339 /*!
340  * Get bitmap resources
341  */
342 
343 wxBitmap CTextViewOptionsDlg::GetBitmapResource( const wxString& name )
344 {
345  // Bitmap retrieval
346 ////@begin CTextViewOptionsDlg bitmap retrieval
347  wxUnusedVar(name);
348  return wxNullBitmap;
349 ////@end CTextViewOptionsDlg bitmap retrieval
350 }
351 
352 /*!
353  * Get icon resources
354  */
355 
356 wxIcon CTextViewOptionsDlg::GetIconResource( const wxString& name )
357 {
358  // Icon retrieval
359 ////@begin CTextViewOptionsDlg icon retrieval
360  wxUnusedVar(name);
361  return wxNullIcon;
362 ////@end CTextViewOptionsDlg icon retrieval
363 }
364 
366 {
367  m_Reload = m_Invalidate = false;
368  m_SaveState = true;
369 
370  int selected = m_ViewTypeCtrl->GetSelection();
372  if (wxNOT_FOUND != selected) {
373  viewType = (CTextPanel::TViewType)(intptr_t)m_ViewTypeCtrl->GetClientData(selected);
374  if (viewType != m_Panel->GetViewType()) {
375  m_Panel->SetViewType(viewType);
376  m_SaveState = false;
377  m_Reload = true;
378  }
379  }
380 
381  selected = m_FontSizeCtrl->GetSelection();
382  if (wxNOT_FOUND != selected) {
383  if (selected != m_Panel->GetFontSize()) {
384  m_Panel->SetFontSize(selected);
385  m_Reload = true;
386  }
387  }
388 
389  if (viewType == CTextPanel::kFlatFile) {
390  selected = m_FlatFileModeCtrl->GetSelection();
391  if (wxNOT_FOUND != selected) {
392  if (selected != m_Panel->GetFlatFileMode()) {
393  m_Panel->SetFlatFileMode(selected);
394  m_Reload = true;
395  m_SaveState = false;
396  }
397  }
398 
399  if (m_ShowSeq->GetValue() != m_Panel->GetShowSequence()) {
400  m_Panel->SetShowSequence(m_ShowSeq->GetValue());
401  m_Reload = true;
402  m_SaveState = false;
403  }
404 
405  if (m_ShowComponentFeats->GetValue() != m_Panel->GetShowComponentFeats()) {
407  m_Reload = true;
408  m_SaveState = false;
409  }
410 
411  if (m_Panel->ObjectIsFeature()) {
412  selected = m_FeatureModeCtrl->GetSelection();
413  if (wxNOT_FOUND != selected) {
414  if (selected != m_Panel->GetFeatMode()) {
415  m_Panel->SetFeatMode(selected);
416  m_Reload = true;
417  }
418  }
419  }
420 
421  if (m_HideVariationsCtrl->IsChecked() != m_Panel->GetHideVariations()) {
423  m_Reload = true;
424  m_SaveState = false;
425  }
426 
427  if (m_HideStsCtrl->IsChecked() != m_Panel->GetHideSTS()) {
428  m_Panel->SetHideSTS(m_HideStsCtrl->IsChecked());
429  m_Reload = true;
430  m_SaveState = false;
431  }
432 
433  if (m_OpenExpandedCtrl->IsChecked() != m_Panel->GetOpenExpanded()) {
435  m_Reload = true;
436  m_SaveState = false;
437  }
438  }
439 
440  if (viewType == CTextPanel::kASN) {
441  if (m_ShowASNTypesCtrl->IsChecked() != m_Panel->GetShowASNTypes()) {
443  m_Invalidate = true;
444  }
445  if (m_ShowASNPathToRootCtrl->IsChecked() != m_Panel->GetShowASNPathToRoot()) {
447  m_Invalidate = true;
448  }
449  }
450 }
451 
452 void CTextViewOptionsDlg::OnApplyClick( wxCommandEvent& event )
453 {
454  x_OnApply();
455  ApplyChanges();
456 }
457 
459 {
460  if (m_Reload) {
461  if (m_SaveState)
462  m_Panel->SaveState();
463  else
464  m_Panel->ClearState();
465  m_Panel->Load();
466  } else if (m_Invalidate) {
467  m_Panel->RefreshView();
468  }
470 }
471 
472 void CTextViewOptionsDlg::OnOkClick( wxCommandEvent& event )
473 {
474  x_OnApply();
475  event.Skip();
476 }
477 
478 void CTextViewOptionsDlg::OnViewTypeSelected( wxCommandEvent& event )
479 {
481 }
482 
484 {
486  int selected = m_ViewTypeCtrl->GetSelection();
487  if (wxNOT_FOUND != selected) {
488  viewType = (CTextPanel::TViewType)(intptr_t)m_ViewTypeCtrl->GetClientData(selected);
489  }
490 
491  if (viewType == CTextPanel::kFlatFile) {
492  m_FlatFileModeCtrl->Enable(true);
493  m_OpenExpandedCtrl->Enable(true);
494  m_HideVariationsCtrl->Enable(true);
495  m_HideStsCtrl->Enable(true);
496  m_ShowSeq->Enable(true);
497  m_ShowComponentFeats->Enable(true);
499  } else {
500  m_FlatFileModeCtrl->Enable(false);
501  m_OpenExpandedCtrl->Enable(false);
502  m_HideVariationsCtrl->Enable(false);
503  m_HideStsCtrl->Enable(false);
504  m_ShowSeq->Enable(false);
505  m_ShowComponentFeats->Enable(false);
506  m_FlatFileModeCtrl->Enable(false);
507  m_FeatureModeCtrl->Enable(false);
508  }
509 
510  if (viewType == CTextPanel::kASN) {
511  m_ShowASNTypesCtrl->Enable(true);
512  m_ShowASNPathToRootCtrl->Enable(true);
513  } else {
514  m_ShowASNTypesCtrl->Enable(false);
515  m_ShowASNPathToRootCtrl->Enable(false);
516  }
517 }
518 
CDialog.
Definition: dialog.hpp:47
int GetFeatMode() const
Definition: text_panel.hpp:196
void SetShowComponentFeats(bool value=true)
Definition: text_panel.hpp:194
bool GetOpenExpanded() const
Definition: text_panel.hpp:214
void SetShowASNTypes(bool value)
Definition: text_panel.hpp:200
TViewType GetViewType() const
Definition: text_panel.hpp:181
void SetViewType(TViewType value)
Definition: text_panel.hpp:182
void SetFeatMode(int value)
Definition: text_panel.hpp:197
void ClearState()
bool CanShowASN() const
Definition: text_panel.cpp:942
bool CanShowFlatFile() const
Definition: text_panel.cpp:903
void SetHideVariations(bool value)
Definition: text_panel.hpp:209
void SetHideSTS(bool value)
Definition: text_panel.hpp:212
int GetFlatFileMode() const
Definition: text_panel.hpp:187
void RefreshView()
bool GetShowSequence() const
Definition: text_panel.hpp:190
void SetShowSequence(bool value)
Definition: text_panel.hpp:191
bool GetHideSTS() const
Definition: text_panel.hpp:211
void SetFlatFileMode(int value)
Definition: text_panel.hpp:188
void SetFontSize(int value)
Definition: text_panel.cpp:321
bool GetShowComponentFeats() const
Definition: text_panel.hpp:193
bool GetShowASNPathToRoot() const
Definition: text_panel.hpp:202
bool GetShowASNTypes() const
Definition: text_panel.hpp:199
int GetFontSize() const
Definition: text_panel.hpp:184
void SaveState()
void SetOpenExpanded(bool value)
Definition: text_panel.hpp:215
void Load()
Definition: text_panel.cpp:440
bool CanShowFastA() const
Definition: text_panel.cpp:927
void UpdateRegistry()
Definition: text_panel.cpp:967
bool GetHideVariations() const
Definition: text_panel.hpp:208
bool ObjectIsFeature() const
Definition: text_panel.cpp:962
void SetShowASNPathToRoot(bool value)
Definition: text_panel.hpp:203
void Init()
Initialises member variables.
void OnViewTypeSelected(wxCommandEvent &event)
wxEVT_COMMAND_CHOICE_SELECTED event handler for ID_CHOICE5
void OnOkClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK
void OnApplyClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_APPLY
static bool ShowToolTips()
Should we show tooltips?
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.
void CreateControls()
Creates the controls and sizers.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
#define _(proto)
Definition: ct_nlmzip_i.h:78
static void Init(void)
Definition: cursor6.c:76
#define NULL
Definition: ncbistd.hpp:225
int intptr_t
Definition: ncbitype.h:185
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
END_EVENT_TABLE()
int i
#define wxT(x)
Definition: muParser.cpp:41
const struct ncbi::grid::netcache::search::fields::SIZE size
#define ID_CHOICE5
static static static wxID_ANY
bool RunningInsideNCBI()
Definition: wx_utils.cpp:1335
Modified on Mon Feb 26 04:00:39 2024 by modify_doxy.py rev. 669887