MRPT  1.9.9
mrpt::gui::CWindowDialog Class Reference

Detailed Description

The wx dialog for gui::CDisplayWindow.

Definition at line 317 of file WxSubsystem.h.

#include <mrpt/gui/WxSubsystem.h>

Inheritance diagram for mrpt::gui::CWindowDialog:

Classes

class  wxMRPTImageControl
 A custom control to display the bitmap and avoid flicker. More...
 

Public Member Functions

 CWindowDialog (CDisplayWindow *win2D, WxSubsystem::CWXMainFrame *parent, wxWindowID id=-1, const std::string &caption=std::string("[MRPT-CDisplayWindow]"), wxSize initialSize=wxDefaultSize)
 
 ~CWindowDialog () override
 

Public Attributes

CDisplayWindowm_win2D
 
WxSubsystem::CWXMainFramem_mainFrame
 
wxMRPTImageControlm_image
 

Static Public Attributes

static const long ID_IMAGE_BITMAP = wxNewId()
 

Private Member Functions

void OnClose (wxCloseEvent &event)
 
void OnMenuClose (wxCommandEvent &event)
 
void OnMenuAbout (wxCommandEvent &event)
 
void OnMenuSave (wxCommandEvent &event)
 
void OnChar (wxKeyEvent &event)
 
void OnKeyDown (wxKeyEvent &event)
 
void OnResize (wxSizeEvent &event)
 
void OnMouseDown (wxMouseEvent &event)
 
void OnMouseMove (wxMouseEvent &event)
 

Constructor & Destructor Documentation

◆ CWindowDialog()

CWindowDialog::CWindowDialog ( CDisplayWindow win2D,
WxSubsystem::CWXMainFrame parent,
wxWindowID  id = -1,
const std::string caption = std::string("[MRPT-CDisplayWindow]"),
wxSize  initialSize = wxDefaultSize 
)

Definition at line 121 of file CDisplayWindow.cpp.

References mrpt::gui::WxSubsystem::getMRPTDefaultIcon(), ID_IMAGE_BITMAP, ID_MENUITEM1, ID_MENUITEM2, ID_MENUITEM3, m_image, mrpt::gui::WxSubsystem::CWXMainFrame::notifyWindowCreation(), OnChar(), OnClose(), OnMenuAbout(), OnMenuClose(), OnMenuSave(), OnMouseDown(), OnMouseMove(), and OnResize().

Here is the call graph for this function:

◆ ~CWindowDialog()

CWindowDialog::~CWindowDialog ( )
overridedefault

Member Function Documentation

◆ OnChar()

void CWindowDialog::OnChar ( wxKeyEvent &  event)
private

Definition at line 241 of file CDisplayWindow.cpp.

References mrpt::gui::keyEventToMrptKeyModifier(), mrpt::gui::CBaseGUIWindow::m_keyPushed, mrpt::gui::CBaseGUIWindow::m_keyPushedCode, mrpt::gui::CBaseGUIWindow::m_keyPushedModifier, m_win2D, and mrpt::system::CObservable::publishEvent().

Referenced by CWindowDialog().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnClose()

void CWindowDialog::OnClose ( wxCloseEvent &  event)
private

Definition at line 210 of file CDisplayWindow.cpp.

References mrpt::gui::mrptEventWindowClosed::allow_close, m_win2D, mrpt::gui::CBaseGUIWindow::m_windowDestroyed, mrpt::gui::CBaseGUIWindow::notifyChildWindowDestruction(), mrpt::gui::WxSubsystem::CWXMainFrame::notifyWindowDestruction(), and mrpt::system::CObservable::publishEvent().

Referenced by CWindowDialog().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnKeyDown()

void CWindowDialog::OnKeyDown ( wxKeyEvent &  event)
private

Definition at line 236 of file CDisplayWindow.cpp.

◆ OnMenuAbout()

void CWindowDialog::OnMenuAbout ( wxCommandEvent &  event)
private

Definition at line 321 of file CDisplayWindow.cpp.

Referenced by CWindowDialog().

Here is the caller graph for this function:

◆ OnMenuClose()

void CWindowDialog::OnMenuClose ( wxCommandEvent &  event)
private

Definition at line 319 of file CDisplayWindow.cpp.

Referenced by CWindowDialog().

Here is the caller graph for this function:

◆ OnMenuSave()

void CWindowDialog::OnMenuSave ( wxCommandEvent &  event)
private

Definition at line 329 of file CDisplayWindow.cpp.

References mrpt::gui::CWindowDialog::wxMRPTImageControl::GetBitmap(), and m_image.

Referenced by CWindowDialog().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnMouseDown()

void CWindowDialog::OnMouseDown ( wxMouseEvent &  event)
private

Definition at line 282 of file CDisplayWindow.cpp.

References mrpt::system::CObservable::hasSubscribers(), m_win2D, and mrpt::system::CObservable::publishEvent().

Referenced by CWindowDialog().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnMouseMove()

void CWindowDialog::OnMouseMove ( wxMouseEvent &  event)
private

Definition at line 300 of file CDisplayWindow.cpp.

References mrpt::system::CObservable::hasSubscribers(), m_win2D, and mrpt::system::CObservable::publishEvent().

Referenced by CWindowDialog().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnResize()

void CWindowDialog::OnResize ( wxSizeEvent &  event)
private

Definition at line 264 of file CDisplayWindow.cpp.

References mrpt::system::CObservable::hasSubscribers(), m_win2D, and mrpt::system::CObservable::publishEvent().

Referenced by CWindowDialog().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ ID_IMAGE_BITMAP

const long CWindowDialog::ID_IMAGE_BITMAP = wxNewId()
static

Definition at line 367 of file WxSubsystem.h.

Referenced by CWindowDialog().

◆ m_image

wxMRPTImageControl* mrpt::gui::CWindowDialog::m_image

Definition at line 365 of file WxSubsystem.h.

Referenced by CWindowDialog(), and OnMenuSave().

◆ m_mainFrame

WxSubsystem::CWXMainFrame* mrpt::gui::CWindowDialog::m_mainFrame

Definition at line 362 of file WxSubsystem.h.

◆ m_win2D

CDisplayWindow* mrpt::gui::CWindowDialog::m_win2D

Definition at line 361 of file WxSubsystem.h.

Referenced by OnChar(), OnClose(), OnMouseDown(), OnMouseMove(), and OnResize().




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 034c2ee2a Tue Aug 20 02:15:02 2019 +0200 at mar ago 20 02:20:10 CEST 2019