1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/aui/floatpane.h
3 // Purpose: wxaui: wx advanced user interface - docking window manager
4 // Author: Benjamin I. Williams
7 // Copyright: (C) Copyright 2005, Kirix Corporation, All Rights Reserved.
8 // Licence: wxWindows Library Licence, Version 3.1
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_FLOATPANE_H_
12 #define _WX_FLOATPANE_H_
14 // ----------------------------------------------------------------------------
16 // ----------------------------------------------------------------------------
19 #include "wx/weakref.h"
24 #include "wx/minifram.h"
25 #define wxAuiFloatingFrameBaseClass wxMiniFrame
28 #define wxAuiFloatingFrameBaseClass wxFrame
31 class WXDLLIMPEXP_AUI wxAuiFloatingFrame
: public wxAuiFloatingFrameBaseClass
34 wxAuiFloatingFrame(wxWindow
* parent
,
35 wxAuiManager
* ownerMgr
,
36 const wxAuiPaneInfo
& pane
,
37 wxWindowID id
= wxID_ANY
,
38 long style
= wxRESIZE_BORDER
| wxSYSTEM_MENU
| wxCAPTION
|
39 wxFRAME_NO_TASKBAR
| wxFRAME_FLOAT_ON_PARENT
|
42 virtual ~wxAuiFloatingFrame();
43 void SetPaneWindow(const wxAuiPaneInfo
& pane
);
44 wxAuiManager
* GetOwnerManager() const;
47 virtual void OnMoveStart();
48 virtual void OnMoving(const wxRect
& windowRect
, wxDirection dir
);
49 virtual void OnMoveFinished();
52 void OnSize(wxSizeEvent
& event
);
53 void OnClose(wxCloseEvent
& event
);
54 void OnMoveEvent(wxMoveEvent
& event
);
55 void OnIdle(wxIdleEvent
& event
);
56 void OnActivate(wxActivateEvent
& event
);
57 static bool isMouseDown();
60 wxWindow
* m_paneWindow
; // pane window being managed
61 bool m_solidDrag
; // true if system uses solid window drag
67 wxDirection m_lastDirection
;
69 wxWeakRef
<wxAuiManager
> m_ownerMgr
;
74 DECLARE_CLASS(wxAuiFloatingFrame
)
79 #endif //_WX_FLOATPANE_H_