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

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

Inheritance diagram for PopupWindow:
Collaboration diagram for PopupWindow:

Public Member Functions

 PopupWindow ()
 ~PopupWindow ()
 PopupWindow (wxWindow *parent, int style=wxBORDER_NONE)
bool Create (wxWindow *parent, int flags=wxBORDER_NONE)

Protected Member Functions

virtual bool ShouldDismissOnTopWindowDeactivate ()

Detailed Description

Constructor & Destructor Documentation

◆ PopupWindow() [1/2]

◆ ~PopupWindow()

PopupWindow::~PopupWindow ( )
37{
38#ifdef __WXGTK__
39 GetTopParent(this)->Unbind(wxEVT_ACTIVATE, &PopupWindow::topWindowActiavate, this);
40#endif
41#ifdef __WXMSW__
42 GetTopParent(this)->Unbind(wxEVT_ACTIVATE, &PopupWindow::topWindowActivate, this);
43 GetTopParent(this)->Unbind(wxEVT_ICONIZE, &PopupWindow::topWindowIconize, this);
44 GetTopParent(this)->Unbind(wxEVT_SHOW, &PopupWindow::topWindowShow, this);
45#endif
46}
static wxWindow * GetTopParent(wxWindow *pWindow)
Definition PopupWindow.cpp:10

References GetTopParent().

Here is the call graph for this function:

◆ PopupWindow() [2/2]

PopupWindow::PopupWindow ( wxWindow * parent,
int style = wxBORDER_NONE )
inline
14{ Create(parent, style); }
#define style
Definition WipeTowerDialog.cpp:101
bool Create(wxWindow *parent, int flags=wxBORDER_NONE)
Definition PopupWindow.cpp:21

References Create(), and style.

Here is the call graph for this function:

Member Function Documentation

◆ Create()

bool PopupWindow::Create ( wxWindow * parent,
int flags = wxBORDER_NONE )
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}

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:

◆ ShouldDismissOnTopWindowDeactivate()

virtual bool PopupWindow::ShouldDismissOnTopWindowDeactivate ( )
inlineprotectedvirtual

Reimplemented in DropDown.

28{ return true; }

The documentation for this class was generated from the following files:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Widgets/PopupWindow.hpp
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Widgets/PopupWindow.cpp