本文整理汇总了C++中wxAuiManagerEvent::GetPane方法的典型用法代码示例。如果您正苦于以下问题:C++ wxAuiManagerEvent::GetPane方法的具体用法?C++ wxAuiManagerEvent::GetPane怎么用?C++ wxAuiManagerEvent::GetPane使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wxAuiManagerEvent
的用法示例。
在下文中一共展示了wxAuiManagerEvent::GetPane方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: onAuiPaneClose
void CocaDocumentManager::onAuiPaneClose( wxAuiManagerEvent& event )
{
COCA_DEBUG_INFO( "CocaDocumentManager::OnAuiPaneClose " << event.GetPane() << "; " << event.CanVeto() );
if ( !GetCurrentDocument() ) {
return;
}
wxAuiPaneInfo* info = event.GetPane();
wxList& views = GetCurrentDocument()->GetViews();
wxList::iterator it;
for ( it = views.begin(); it != views.end(); ++it )
{
CocaView* view = coca::staticCast<CocaView*>( *it );
if ( view->getPane() == info->window )
{
if ( view->Close( false ) )
{
delete view;
}
else
{
event.Veto();
}
return;
}
}
event.Skip(); // no related view found, skip event
}
示例2: OnPaneClose
void OnPaneClose(wxAuiManagerEvent& event)
{
// For now just pretend cancel was clicked. This is sufficient to fool
// dialogmanager into closing the window it would seem
wxCommandEvent cancelEvent(wxEVT_COMMAND_BUTTON_CLICKED, wxID_CANCEL);
wxWindow * pWindow = NULL;
if (event.GetPane() && event.GetPane()->IsOk() )
pWindow = event.GetPane()->window;
if (pWindow && !pWindow->IsBeingDeleted())
{
cancelEvent.SetEventObject( pWindow );
pWindow->GetEventHandler()->AddPendingEvent(cancelEvent);
}
event.Veto(); // Stop wxAUI doing anything about it
}
示例3: OnPanelClose
void MyFrame::OnPanelClose(wxAuiManagerEvent& evt)
{
wxAuiPaneInfo *p = evt.GetPane();
if (p->name == _T("MainToolBar"))
{
Menubar->Check(MENU_TOOLBAR, false);
}
if (p->name == _T("GraphLog"))
{
Menubar->Check(MENU_GRAPH, false);
pGraphLog->SetState(false);
}
if (p->name == _T("Stats"))
{
Menubar->Check(MENU_STATS, false);
pStatsWin->SetState(false);
}
if (p->name == _T("Profile"))
{
Menubar->Check(MENU_STARPROFILE, false);
pProfile->SetState(false);
}
if (p->name == _T("AOPosition"))
{
Menubar->Check(MENU_AO_GRAPH, false);
pStepGuiderGraph->SetState(false);
}
if (p->name == _T("Target"))
{
Menubar->Check(MENU_TARGET, false);
pTarget->SetState(false);
}
}
示例4: OnPaneClose
// -------------------------------------------------------------------------------- //
void guAuiManagerPanel::OnPaneClose( wxAuiManagerEvent &event )
{
wxAuiPaneInfo * PaneInfo = event.GetPane();
int PanelIndex = m_PanelNames.Index( PaneInfo->name );
if( PanelIndex != wxNOT_FOUND )
{
guLogMessage( wxT( "OnPaneClose: %s %i" ), m_PanelNames[ PanelIndex ].c_str(), m_PanelCmdIds[ PanelIndex ] );
ShowPanel( m_PanelIds[ PanelIndex ], false );
}
event.Veto();
}
示例5: close
void RadarPanel::close(wxAuiManagerEvent& event) {
event.Skip();
wxAuiPaneInfo* pane = event.GetPane();
if (pane->window == this) {
m_pi->m_settings.show_radar[m_ri->m_radar] = 0;
LOG_DIALOG(wxT("BR24radar_pi: RadarPanel::close: show_radar[%d]=%d"), m_ri->m_radar, 0);
m_pi->NotifyRadarWindowViz();
} else {
LOG_DIALOG(wxT("BR24radar_pi: RadarPanel::close: ignore close of window %s in window %s"), pane->name.c_str(),
m_aui_name.c_str());
}
}