当前位置: 首页>>代码示例>>C++>>正文


C++ wxAuiManagerEvent::GetPane方法代码示例

本文整理汇总了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

}
开发者ID:harmboschloo,项目名称:CocaProject,代码行数:33,代码来源:CocaDocumentManager.cpp

示例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
	}
开发者ID:Amadiro,项目名称:xara-cairo,代码行数:16,代码来源:camframe.cpp

示例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);
    }
}
开发者ID:xeqtr1982,项目名称:phd2,代码行数:33,代码来源:myframe_events.cpp

示例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();
}
开发者ID:Hreinnjons,项目名称:guayadeque,代码行数:13,代码来源:AuiManagerPanel.cpp

示例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());
  }
}
开发者ID:CarCode,项目名称:Cocoa-OCPN,代码行数:14,代码来源:RadarPanel.cpp


注:本文中的wxAuiManagerEvent::GetPane方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。