• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ wxAuiManagerEvent类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中wxAuiManagerEvent的典型用法代码示例。如果您正苦于以下问题:C++ wxAuiManagerEvent类的具体用法?C++ wxAuiManagerEvent怎么用?C++ wxAuiManagerEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了wxAuiManagerEvent类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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 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


示例3: 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


示例4: 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


示例5: 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


示例6: OnPaneClose

void AISTargetListDialog::OnPaneClose( wxAuiManagerEvent& event )
{
    if( event.pane->name == _T("AISTargetList") ) {
        g_AisTargetList_perspective = m_pAuiManager->SavePaneInfo( *event.pane );
        //event.Veto();
    }
    event.Skip();
}
开发者ID:aaronbradshaw,项目名称:OpenCPN,代码行数:8,代码来源:AISTargetListDialog.cpp


示例7: OnRender

void OutputViewControlBar::OnRender(wxAuiManagerEvent& event)
{
	if ( m_aui && m_aui->GetPane(wxT("Output View")).IsShown() == false ) {
		DoMarkActive( wxEmptyString );
	} else if ( m_aui ) {
		DoMarkActive ( m_book->GetPageText( m_book->GetSelection() ) );
	}
	event.Skip();
}
开发者ID:RVictor,项目名称:EmbeddedLite,代码行数:9,代码来源:outputviewcontrolbar.cpp


示例8: OnManagerResize

void CFrame::OnManagerResize(wxAuiManagerEvent& event)
{
	if (!g_pCodeWindow && m_LogWindow &&
			m_Mgr->GetPane("Pane 1").IsShown() &&
			!m_Mgr->GetPane("Pane 1").IsFloating())
	{
		m_LogWindow->x = m_Mgr->GetPane("Pane 1").rect.GetWidth();
		m_LogWindow->y = m_Mgr->GetPane("Pane 1").rect.GetHeight();
		m_LogWindow->winpos = m_Mgr->GetPane("Pane 1").dock_direction;
	}
	event.Skip();
}
开发者ID:Pnum,项目名称:dolphin,代码行数:12,代码来源:FrameAui.cpp


示例9: OnRender

void Notebook::OnRender(wxAuiManagerEvent &e)
{
	if (m_aui) {
		wxAuiPaneInfo info = m_aui->GetPane( m_paneName );
		if (info.IsOk()) {
			//we got the containing pane of the book, test its orientation
			if (info.dock_direction == wxAUI_DOCK_LEFT && m_style & wxVB_RIGHT) {
				SetOrientation(wxVB_LEFT);
			} else if (info.dock_direction == wxAUI_DOCK_RIGHT && m_style & wxVB_LEFT) {
				SetOrientation(wxVB_RIGHT);
			}
		}
	}
	e.Skip();
}
开发者ID:RVictor,项目名称:EmbeddedLite,代码行数:15,代码来源:custom_notebook.cpp


示例10: OnAuiUpdate

////////////////////////////////////////////////////////////////////////////////
//  OnAuiUpdate()
//
//    Update the view menu to reflect AUI changes
void frmDebugger::OnAuiUpdate(wxAuiManagerEvent &event)
{
	if(event.pane->name == wxT("toolBar"))
	{
		m_viewMenu->Check(MENU_ID_VIEW_TOOLBAR, false);
	}
	else if(event.pane->name == wxT("stackPane"))
	{
		m_viewMenu->Check(MENU_ID_VIEW_STACKPANE, false);
	}
	else if(event.pane->name == wxT("outputPane"))
	{
		m_viewMenu->Check(MENU_ID_VIEW_OUTPUTPANE, false);
	}
	event.Skip();
}
开发者ID:Timosha,项目名称:pgadmin3,代码行数:20,代码来源:frmDebugger.cpp


示例11: OnAuiUpdate

void frmMain::OnAuiUpdate(wxAuiManagerEvent &event)
{
	if(event.pane->name == wxT("objectBrowser"))
	{
		viewMenu->Check(MNU_OBJECTBROWSER, false);
	}
	else if(event.pane->name == wxT("sqlPane"))
	{
		viewMenu->Check(MNU_SQLPANE, false);
	}
	else if(event.pane->name == wxT("toolBar"))
	{
		viewMenu->Check(MNU_TOOLBAR, false);
	}
	event.Skip();
}
开发者ID:search5,项目名称:pgadmin3,代码行数:16,代码来源:events.cpp


示例12: OnPaneClose

void CFrame::OnPaneClose(wxAuiManagerEvent& event)
{
	event.Veto();

	wxAuiNotebook * nb = (wxAuiNotebook*)event.pane->window;
	if (!nb) return;

	if (!g_pCodeWindow)
	{
		if (nb->GetPage(0)->GetId() == IDM_LOGWINDOW ||
				nb->GetPage(0)->GetId() == IDM_LOGCONFIGWINDOW ||
				nb->GetPage(0)->GetId() == IDM_CONSOLEWINDOW)
		{
			// Closing a pane containing the logwindow or a console closes both
			SConfig::GetInstance().m_InterfaceConsole = false;
			SConfig::GetInstance().m_InterfaceLogWindow = false;
			SConfig::GetInstance().m_InterfaceLogConfigWindow = false;
			ToggleConsole(false);
			ToggleLogWindow(false);
			ToggleLogConfigWindow(false);
		}
	}
	else
	{
		if (GetNotebookCount() == 1)
		{
			wxMessageBox(_("At least one pane must remain open."),
					_("Notice"), wxOK, this);
		}
		else if (nb->GetPageCount() != 0 && !nb->GetPageText(0).IsSameAs(wxT("<>")))
		{
			wxMessageBox(_("You can't close panes that have pages in them."),
					_("Notice"), wxOK, this);
		}
		else
		{
			// Detach and delete the empty notebook
			event.pane->DestroyOnClose(true);
			m_Mgr->ClosePane(*event.pane);
		}
	}

	m_Mgr->Update();
}
开发者ID:Bigorneau,项目名称:dolphin,代码行数:44,代码来源:FrameAui.cpp


示例13: OnAuiRender

void gecomapi_pi::OnAuiRender( wxAuiManagerEvent& event )
{
      //TODO: Can we prevent the resizing here?
      event.Skip();
}
开发者ID:nohal,项目名称:gecomapi_pi,代码行数:5,代码来源:gecomapi_pi.cpp



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ wxAuiNotebookEvent类代码示例发布时间:2022-05-31
下一篇:
C++ wxArrayStringsAdapter类代码示例发布时间:2022-05-31
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap