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

Go to the SVN repository for this file.

1 /* $Id: wx_main_frame.cpp 43123 2019-05-16 18:41:46Z 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: Andrey Yazhuk
27  *
28  */
29 
30 #include <ncbi_pch.hpp>
31 
32 // Generated by DialogBlocks (unregistered), 23/04/2007 14:31:59
33 
34 
35 #include <wx/accel.h>
36 #include <wx/artprov.h>
37 #include <wx/imaglist.h>
38 #include <wx/menu.h>
39 #include <wx/msgdlg.h>
40 #include <wx/log.h>
41 #include <wx/notebook.h>
42 #include <wx/button.h>
43 #include <wx/stattext.h>
44 #include <wx/gauge.h>
45 
46 ////@begin includes
47 ////@end includes
48 
51 
57 
59 
61 
63 
65 
67 
68 #define ID_LAUNCH_JOBS 10101
69 #define ID_CHECK_JOBS_STATUS 10101
70 #define ID_CHECK_JOBS_PROGRESS 10101
71 #define ID_CANCEL_JOBS 10101
72 
73 ////@begin XPM images
74 ////@end XPM images
75 
76 
77 IMPLEMENT_CLASS( CwxMainFrame, wxFrame )
78 
79 BEGIN_EVENT_TABLE( CwxMainFrame, wxFrame )
80 
81 ////@begin CwxMainFrame event table entries
82  EVT_CLOSE( CwxMainFrame::OnCloseWindow )
83 
85 
87 
89 
91 
94 
96 
98 
100 
101  EVT_MENU( wxID_ABOUT, CwxMainFrame::OnABOUTClick )
102 
103 ////@end CwxMainFrame event table entries
107 
108 
109 class CTestEvent : public CEvent
110 {
111 public:
112  string m_Str;
113 
114  CTestEvent(const string& name)
115  : CEvent(eEvent_Message, 0, NULL), m_Str(name) {}
116 };
117 
121 
122 
124 : m_SequenceGotoDlg()
125 {
126  Init();
127 }
128 
129 
130 CwxMainFrame::CwxMainFrame( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
131 : m_SequenceGotoDlg()
132 {
133  Init();
134  Create( parent, id, caption, pos, size, style );
135 }
136 
137 
138 bool CwxMainFrame::Create( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
139 {
140  wxFrame::Create( parent, id, caption, pos, size, style );
141 
142  CreateControls();
143  Centre();
144  return true;
145 }
146 
147 
149 {
150 ////@begin CwxMainFrame destruction
151 ////@end CwxMainFrame destruction
152 }
153 
154 
156 {
157  m_MapControl = NULL;
158  m_ItemsCounter = 0;
160 
161 ////@begin CwxMainFrame member initialisation
162  m_DiagnosticsTesting = false;
164 ////@end CwxMainFrame member initialisation
165 
167 }
168 
169 
170 static wxAcceleratorEntry entries[3];
171 
173 {
175 
176 ////@begin CwxMainFrame content construction
177  CwxMainFrame* itemFrame1 = this;
178 
179  wxMenuBar* menuBar = new wxMenuBar;
180  wxMenu* itemMenu3 = new wxMenu;
181  itemMenu3->AppendSeparator();
182  itemMenu3->Append(wxID_EXIT, _("E&xit\tAlt+X"), wxEmptyString, wxITEM_NORMAL);
183  menuBar->Append(itemMenu3, _("File"));
184  wxMenu* itemMenu6 = new wxMenu;
185  itemMenu6->Append(wxID_CUT, _("Cu&t"), wxEmptyString, wxITEM_NORMAL);
186  itemMenu6->Append(wxID_COPY, _("&Copy"), wxEmptyString, wxITEM_NORMAL);
187  itemMenu6->Append(wxID_PASTE, _("&Paste"), wxEmptyString, wxITEM_NORMAL);
188  itemMenu6->AppendSeparator();
189  itemMenu6->Append(wxID_SELECTALL, _("Select All"), wxEmptyString, wxITEM_NORMAL);
190  menuBar->Append(itemMenu6, _("Edit"));
191  wxMenu* itemMenu12 = new wxMenu;
192  itemMenu12->Append(ID_TEST_MSG_BOXES, _("Message Boxes"), wxEmptyString, wxITEM_NORMAL);
193  itemMenu12->Append(ID_POST_EVENTS, _("Post Events"), wxEmptyString, wxITEM_NORMAL);
194  itemMenu12->Append(ID_MENUITEM1, _("Go to sequence"), wxEmptyString, wxITEM_NORMAL);
195  itemMenu12->Append(ID_TEST_DIAG_PANEL, _("Test Diagnostics Console"), wxEmptyString, wxITEM_NORMAL);
196  menuBar->Append(itemMenu12, _("Test"));
197  wxMenu* itemMenu17 = new wxMenu;
198  itemMenu17->Append(ID_CREATE_MAP_CONTROL, _("Create Map Control\tF1"), wxEmptyString, wxITEM_NORMAL);
199  itemMenu17->Append(ID_CREATE_GROUP_MAP_WIDGET, _("Create Group Map Widget\tF2"), wxEmptyString, wxITEM_NORMAL);
200  itemMenu17->Append(ID_CREATE_TABLE_CONTROL, _("Create Table Control\tF3"), wxEmptyString, wxITEM_NORMAL);
201  menuBar->Append(itemMenu17, _("Test Controls"));
202  wxMenu* itemMenu21 = new wxMenu;
203  {
204  wxMenuItem* menuItem = new wxMenuItem(itemMenu21, wxID_ABOUT, _("About"), wxEmptyString, wxITEM_NORMAL);
205  wxBitmap bitmap(itemFrame1->GetBitmapResource(wxT("menu::about")));
206  menuItem->SetBitmap(bitmap);
207  itemMenu21->Append(menuItem);
208  }
209  menuBar->Append(itemMenu21, _("Help"));
210  itemFrame1->SetMenuBar(menuBar);
211 
212  CStatusBar* itemStatusBar23 = new CStatusBar( itemFrame1, ID_STATUSBAR1, wxST_SIZEGRIP|wxNO_BORDER );
213  itemStatusBar23->SetFieldsCount(5);
214  itemFrame1->SetStatusBar(itemStatusBar23);
215 
216 ////@end CwxMainFrame content construction
217 
218  // insert submenu
219  wxMenu* open_sub_menu = new wxMenu;
220  open_sub_menu->Append(ID_OPEN_DATA, _("&Data"), wxEmptyString, wxITEM_NORMAL);
221  open_sub_menu->Append(ID_OPEN_PROJECT, _("&Project"), wxEmptyString, wxITEM_NORMAL);
222  open_sub_menu->Append(ID_OPEN_WORKSPACE, _("&Workspace"), wxEmptyString, wxITEM_NORMAL);
223 
224  itemMenu3->Insert(0, ID_MENU_OPEN, _("&Open"), open_sub_menu);
225 
226  // add App Job Dispatcher menu
227  wxMenu* itemMenuApp = new wxMenu;
228  itemMenuApp->Append(ID_LAUNCH_JOBS, _("Launch Jobs"), wxEmptyString, wxITEM_NORMAL);
229  itemMenuApp->Append(ID_CHECK_JOBS_STATUS, _("Check Status"), wxEmptyString, wxITEM_NORMAL);
230  itemMenuApp->Append(ID_CHECK_JOBS_PROGRESS, _("Check Progress"), wxEmptyString, wxITEM_NORMAL);
231  itemMenuApp->Append(ID_CANCEL_JOBS, _("Cancel Jobs"), wxEmptyString, wxITEM_NORMAL);
232  menuBar->Append(itemMenuApp, _("App Jobs Test"));
233 
234  // init Accelerators
235  entries[0].Set(wxACCEL_CTRL, (int) 'X', wxID_CUT);
236  entries[1].Set(wxACCEL_CTRL, (int) 'C', wxID_COPY);
237  entries[2].Set(wxACCEL_CTRL, (int) 'V', wxID_PASTE);
238 
239  wxAcceleratorTable s_accel(3, entries);
240 
241  SetAcceleratorTable(s_accel);
242 
244 
245  m_Notebook = new wxNotebook(this, wxID_ANY);
246 }
247 
248 
250 {
251  CStatusBar* bar = dynamic_cast<CStatusBar*>(GetStatusBar());
252 
253  int w[6] = { -4, 50, 50, -1, 50, 20 };
254  bar->SetFieldsCount(6, w);
255 
256  bar->SetFieldWindow(1, new wxButton(this, wxID_OK, _("Yes")));
257  bar->SetFieldWindow(2, new wxButton(this, wxID_OK, _("No")));
258  bar->SetFieldWindow(3, new wxStaticText(this, wxID_ANY, _("Status Text")) );
259 
260  wxGauge* gauge = new wxGauge(this, wxID_ANY, 100);
261  gauge->SetValue(50);
262  bar->SetFieldWindow(4, gauge);
263 
264  bar->Layout();
265 }
266 
267 
269 {
270  wxFileArtProvider* art_prov = new wxFileArtProvider();
271  wxString dir = CSysPath::ResolvePath(wxT("<res>"));
272  art_prov->AddDirectory(dir);
273 
274  // TODO this should be moved to window manager later
275  art_prov->RegisterFileAlias(wxT("wm_menu"), wxT("wm_menu.png"));
276  art_prov->RegisterFileAlias(wxT("wm_menu_active"), wxT("wm_menu_active.png"));
277  art_prov->RegisterFileAlias(wxT("wm_close"), wxT("wm_close.png"));
278  art_prov->RegisterFileAlias(wxT("wm_close_active"), wxT("wm_close_active.png"));
279 
280  art_prov->RegisterFileAlias(wxT("about"), wxT("about.png"));
281  art_prov->RegisterFileAlias(wxT("search"), wxT("search.png"));
282  art_prov->RegisterFileAlias(wxT("zoom_in"), wxT("zoom_in.png"));
283  art_prov->RegisterFileAlias(wxT("zoom_out"), wxT("zoom_out.png"));
284  art_prov->RegisterFileAlias(wxT("zoom_all"), wxT("zoom_all.png"));
285 
286  art_prov->RegisterFileAlias(wxT("menu"), wxT("wm_menu.png"));
287  art_prov->RegisterFileAlias(wxT("minimize"), wxT("wm_minimize.png"));
288  art_prov->RegisterFileAlias(wxT("restore"), wxT("wm_restore.png"));
289  art_prov->RegisterFileAlias(wxT("maximize"), wxT("wm_maximize.png"));
290  art_prov->RegisterFileAlias(wxT("close"), wxT("wm_close.png"));
291 
292  art_prov->RegisterFileAlias(wxT("map::arrow_open"), wxT("arrow_open.png"));
293  art_prov->RegisterFileAlias(wxT("map::arrow_close"), wxT("arrow_close.png"));
294 
295  wxArtProvider::Push(art_prov);
296  wxArtProvider::Push(new CwxSplittingArtProvider());
297 }
298 
299 
301 {
302  return true;
303 }
304 
305 wxBitmap CwxMainFrame::GetBitmapResource( const wxString& name )
306 {
307  return wxArtProvider::GetBitmap( name );
308 }
309 
310 wxIcon CwxMainFrame::GetIconResource( const wxString& name )
311 {
312  // Icon retrieval
313 ////@begin CwxMainFrame icon retrieval
314  wxUnusedVar(name);
315  return wxNullIcon;
316 ////@end CwxMainFrame icon retrieval
317 }
318 
319 
320 void CwxMainFrame::OnABOUTClick( wxCommandEvent& event )
321 {
322  CwxAboutDlg dlg(this);
323  dlg.ShowModal();
324 }
325 
326 
327 void CwxMainFrame::OnEXITClick( wxCommandEvent& event )
328 {
329  wxFrame::Close(true);
330 }
331 
332 void CwxMainFrame::OnTestMsgBoxesClick( wxCommandEvent& event )
333 {
334  wxMessageDialog dlg(NULL, _("Yes No Cancel dialog."), _("Question"),
335  wxYES_NO | wxCANCEL | wxICON_QUESTION);
336  dlg.ShowModal();
337 
338  wxMessageDialog dlg_2(NULL, _("Ok Cancel dialog."), _("Error"),
339  wxOK | wxCANCEL | wxICON_ERROR);
340  dlg_2.ShowModal();
341 }
342 
343 
344 void CwxMainFrame::OnPostEventsClick( wxCommandEvent& event )
345 {
346  //LOG_POST("");
347  static int n = 0;
348 
349  for( int i = 0; i < 10 ; i++) {
350  string s = "Event #" + NStr::IntToString(++n);
351  CRef<CEvent> evt(new CTestEvent(s));
352  Post(evt);
353  LOG_POST("Sent - " << s);
354  }
355 }
356 
357 
359 {
360  CTestEvent* test_evt = dynamic_cast<CTestEvent*>(evt);
361  LOG_POST("Recived - " + test_evt->m_Str);
362 }
363 
364 
365 void CwxMainFrame::OnLaunchJobs( wxCommandEvent& event )
366 {
367  m_PrimeClient->StartJobs(10);
368 }
369 
370 
371 void CwxMainFrame::OnCancelJobs( wxCommandEvent& event )
372 {
373  m_PrimeClient->CancelJobs();
374 }
375 
376 
377 void CwxMainFrame::OnCheckJobsStatus( wxCommandEvent& event )
378 {
379  m_PrimeClient->CheckStatus();
380 }
381 
382 
383 void CwxMainFrame::OnCheckJobsProgress( wxCommandEvent& event )
384 {
385  m_PrimeClient->CheckProgress();
386 }
387 
388 
389 
390 
391 void CwxMainFrame::OnGoToSequence( wxCommandEvent& event )
392 {
393  if (m_SequenceGotoDlg == 0) {
395  m_SequenceGotoDlg->Show(true);
396  }
397 }
398 
399 
401 {
402  long from, to;
403  m_SequenceGotoData.GetRange(from, to);
404 
405  wxString msg;
406  msg.Printf(_("Range:\nFrom:\t%ld\nTo:\t%ld"), from, to);
407  wxMessageBox(msg, _("Goto"),wxOK | wxICON_EXCLAMATION, this);
408 }
409 
410 
412 {
413  m_SequenceGotoDlg->Destroy();
415 }
416 
417 
418 void CwxMainFrame::OnCloseWindow( wxCloseEvent& event )
419 {
420  if( m_TableControl ){
422  CRegistryWriteView reg_view = reg.GetWriteView("TestTable");
423 
425  }
426 
427  event.Skip();
428 }
429 
430 
431 void CwxMainFrame::OnTestDiagPanelClick( wxCommandEvent& event )
432 {
433  event.Skip();
434 }
435 
436 
437 void CwxMainFrame::OnTestDiagPanelUpdate( wxUpdateUIEvent& event )
438 {
439  event.Enable(true);
440 }
441 
442 
443 void CwxMainFrame::OnCreateMapControlClick( wxCommandEvent& event )
444 {
446 
449 
451  m_Notebook->AddPage(m_MapControl, _("Map Control"));
452  m_Notebook->SetSelection(m_Notebook->GetPageCount() - 1);
453 }
454 
456 {
458  m_MapControl->LockUpdates(true);
459 
461  m_ItemsCounter = 0;
462 
463  for( int i = 0; i < 20; i++) {
465  }
466 
467  m_MapControl->LockUpdates(false);
468 }
469 
470 void CwxMainFrame::OnCreateGroupMapWidgetClick( wxCommandEvent& event )
471 {
473 
475  m_Notebook->AddPage(m_GroupMapWidget, _("Group Map Widget"));
476  m_Notebook->SetSelection(m_Notebook->GetPageCount() - 1);
477 
478  m_GroupMapWidget->AddGroup("Recent");
479  m_GroupMapWidget->AddGroup("Sequence");
480  m_GroupMapWidget->AddGroup("Alignment");
481  m_GroupMapWidget->AddGroup("General");
482  m_GroupMapWidget->AddGroup("Proteus");
483 
484  m_GroupMapWidget->AddItem("Recent", "Graphical View", "menu::zoom_in", NcbiEmptyString, false);
485  m_GroupMapWidget->AddItem("Recent", "Feature Table View", "map::arrow_open", NcbiEmptyString, false);
486  m_GroupMapWidget->AddItem("Recent", "Multiple Sequence Alignment View", "map::arrow_close", NcbiEmptyString, false);
487  m_GroupMapWidget->AddItem("Recent", "Cross Alignment View", "menu::zoom_in", NcbiEmptyString, false);
488 
489  m_GroupMapWidget->AddItem("Sequence", "Graphical View", "menu::zoom_in", NcbiEmptyString, false);
490  m_GroupMapWidget->AddItem("Sequence", "Feature Table View", "menu::zoom_in", NcbiEmptyString, false);
491 
492  m_GroupMapWidget->AddItem("Alignment", "Multiple Sequence Alignment View", "menu::zoom_in", NcbiEmptyString, false);
493  m_GroupMapWidget->AddItem("Alignment", "Cross Alignment View", "menu::zoom_in", NcbiEmptyString, false);
494  m_GroupMapWidget->AddItem("Alignment", "Alignment Span View", "menu::zoom_in", NcbiEmptyString, false);
495 
496 }
497 
498 void CwxMainFrame::OnCreateTableControlClick( wxCommandEvent& event )
499 {
501 
504 
505  m_Notebook->AddPage( m_TableControl, _("Table Control") );
506  m_Notebook->SetSelection( m_Notebook->GetPageCount() - 1 );
507 }
508 
510 {
512 
513  m_TableControl->SetModel( new CProteinModel(), true );
514 
516  CRegistryReadView reg_view = reg.GetReadView("TestTable");
517 
518  m_TableControl->LoadTableSettings(reg_view, true);
519 }
520 
522 {
523  string label, icon, descr;
524 
525  switch(m_ItemsCounter) {
526  case 0:
527  label = "The First Item";
528  icon = "menu::zoom_in";
529  break;
530  case 1:
531  label = "The Second Item - with a description";
532  icon = "map::arrow_open";
533  break;
534  case 2:
535  label = "The Third Item - with a description that is much longer";
536  icon = "menu::arrow_close";
537  break;
538  default:
539  label = "Item # ";
541  icon = "menu::about";
542 
543  descr = "Description is";
544  for( int i = 0; i < m_ItemsCounter; i++ ) {
545  descr += " long";
546  }
547  break;
548  }
549 
550  wxBitmap bmpIcon = GetBitmapResource(icon);
551  CMapItem* item = new CMapItem(label, bmpIcon, descr);
552  m_MapControl->AddItem(item);
553  m_ItemsCounter++;
554 }
555 
556 
558 
559 
560 
EVT_UPDATE_UI(eCmdAlnShowMethodsDlg, CAlnMultiWidget::OnUpdateShowMethodDlg) EVT_UPDATE_UI(eCmdMethodProperties
CEventHandler.
CEvent - generic event implementation TODO TODO - Attachments.
Definition: event.hpp:86
CGroupMapWidget.
virtual void AddGroup(const string &label, bool expand=true)
virtual void AddItem(const string &group_label, const string &label, const string &icon_alias, const string &descr, bool showDefault)
CRegistryWriteView GetWriteView(const string &section)
get a read-write view at a particular level.
Definition: registry.cpp:462
static CGuiRegistry & GetInstance()
access the application-wide singleton
Definition: registry.cpp:400
CRegistryReadView GetReadView(const string &section) const
get a read-only view at a particular level.
Definition: registry.cpp:428
CMapControl owns all its items.
Definition: map_control.hpp:67
virtual void AddItem(IwxMapItem *item)
virtual void DeleteAllItems()
SProperties & GetProperties()
virtual void LockUpdates(bool lock=true)
block layout and repainting until control is unlocked
CMapItem This is a base class for IwxMapItem implementations.
Definition: map_item.hpp:53
CPrimeNumberClient.
Definition: test_client.hpp:79
class CRegistryReadView provides a nested hierarchical view at a particular key.
Definition: reg_view.hpp:58
bool GetRange(long &from, long &to) const
virtual bool Show(bool show=true)
CStatusBar CStatusBar provides basic support for adding windows to status bar slots when status bar i...
virtual bool Layout()
virtual void SetFieldsCount(int number=1, const int *widths=NULL)
virtual void SetFieldWindow(int index, wxWindow *window)
static wxString ResolvePath(const wxString &path, const wxString &rel_name)
Utility function to hide the platform specifics of locating our standard directories and files.
Definition: sys_path.cpp:106
CTestEvent(const string &name)
void OnTestEvent(CEvent *evt)
void OnCreateMapControlClick(wxCommandEvent &event)
wxEVT_COMMAND_MENU_SELECTED event handler for ID_CREATE_MAP_CONTROL
CSequenceGotoData m_SequenceGotoData
bool m_DiagnosticsTesting
void x_RegisterAliases()
CwxMainFrame()
Constructors.
void OnCreateGroupMapWidgetClick(wxCommandEvent &event)
wxEVT_COMMAND_MENU_SELECTED event handler for ID_CREATE_GROUP_MAP_WIDGET
void OnEXITClick(wxCommandEvent &event)
wxEVT_COMMAND_MENU_SELECTED event handler for wxID_EXIT
void OnSeqGotoClose(CSequenceGotoEvent &event)
bool Create(wxWindow *parent, wxWindowID id=10000, const wxString &caption=_("wx Demo App"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(800, 600), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxMINIMIZE_BOX|wxMAXIMIZE_BOX|0x1000)
void OnCreateTableControlClick(wxCommandEvent &event)
wxEVT_COMMAND_MENU_SELECTED event handler for ID_CREATE_TABLE_CONTROL
void x_SetupStatusBar()
CGroupMapWidget * m_GroupMapWidget
void OnABOUTClick(wxCommandEvent &event)
wxEVT_COMMAND_MENU_SELECTED event handler for wxID_ABOUT
~CwxMainFrame()
Destructor.
void OnCreateTableControlItems()
void OnCheckJobsProgress(wxCommandEvent &event)
void OnCreateMapControlItems()
void OnSeqGoto(CSequenceGotoEvent &event)
void OnTestDiagPanelUpdate(wxUpdateUIEvent &event)
wxEVT_UPDATE_UI event handler for ID_TEST_DIAG_PANEL
void x_CreateNextItem()
void CreateControls()
Creates the controls and sizers.
unique_ptr< CPrimeNumberClient > m_PrimeClient
CwxTableListCtrl * m_TableControl
void OnTestDiagPanelClick(wxCommandEvent &event)
wxEVT_COMMAND_MENU_SELECTED event handler for ID_TEST_DIAG_PANEL
void OnGoToSequence(wxCommandEvent &event)
wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENUITEM1
void Init()
Initialises member variables.
CMapControl * m_MapControl
void OnPostEventsClick(wxCommandEvent &event)
wxEVT_COMMAND_MENU_SELECTED event handler for ID_POST_EVENTS
void OnCheckJobsStatus(wxCommandEvent &event)
CSequenceGotoDlg * m_SequenceGotoDlg
wxNotebook * m_Notebook
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void OnLaunchJobs(wxCommandEvent &event)
void OnCloseWindow(wxCloseEvent &event)
wxEVT_CLOSE_WINDOW event handler for ID_CWXMAINFRAME
static bool ShowToolTips()
Should we show tooltips?
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
void OnCancelJobs(wxCommandEvent &event)
void OnTestMsgBoxesClick(wxCommandEvent &event)
wxEVT_COMMAND_MENU_SELECTED event handler for ID_TEST_MSG_BOXES
CwxSplittingArtProvider - an adapter for old-style image aliases.
Definition: wx_utils.hpp:255
CwxTableListCtrl - generic wxListCtrl-based Table Control.
void LoadTableSettings(const CRegistryReadView &view, bool byName=false)
void SaveTableSettings(CRegistryWriteView &view, bool saveSorting=true) const
void SetModel(IwxTableModel *data_model, bool own=false)
virtual void RegisterFileAlias(const wxArtID &anId, const wxArtClient &aClient, const wxSize &aSize, const wxString &aName, long aType=wxBITMAP_TYPE_ANY, int anIndex=-1)
int AddDirectory(wxString aDirName)
#define _(proto)
Definition: ct_nlmzip_i.h:78
IMPLEMENT_CLASS(CFloatingFrame, CFloatingFrameBaseClass) const static long kFloatFrameStyle
CFloatingFrame.
static void Init(void)
Definition: cursor6.c:76
#define NULL
Definition: ncbistd.hpp:225
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
Definition: ncbidiag.hpp:226
static CAppJobDispatcher & GetInstance()
void Post(CRef< CEvent > evt, EDispatch disp_how=eDispatch_Default, int pool_name=ePool_Default)
Handles an event asynchronously (process and/or dispatch).
#define ON_EVENT(type, id, handler)
#define END_EVENT_MAP()
Ends definition of Command Map.
#define BEGIN_EVENT_MAP(thisClass, baseClass)
Begins definition of Command Map for CEventHandler-derived class.
#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 string IntToString(int value, TNumToStringFlags flags=0, int base=10)
Convert int to string.
Definition: ncbistr.hpp:5084
#define NcbiEmptyString
Definition: ncbistr.hpp:122
static const char label[]
END_EVENT_TABLE()
int i
yy_size_t n
#define wxT(x)
Definition: muParser.cpp:41
const struct ncbi::grid::netcache::search::fields::SIZE size
static static static wxID_ANY
#define EVT_SEQ_GOTO_CLOSE(id, fn)
#define EVT_SEQ_GOTO(id, fn)
ViewerWindowBase::OnEditMenu ViewerWindowBase::OnJustification EVT_MENU(MID_SHOW_GEOM_VLTNS, ViewerWindowBase::OnShowGeomVltns) EVT_MENU(MID_FIND_PATTERN
#define _ASSERT
#define ID_CANCEL_JOBS
#define ID_CHECK_JOBS_PROGRESS
#define ID_CHECK_JOBS_STATUS
static wxAcceleratorEntry entries[3]
#define ID_LAUNCH_JOBS
#define ID_OPEN_WORKSPACE
#define ID_OPEN_PROJECT
#define ID_CREATE_MAP_CONTROL
#define ID_CREATE_GROUP_MAP_WIDGET
#define ID_POST_EVENTS
#define ID_OPEN_DATA
#define ID_CREATE_TABLE_CONTROL
#define ID_TEST_MSG_BOXES
#define ID_TEST_DIAG_PANEL
#define ID_STATUSBAR1
#define ID_MENUITEM1
#define ID_MENU_OPEN
Modified on Sun Apr 21 03:38:57 2024 by modify_doxy.py rev. 669887