diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:11:56 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:11:56 +0200 |
commit | 98ecf620f7de377dc8ae9ad7fbd1e3b24477e138 (patch) | |
tree | faadc6d8822c20cd3bc6f50b2a98e6c580585949 /shared/mouse_move_dlg.h | |
parent | 3.16 (diff) | |
download | FreeFileSync-98ecf620f7de377dc8ae9ad7fbd1e3b24477e138.tar.gz FreeFileSync-98ecf620f7de377dc8ae9ad7fbd1e3b24477e138.tar.bz2 FreeFileSync-98ecf620f7de377dc8ae9ad7fbd1e3b24477e138.zip |
3.17
Diffstat (limited to 'shared/mouse_move_dlg.h')
-rw-r--r-- | shared/mouse_move_dlg.h | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/shared/mouse_move_dlg.h b/shared/mouse_move_dlg.h index ccdf6c01..2e23c089 100644 --- a/shared/mouse_move_dlg.h +++ b/shared/mouse_move_dlg.h @@ -9,32 +9,23 @@ #include <wx/window.h> -namespace ffs3 +namespace zen { -//move main dialog by mouse-dragging contained sub-windows: just attach to parent via new in constructor: ownership passed! +/* +move dialog by mouse-dragging contained sub-windows: just attach to parent via new in constructor: + new MouseMoveWindow(parent); //ownership passed to parent +*/ class MouseMoveWindow : public wxWindow //private wxEvtHandler { public: - MouseMoveWindow(wxWindow& parent, - wxWindow* child1, - wxWindow* child2 = NULL, - wxWindow* child3 = NULL, - wxWindow* child4 = NULL, - wxWindow* child5 = NULL, - wxWindow* child6 = NULL); + MouseMoveWindow(wxWindow& parent, bool includeParent = true); //parent including all relevant child elements - virtual ~MouseMoveWindow(); - - virtual bool allowMove(const wxMouseEvent& event) - { - return true; - } + virtual bool allowMove(const wxMouseEvent& event) { return true; } private: void LeftButtonDown(wxMouseEvent& event); }; } - #endif // MOUSEMOVEWINDOW_H_INCLUDED |