OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
ImageTransientPopup Class Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/wxExtensions.hpp>

Inheritance diagram for ImageTransientPopup:
Collaboration diagram for ImageTransientPopup:

Public Member Functions

 ImageTransientPopup (wxWindow *parent, bool scrolled, wxBitmap bmp)
virtual ~ImageTransientPopup ()
void SetImage (wxBitmap bmp)
virtual void Popup (wxWindow *focus=NULL) wxOVERRIDE
virtual void OnDismiss () wxOVERRIDE
virtual bool ProcessLeftDown (wxMouseEvent &event) wxOVERRIDE
virtual bool Show (bool show=true) wxOVERRIDE
bool Create (wxWindow *parent, int flags=wxBORDER_NONE)

Protected Member Functions

virtual bool ShouldDismissOnTopWindowDeactivate ()

Private Member Functions

void OnMouse (wxMouseEvent &event)
void OnSize (wxSizeEvent &event)
void OnSetFocus (wxFocusEvent &event)
void OnKillFocus (wxFocusEvent &event)
 wxDECLARE_ABSTRACT_CLASS (ImageTransientPopup)
 wxDECLARE_EVENT_TABLE ()

Private Attributes

wxScrolledWindow * m_panel
wxStaticBitmap * m_image

Detailed Description

Constructor & Destructor Documentation

◆ ImageTransientPopup()

ImageTransientPopup::ImageTransientPopup ( wxWindow * parent,
bool scrolled,
wxBitmap bmp )

References ProcessLeftDown(), and Show().

Referenced by wxDECLARE_ABSTRACT_CLASS().

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

◆ ~ImageTransientPopup()

ImageTransientPopup::~ImageTransientPopup ( )
virtual
1231{
1232}

Member Function Documentation

◆ Create()

bool PopupWindow::Create ( wxWindow * parent,
int flags = wxBORDER_NONE )
inherited
22{
23 if (!wxPopupTransientWindow::Create(parent, style))
24 return false;
25#ifdef __WXGTK__
26 GetTopParent(parent)->Bind(wxEVT_ACTIVATE, &PopupWindow::topWindowActiavate, this);
27#endif
28#ifdef __WXOSX__
29 if (style & wxPU_CONTAINS_CONTROLS)
30 for (auto evt : {wxEVT_LEFT_DOWN, wxEVT_LEFT_UP, wxEVT_LEFT_DCLICK, wxEVT_MOTION, wxEVT_MOUSEWHEEL})
31 Bind(evt, &PopupWindow::OnMouseEvent2, this);
32#endif
33 return true;
34}
static wxWindow * GetTopParent(wxWindow *pWindow)
Definition PopupWindow.cpp:10
#define style
Definition WipeTowerDialog.cpp:101

References GetTopParent(), and style.

Referenced by PopupWindow(), and DropDown::Create().

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

◆ OnDismiss()

void ImageTransientPopup::OnDismiss ( )
virtual
1246{
1247 PopupWindow::OnDismiss();
1248}

◆ OnKillFocus()

void ImageTransientPopup::OnKillFocus ( wxFocusEvent & event)
private
1270{
1271 event.Skip();
1272}

Referenced by wxBEGIN_EVENT_TABLE().

Here is the caller graph for this function:

◆ OnMouse()

void ImageTransientPopup::OnMouse ( wxMouseEvent & event)
private
1275{
1276 event.Skip();
1277}

Referenced by wxBEGIN_EVENT_TABLE().

Here is the caller graph for this function:

◆ OnSetFocus()

void ImageTransientPopup::OnSetFocus ( wxFocusEvent & event)
private
1265{
1266 event.Skip();
1267}

Referenced by wxBEGIN_EVENT_TABLE().

Here is the caller graph for this function:

◆ OnSize()

void ImageTransientPopup::OnSize ( wxSizeEvent & event)
private
1260{
1261 event.Skip();
1262}

Referenced by wxBEGIN_EVENT_TABLE().

Here is the caller graph for this function:

◆ Popup()

void ImageTransientPopup::Popup ( wxWindow * focus = NULL)
virtual
1241{
1242 PopupWindow::Popup();
1243}

◆ ProcessLeftDown()

bool ImageTransientPopup::ProcessLeftDown ( wxMouseEvent & event)
virtual
1251{
1252 return PopupWindow::ProcessLeftDown(event);
1253}

Referenced by ImageTransientPopup().

Here is the caller graph for this function:

◆ SetImage()

void ImageTransientPopup::SetImage ( wxBitmap bmp)
1235{
1236 m_image->SetBitmap(bmp);
1237 m_panel->Layout();
1238}
wxScrolledWindow * m_panel
Definition wxExtensions.hpp:367
wxStaticBitmap * m_image
Definition wxExtensions.hpp:368

References m_image, and m_panel.

◆ ShouldDismissOnTopWindowDeactivate()

virtual bool PopupWindow::ShouldDismissOnTopWindowDeactivate ( )
inlineprotectedvirtualinherited

Reimplemented in DropDown.

28{ return true; }

◆ Show()

bool ImageTransientPopup::Show ( bool show = true)
virtual
1255{
1256 return PopupWindow::Show(show);
1257}

Referenced by ImageTransientPopup().

Here is the caller graph for this function:

◆ wxDECLARE_ABSTRACT_CLASS()

ImageTransientPopup::wxDECLARE_ABSTRACT_CLASS ( ImageTransientPopup )
private

References ImageTransientPopup(), and wxDECLARE_ABSTRACT_CLASS().

Referenced by wxDECLARE_ABSTRACT_CLASS().

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

◆ wxDECLARE_EVENT_TABLE()

ImageTransientPopup::wxDECLARE_EVENT_TABLE ( )
private

References wxDECLARE_EVENT_TABLE().

Referenced by wxDECLARE_EVENT_TABLE().

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

Member Data Documentation

◆ m_image

wxStaticBitmap* ImageTransientPopup::m_image
private

Referenced by SetImage().

◆ m_panel

wxScrolledWindow* ImageTransientPopup::m_panel
private

Referenced by SetImage().


The documentation for this class was generated from the following files: