From 98ecf620f7de377dc8ae9ad7fbd1e3b24477e138 Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:11:56 +0200 Subject: 3.17 --- shared/mouse_move_dlg.h | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) (limited to 'shared/mouse_move_dlg.h') 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 -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 -- cgit