]> git.saurik.com Git - wxWidgets.git/blob - include/wx/aui/floatpane.h
Further wxAUI commits
[wxWidgets.git] / include / wx / aui / floatpane.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: floatpane.h
3 // Purpose: wxaui: wx advanced user interface - docking window manager
4 // Author: Benjamin I. Williams
5 // Modified by:
6 // Created: 2005-05-17
7 // RCS-ID:
8 // Copyright: (C) Copyright 2005, Kirix Corporation, All Rights Reserved.
9 // Licence: wxWindows Library Licence, Version 3.1
10 ///////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_FLOATPANE_H_
13 #define _WX_FLOATPANE_H_
14
15 // ----------------------------------------------------------------------------
16 // headers
17 // ----------------------------------------------------------------------------
18
19 #include "wx/defs.h"
20
21 #if wxUSE_AUI
22
23 #if defined( __WXMSW__ ) || defined( __WXMAC__ )
24 #include "wx/minifram.h"
25 #define wxFloatingPaneBaseClass wxMiniFrame
26 #else
27 #define wxFloatingPaneBaseClass wxFrame
28 #endif
29
30 class WXDLLIMPEXP_AUI wxFloatingPane : public wxFloatingPaneBaseClass
31 {
32 public:
33 wxFloatingPane(wxWindow* parent,
34 wxFrameManager* owner_mgr,
35 wxWindowID id = -1,
36 const wxPoint& pos = wxDefaultPosition,
37 const wxSize& size = wxDefaultSize);
38 ~wxFloatingPane();
39 void SetPaneWindow(const wxPaneInfo& pane);
40 private:
41 void OnSize(wxSizeEvent& event);
42 void OnClose(wxCloseEvent& event);
43 void OnMoveEvent(wxMoveEvent& event);
44 void OnIdle(wxIdleEvent& event);
45 void OnMoveStart();
46 void OnMoving(const wxRect& window_rect);
47 void OnMoveFinished();
48 void OnActivate(wxActivateEvent& event);
49 static bool isMouseDown();
50 private:
51 wxWindow* m_pane_window; // pane window being managed
52 bool m_moving;
53 wxRect m_last_rect;
54 wxSize m_last_size;
55
56 wxFrameManager* m_owner_mgr;
57 wxFrameManager m_mgr;
58
59 DECLARE_EVENT_TABLE()
60 };
61
62 #endif // wxUSE_AUI
63 #endif //_WX_FLOATPANE_H_
64