mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-04 10:48:00 -05:00
Jira: [STUDIO-14642] Change-Id: If95ca1b448b2d3a03c2f6d6c0b5faad4a3c04e8c (cherry picked from commit 08943207564c0256d5a5efea9440e55efb7ccea0)
38 lines
833 B
C++
38 lines
833 B
C++
#ifndef slic3r_GUI_PopupWindow_hpp_
|
|
#define slic3r_GUI_PopupWindow_hpp_
|
|
|
|
#include <wx/popupwin.h>
|
|
#include <wx/event.h>
|
|
|
|
class PopupWindow : public wxPopupTransientWindow
|
|
{
|
|
public:
|
|
PopupWindow() {}
|
|
|
|
~PopupWindow();
|
|
|
|
PopupWindow(wxWindow *parent, int style = wxBORDER_NONE) { Create(parent, style); }
|
|
|
|
bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
|
|
#ifdef __WXMSW__
|
|
void BindUnfocusEvent();
|
|
#endif
|
|
private:
|
|
#ifdef __WXOSX__
|
|
void OnMouseEvent2(wxMouseEvent &evt);
|
|
wxEvtHandler * hovered { this };
|
|
#endif
|
|
|
|
#ifdef __WXGTK__
|
|
void topWindowActiavate(wxActivateEvent &event);
|
|
#endif
|
|
|
|
#ifdef __WXMSW__
|
|
void topWindowActivate(wxActivateEvent &event);
|
|
void topWindowIconize(wxIconizeEvent &event);
|
|
void topWindowShow(wxShowEvent &event);
|
|
#endif
|
|
};
|
|
|
|
#endif // !slic3r_GUI_PopupWindow_hpp_
|