The main frame of the wxWidgets application.
Definition at line 130 of file WxSubsystem.h.
#include <mrpt/gui/WxSubsystem.h>
Public Member Functions | |
CWXMainFrame (wxWindow *parent, wxWindowID id=-1) | |
virtual | ~CWXMainFrame () |
Static Public Member Functions | |
static int | notifyWindowCreation () |
Atomically increments the number of windows created with the main frame as parent. More... | |
static int | notifyWindowDestruction () |
Atomically decrements the number of windows created with the main frame as parent. More... | |
Static Public Attributes | |
static volatile CWXMainFrame * | oneInstance = NULL |
Private Member Functions | |
void | OnTimerProcessRequests (wxTimerEvent &event) |
This method processes the pending requests from the main MRPT application thread. More... | |
Private Attributes | |
wxTimer * | m_theTimer |
Static Private Attributes | |
static synch::CCriticalSection | cs_windowCount |
static int | m_windowCount = 0 |
Friends | |
void | WxSubsystem::waitWxShutdownsIfNoWindows () |
WxSubsystem::CWXMainFrame::CWXMainFrame | ( | wxWindow * | parent, |
wxWindowID | id = -1 |
||
) |
Definition at line 154 of file WxSubsystem.cpp.
References ID_TIMER_WX_PROCESS_REQUESTS.
|
virtual |
Definition at line 180 of file WxSubsystem.cpp.
|
static |
Atomically increments the number of windows created with the main frame as parent.
Definition at line 195 of file WxSubsystem.cpp.
Referenced by mrpt::gui::C3DWindowDialog::C3DWindowDialog(), mrpt::gui::CWindowDialog::CWindowDialog(), and mrpt::gui::CWindowDialogPlots::CWindowDialogPlots().
|
static |
Atomically decrements the number of windows created with the main frame as parent.
Definition at line 201 of file WxSubsystem.cpp.
Referenced by mrpt::gui::CWindowDialog::OnClose(), mrpt::gui::C3DWindowDialog::OnClose(), and mrpt::gui::CWindowDialogPlots::OnClose().
|
private |
This method processes the pending requests from the main MRPT application thread.
The requests may be to create a new window, close another one, change title, etc...
Definition at line 277 of file WxSubsystem.cpp.
References _U, mrpt::gui::detail::TReturnAskUserOpenCamera::accepted_by_user, mrpt::gui::C3DWindowDialog::addTextMessage(), mrpt::gui::CWindowDialog::wxMRPTImageControl::AssignImage(), mrpt::gui::WxSubsystem::TRequestToWxMainThread::boolVal, mrpt::gui::C3DWindowDialog::clearTextMessages(), mrpt::gui::CBaseGUIWindow::getWxObject(), mrpt::gui::CWindowDialogPlots::image(), mrpt::gui::CWindowDialogPlots::m_firstSubmenu, mrpt::gui::CWindowDialogPlots::m_ID2ID, mrpt::gui::CWindowDialog::m_image, mrpt::gui::CWindowDialogPlots::m_plot, mrpt::gui::CBaseGUIWindow::notifySemThreadReady(), oneInstance, mrpt::gui::CWindowDialogPlots::OnMenuSelected(), mrpt::gui::WxSubsystem::TRequestToWxMainThread::OPCODE, CDialogAskUserForCamera::panel, mrpt::gui::CWindowDialogPlots::plot(), mrpt::gui::CWindowDialogPlots::plotEllipse(), mrpt::gui::WxSubsystem::TRequestToWxMainThread::plotName, mrpt::synch::CSemaphore::release(), mrpt::gui::detail::TReturnAskUserOpenCamera::selectedConfig, mrpt::gui::WxSubsystem::TRequestToWxMainThread::source2D, mrpt::gui::WxSubsystem::TRequestToWxMainThread::source3D, mrpt::gui::WxSubsystem::TRequestToWxMainThread::sourceCameraSelectDialog, mrpt::gui::WxSubsystem::TRequestToWxMainThread::sourcePlots, mrpt::gui::WxSubsystem::TRequestToWxMainThread::str, mrpt::gui::WxSubsystem::TRequestToWxMainThread::vector_x, mrpt::gui::WxSubsystem::TRequestToWxMainThread::vector_y, mrpt::gui::WxSubsystem::TRequestToWxMainThread::voidPtr, mrpt::gui::WxSubsystem::TRequestToWxMainThread::voidPtr2, mrpt::gui::CPanelCameraSelection::writeConfigFromVideoSourcePanel(), mrpt::gui::WxSubsystem::TRequestToWxMainThread::x, and mrpt::gui::WxSubsystem::TRequestToWxMainThread::y.
|
friend |
|
staticprivate |
Definition at line 153 of file WxSubsystem.h.
|
private |
Definition at line 156 of file WxSubsystem.h.
|
staticprivate |
Definition at line 154 of file WxSubsystem.h.
|
static |
Definition at line 148 of file WxSubsystem.h.
Referenced by mrpt::gui::WxSubsystem::createOneInstanceMainThread(), OnTimerProcessRequests(), and mrpt::gui::WxSubsystem::pushPendingWxRequest().
Page generated by Doxygen 1.8.14 for MRPT 1.5.5 Git: e06b63dbf Fri Dec 1 14:41:11 2017 +0100 at lun oct 28 01:31:35 CET 2019 |