mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 09:47:58 -06:00
ENABLE_GCODE_VIEWER -> Experimental taskbar icon
This commit is contained in:
parent
e22e85e8e2
commit
93921dc7c8
3 changed files with 50 additions and 0 deletions
|
@ -7,6 +7,9 @@
|
|||
#include <wx/settings.h>
|
||||
#include <wx/string.h>
|
||||
#include <wx/filehistory.h>
|
||||
#if ENABLE_GCODE_VIEWER_TASKBAR_ICON
|
||||
#include <wx/taskbar.h>
|
||||
#endif // ENABLE_GCODE_VIEWER_TASKBAR_ICON
|
||||
|
||||
#include <string>
|
||||
#include <map>
|
||||
|
@ -160,7 +163,11 @@ protected:
|
|||
|
||||
public:
|
||||
MainFrame();
|
||||
#if ENABLE_GCODE_VIEWER_TASKBAR_ICON
|
||||
~MainFrame();
|
||||
#else
|
||||
~MainFrame() = default;
|
||||
#endif // ENABLE_GCODE_VIEWER_TASKBAR_ICON
|
||||
|
||||
void update_layout();
|
||||
|
||||
|
@ -219,6 +226,10 @@ public:
|
|||
wxProgressDialog* m_progress_dialog { nullptr };
|
||||
std::shared_ptr<ProgressStatusBar> m_statusbar;
|
||||
|
||||
#if ENABLE_GCODE_VIEWER_TASKBAR_ICON
|
||||
wxTaskBarIcon* m_taskbar_icon{ nullptr };
|
||||
#endif // ENABLE_GCODE_VIEWER_TASKBAR_ICON
|
||||
|
||||
#ifdef _WIN32
|
||||
void* m_hDeviceNotify { nullptr };
|
||||
uint32_t m_ulSHChangeNotifyRegister { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue