]>
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 JS |
26 | #include "wx/minifram.h" |
27 | #define wxFloatingPaneBaseClass wxMiniFrame | |
28 | #else | |
29 | #define wxFloatingPaneBaseClass wxFrame | |
30 | #endif | |
31 | ||
32 | class WXDLLIMPEXP_AUI wxFloatingPane : public wxFloatingPaneBaseClass | |
33 | { | |
34 | public: | |
35 | wxFloatingPane(wxWindow* parent, | |
36 | wxFrameManager* owner_mgr, | |
e5ab82d3 AB |
37 | const wxPaneInfo& pane, |
38 | wxWindowID id = wxID_ANY | |
39 | ); | |
d3c7fc99 | 40 | virtual ~wxFloatingPane(); |
50acee04 JS |
41 | void SetPaneWindow(const wxPaneInfo& pane); |
42 | private: | |
43 | void OnSize(wxSizeEvent& event); | |
44 | void OnClose(wxCloseEvent& event); | |
45 | void OnMoveEvent(wxMoveEvent& event); | |
46 | void OnIdle(wxIdleEvent& event); | |
47 | void OnMoveStart(); | |
322c5ec4 | 48 | void OnMoving(const wxRect& window_rect, wxDirection dir); |
50acee04 JS |
49 | void OnMoveFinished(); |
50 | void OnActivate(wxActivateEvent& event); | |
51 | static bool isMouseDown(); | |
52 | private: | |
53 | wxWindow* m_pane_window; // pane window being managed | |
54 | bool m_moving; | |
55 | wxRect m_last_rect; | |
322c5ec4 RR |
56 | wxRect m_last2_rect; |
57 | wxRect m_last3_rect; | |
50acee04 | 58 | wxSize m_last_size; |
322c5ec4 | 59 | wxDirection m_lastDirection; |
50acee04 JS |
60 | |
61 | wxFrameManager* m_owner_mgr; | |
62 | wxFrameManager m_mgr; | |
63 | ||
06d4c4d6 | 64 | #ifndef SWIG |
50acee04 | 65 | DECLARE_EVENT_TABLE() |
e5ab82d3 | 66 | DECLARE_CLASS(wxFloatingPaneBaseClass) |
06d4c4d6 | 67 | #endif // SWIG |
50acee04 JS |
68 | }; |
69 | ||
70 | #endif // wxUSE_AUI | |
71 | #endif //_WX_FLOATPANE_H_ | |
72 |