本文整理汇总了C++中wxAuiNotebookEvent::GetEventObject方法的典型用法代码示例。如果您正苦于以下问题:C++ wxAuiNotebookEvent::GetEventObject方法的具体用法?C++ wxAuiNotebookEvent::GetEventObject怎么用?C++ wxAuiNotebookEvent::GetEventObject使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wxAuiNotebookEvent
的用法示例。
在下文中一共展示了wxAuiNotebookEvent::GetEventObject方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnNotebookPageClose
void CFrame::OnNotebookPageClose(wxAuiNotebookEvent& event)
{
// Override event
event.Veto();
wxAuiNotebook* Ctrl = (wxAuiNotebook*)event.GetEventObject();
if (Ctrl->GetPage(event.GetSelection())->GetId() == IDM_LOG_WINDOW)
ToggleLogWindow(false);
if (Ctrl->GetPage(event.GetSelection())->GetId() == IDM_LOG_CONFIG_WINDOW)
ToggleLogConfigWindow(false);
if (Ctrl->GetPage(event.GetSelection())->GetId() == IDM_REGISTER_WINDOW)
g_pCodeWindow->ToggleRegisterWindow(false);
if (Ctrl->GetPage(event.GetSelection())->GetId() == IDM_WATCH_WINDOW)
g_pCodeWindow->ToggleWatchWindow(false);
if (Ctrl->GetPage(event.GetSelection())->GetId() == IDM_BREAKPOINT_WINDOW)
g_pCodeWindow->ToggleBreakPointWindow(false);
if (Ctrl->GetPage(event.GetSelection())->GetId() == IDM_JIT_WINDOW)
g_pCodeWindow->ToggleJitWindow(false);
if (Ctrl->GetPage(event.GetSelection())->GetId() == IDM_MEMORY_WINDOW)
g_pCodeWindow->ToggleMemoryWindow(false);
if (Ctrl->GetPage(event.GetSelection())->GetId() == IDM_SOUND_WINDOW)
g_pCodeWindow->ToggleSoundWindow(false);
if (Ctrl->GetPage(event.GetSelection())->GetId() == IDM_VIDEO_WINDOW)
g_pCodeWindow->ToggleVideoWindow(false);
}
示例2: OnPageChange
// Ensure we show the data in any tabs that become visible
void frmMain::OnPageChange(wxAuiNotebookEvent &event)
{
pgObject *data = browser->GetObject(browser->GetSelection());
if (!data)
return;
ShowObjStatistics(data, ((wxAuiNotebook *)event.GetEventObject())->GetPage(event.GetSelection()));
}
示例3: OnNotebookPageClose
void HtMainFrame::OnNotebookPageClose (wxAuiNotebookEvent &event)
{
wxAuiNotebook *nb = static_cast<wxAuiNotebook *>(event.GetEventObject());
HexFrame *frame = static_cast<HexFrame *>(nb->GetPage(event.GetSelection()));
wxDocManager *docm = wxGetApp().doc_manager.get();
HexView *vw = frame->GetView();
docm->CloseDocument(vw->GetDocument());
}
示例4: OnNotebookPageChange
void HtMainFrame::OnNotebookPageChange (wxAuiNotebookEvent &event)
{
#ifdef WXDEBUG
wxAuiNotebook *nb = static_cast<wxAuiNotebook *>(event.GetEventObject());
HexFrame *frame = static_cast<HexFrame *>(nb->GetPage(event.GetSelection()));
frame->OnAddToDebugPanel();
#endif
}
示例5: OnDeleteDiagramTab
void frmDatabaseDesigner::OnDeleteDiagramTab(wxAuiNotebookEvent &event)
{
deletedTab = event.GetSelection();
wxAuiNotebook *ctrl = (wxAuiNotebook *)event.GetEventObject();
hdDrawingView *view = (hdDrawingView *) ctrl->GetPage(event.GetSelection());
int res = wxMessageBox(wxT("Are you sure you want to delete diagram \"") + view->getDrawing()->getName() + _("\" from model?"),
wxT("Delete diagram?"),
wxYES_NO | wxNO_DEFAULT,
this);
if (res != wxYES)
{
event.Veto();
}
else
{
setModelChanged(true);
}
UpdateToolbar();
}
示例6: OnCloseNotebook
void MainWindow::OnCloseNotebook(wxAuiNotebookEvent& event)
{
wxAuiNotebook* m_note = (wxAuiNotebook *) event.GetEventObject();
if(m_note->GetSelection()== 0)event.Veto();
}