]>
Commit | Line | Data |
---|---|---|
50acee04 | 1 | /////////////////////////////////////////////////////////////////////////////// |
be66f18e | 2 | // Name: wx/aui/floatpane.h |
50acee04 JS |
3 | // Purpose: wxaui: wx advanced user interface - docking window manager |
4 | // Author: Benjamin I. Williams | |
5 | // Modified by: | |
6 | // Created: 2005-05-17 | |
be66f18e | 7 | // RCS-ID: $Id$ |
50acee04 JS |
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 | ||
08469b1f JS |
23 | #include "wx/frame.h" |
24 | ||
d02d8b4c | 25 | #if defined( __WXMSW__ ) || defined( __WXMAC__ ) || defined( __WXGTK__ ) |
50acee04 | 26 | #include "wx/minifram.h" |
00c1c94c | 27 | #define wxAuiFloatingFrameBaseClass wxMiniFrame |
50acee04 | 28 | #else |
00c1c94c | 29 | #define wxAuiFloatingFrameBaseClass wxFrame |
50acee04 JS |
30 | #endif |
31 | ||
00c1c94c | 32 | class WXDLLIMPEXP_AUI wxAuiFloatingFrame : public wxAuiFloatingFrameBaseClass |
50acee04 JS |
33 | { |
34 | public: | |
00c1c94c | 35 | wxAuiFloatingFrame(wxWindow* parent, |
a3a5df9d BW |
36 | wxAuiManager* owner_mgr, |
37 | const wxAuiPaneInfo& pane, | |
bc429ce0 RR |
38 | wxWindowID id = wxID_ANY, |
39 | long style = wxRESIZE_BORDER | wxSYSTEM_MENU | wxCAPTION | | |
40 | wxFRAME_NO_TASKBAR | wxFRAME_FLOAT_ON_PARENT | | |
41 | wxCLIP_CHILDREN | |
e5ab82d3 | 42 | ); |
00c1c94c | 43 | virtual ~wxAuiFloatingFrame(); |
a3a5df9d | 44 | void SetPaneWindow(const wxAuiPaneInfo& pane); |
4dc79cfb | 45 | wxAuiManager* GetOwnerManager() const; |
bc429ce0 RR |
46 | |
47 | protected: | |
48 | virtual void OnMoveStart(); | |
49 | virtual void OnMoving(const wxRect& window_rect, wxDirection dir); | |
50 | virtual void OnMoveFinished(); | |
51 | ||
50acee04 JS |
52 | private: |
53 | void OnSize(wxSizeEvent& event); | |
54 | void OnClose(wxCloseEvent& event); | |
55 | void OnMoveEvent(wxMoveEvent& event); | |
56 | void OnIdle(wxIdleEvent& event); | |
50acee04 JS |
57 | void OnActivate(wxActivateEvent& event); |
58 | static bool isMouseDown(); | |
4dc79cfb | 59 | |
50acee04 JS |
60 | private: |
61 | wxWindow* m_pane_window; // pane window being managed | |
22fec94a | 62 | bool m_solid_drag; // true if system uses solid window drag |
50acee04 JS |
63 | bool m_moving; |
64 | wxRect m_last_rect; | |
322c5ec4 RR |
65 | wxRect m_last2_rect; |
66 | wxRect m_last3_rect; | |
50acee04 | 67 | wxSize m_last_size; |
322c5ec4 | 68 | wxDirection m_lastDirection; |
50acee04 | 69 | |
a3a5df9d BW |
70 | wxAuiManager* m_owner_mgr; |
71 | wxAuiManager m_mgr; | |
50acee04 | 72 | |
06d4c4d6 | 73 | #ifndef SWIG |
50acee04 | 74 | DECLARE_EVENT_TABLE() |
4dc79cfb | 75 | DECLARE_CLASS(wxAuiFloatingFrame) |
06d4c4d6 | 76 | #endif // SWIG |
50acee04 JS |
77 | }; |
78 | ||
79 | #endif // wxUSE_AUI | |
80 | #endif //_WX_FLOATPANE_H_ | |
81 |