:
CEvent(eEvent_Message, 0,
NULL), m_Str(name) {}
124: m_SequenceGotoDlg()
131: m_SequenceGotoDlg()
134 Create( parent,
id, caption, pos,
size, style );
138 bool CwxMainFrame::Create( wxWindow* parent, wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
140wxFrame::Create( parent,
id, caption, pos,
size, style );
179wxMenuBar* menuBar =
newwxMenuBar;
180wxMenu* itemMenu3 =
newwxMenu;
181itemMenu3->AppendSeparator();
182itemMenu3->Append(wxID_EXIT,
_(
"E&xit\tAlt+X"), wxEmptyString, wxITEM_NORMAL);
183menuBar->Append(itemMenu3,
_(
"File"));
184wxMenu* itemMenu6 =
newwxMenu;
185itemMenu6->Append(wxID_CUT,
_(
"Cu&t"), wxEmptyString, wxITEM_NORMAL);
186itemMenu6->Append(wxID_COPY,
_(
"&Copy"), wxEmptyString, wxITEM_NORMAL);
187itemMenu6->Append(wxID_PASTE,
_(
"&Paste"), wxEmptyString, wxITEM_NORMAL);
188itemMenu6->AppendSeparator();
189itemMenu6->Append(wxID_SELECTALL,
_(
"Select All"), wxEmptyString, wxITEM_NORMAL);
190menuBar->Append(itemMenu6,
_(
"Edit"));
191wxMenu* itemMenu12 =
newwxMenu;
192itemMenu12->Append(
ID_TEST_MSG_BOXES,
_(
"Message Boxes"), wxEmptyString, wxITEM_NORMAL);
193itemMenu12->Append(
ID_POST_EVENTS,
_(
"Post Events"), wxEmptyString, wxITEM_NORMAL);
194itemMenu12->Append(
ID_MENUITEM1,
_(
"Go to sequence"), wxEmptyString, wxITEM_NORMAL);
195itemMenu12->Append(
ID_TEST_DIAG_PANEL,
_(
"Test Diagnostics Console"), wxEmptyString, wxITEM_NORMAL);
196menuBar->Append(itemMenu12,
_(
"Test"));
197wxMenu* itemMenu17 =
newwxMenu;
198itemMenu17->Append(
ID_CREATE_MAP_CONTROL,
_(
"Create Map Control\tF1"), wxEmptyString, wxITEM_NORMAL);
201menuBar->Append(itemMenu17,
_(
"Test Controls"));
202wxMenu* itemMenu21 =
newwxMenu;
204wxMenuItem* menuItem =
newwxMenuItem(itemMenu21, wxID_ABOUT,
_(
"About"), wxEmptyString, wxITEM_NORMAL);
206menuItem->SetBitmap(bitmap);
207itemMenu21->Append(menuItem);
209menuBar->Append(itemMenu21,
_(
"Help"));
210itemFrame1->SetMenuBar(menuBar);
214itemFrame1->SetStatusBar(itemStatusBar23);
219wxMenu* open_sub_menu =
newwxMenu;
220open_sub_menu->Append(
ID_OPEN_DATA,
_(
"&Data"), wxEmptyString, wxITEM_NORMAL);
221open_sub_menu->Append(
ID_OPEN_PROJECT,
_(
"&Project"), wxEmptyString, wxITEM_NORMAL);
222open_sub_menu->Append(
ID_OPEN_WORKSPACE,
_(
"&Workspace"), wxEmptyString, wxITEM_NORMAL);
224itemMenu3->Insert(0,
ID_MENU_OPEN,
_(
"&Open"), open_sub_menu);
227wxMenu* itemMenuApp =
newwxMenu;
228itemMenuApp->Append(
ID_LAUNCH_JOBS,
_(
"Launch Jobs"), wxEmptyString, wxITEM_NORMAL);
231itemMenuApp->Append(
ID_CANCEL_JOBS,
_(
"Cancel Jobs"), wxEmptyString, wxITEM_NORMAL);
232menuBar->Append(itemMenuApp,
_(
"App Jobs Test"));
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);
239wxAcceleratorTable s_accel(3,
entries);
241SetAcceleratorTable(s_accel);
253 intw[6] = { -4, 50, 50, -1, 50, 20 };
260wxGauge* gauge =
newwxGauge(
this,
wxID_ANY, 100);
295wxArtProvider::Push(art_prov);
307 returnwxArtProvider::GetBitmap( name );
329wxFrame::Close(
true);
334wxMessageDialog dlg(
NULL,
_(
"Yes No Cancel dialog."),
_(
"Question"),
335wxYES_NO | wxCANCEL | wxICON_QUESTION);
338wxMessageDialog dlg_2(
NULL,
_(
"Ok Cancel dialog."),
_(
"Error"),
339wxOK | wxCANCEL | wxICON_ERROR);
349 for(
int i= 0;
i< 10 ;
i++) {
406 msg.Printf(
_(
"Range:\nFrom:\t%ld\nTo:\t%ld"), from, to);
407wxMessageBox(
msg,
_(
"Goto"),wxOK | wxICON_EXCLAMATION,
this);
439 event.Enable(
true);
463 for(
int i= 0;
i< 20;
i++) {
523 string label, icon, descr;
527 label=
"The First Item";
528icon =
"menu::zoom_in";
531 label=
"The Second Item - with a description";
532icon =
"map::arrow_open";
535 label=
"The Third Item - with a description that is much longer";
536icon =
"menu::arrow_close";
541icon =
"menu::about";
543descr =
"Description is";
CEvent - generic event implementation TODO TODO - Attachments.
CRegistryWriteView GetWriteView(const string §ion)
get a read-write view at a particular level.
static CGuiRegistry & GetInstance()
access the application-wide singleton
CRegistryReadView GetReadView(const string §ion) const
get a read-only view at a particular level.
CMapControl owns all its items.
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.
class CRegistryReadView provides a nested hierarchical view at a particular key.
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 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.
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
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
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 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
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.
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)
IMPLEMENT_CLASS(CFloatingFrame, CFloatingFrameBaseClass) const static long kFloatFrameStyle
CFloatingFrame.
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
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.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static string IntToString(int value, TNumToStringFlags flags=0, int base=10)
Convert int to string.
static const char label[]
const struct ncbi::grid::netcache::search::fields::SIZE size
#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
static SLJIT_INLINE sljit_ins msg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
#define ID_CHECK_JOBS_PROGRESS
#define ID_CHECK_JOBS_STATUS
static wxAcceleratorEntry entries[3]
#define ID_OPEN_WORKSPACE
#define ID_CREATE_MAP_CONTROL
#define ID_CREATE_GROUP_MAP_WIDGET
#define ID_CREATE_TABLE_CONTROL
#define ID_TEST_MSG_BOXES
#define ID_TEST_DIAG_PANEL
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4