diff options
author | bubnikv <bubnikv@gmail.com> | 2020-03-13 16:19:02 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2020-03-13 16:19:14 +0300 |
commit | 2f6326a2ebe519beb86dde4883f8f1493d0c0a6b (patch) | |
tree | 1a42697f0bee006532819775b4adca9fcb6f1269 /src/slic3r/GUI/GUI_Utils.cpp | |
parent | 3684eea53ddaa049a72d958079efc6c05fa33b66 (diff) |
Windows specific refactoring of Mouse3DController and RemovableDriveManager.
PrusaSlicer newly registers by Windows operating system for HID USB
plug / unplug notifications and for Volume attach / detach notifications,
and the background threads of the two respective services are waken up
on these Windows notifications.
The RemovableDriveManager also wakes up every 30 seconds to cope with
the drives ejected from Windows Explorer or from another application,
for example Cura, for which Windows OS does not send out notifications.
Diffstat (limited to 'src/slic3r/GUI/GUI_Utils.cpp')
-rw-r--r-- | src/slic3r/GUI/GUI_Utils.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/slic3r/GUI/GUI_Utils.cpp b/src/slic3r/GUI/GUI_Utils.cpp index 1e452b220..6bce54dbc 100644 --- a/src/slic3r/GUI/GUI_Utils.cpp +++ b/src/slic3r/GUI/GUI_Utils.cpp @@ -21,6 +21,10 @@ namespace Slic3r { namespace GUI { +wxDEFINE_EVENT(EVT_HID_DEVICE_ATTACHED, HIDDeviceAttachedEvent); +wxDEFINE_EVENT(EVT_HID_DEVICE_DETACHED, HIDDeviceDetachedEvent); +wxDEFINE_EVENT(EVT_VOLUME_ATTACHED, VolumeAttachedEvent); +wxDEFINE_EVENT(EVT_VOLUME_DETACHED, VolumeDetachedEvent); wxTopLevelWindow* find_toplevel_parent(wxWindow *window) { |