1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/aui/floatpane.h
3 // Purpose: wxaui: wx advanced user interface - docking window manager
4 // Author: Benjamin I. Williams
8 // Copyright: (C) Copyright 2005, Kirix Corporation, All Rights Reserved.
9 // Licence: wxWindows Library Licence, Version 3.1
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_FLOATPANE_H_
13 #define _WX_FLOATPANE_H_
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
24 #include "wx/minifram.h"
25 #define wxAuiFloatingFrameBaseClass wxMiniFrame
28 #define wxAuiFloatingFrameBaseClass wxFrame
31 class WXDLLIMPEXP_AUI wxAuiFloatingFrame
: public wxAuiFloatingFrameBaseClass
33 friend class wxAuiManager
;
36 wxAuiFloatingFrame(wxWindow
* parent
,
37 wxAuiManager
* owner_mgr
,
38 const wxAuiPaneInfo
& pane
,
39 wxWindowID id
= wxID_ANY
,
40 long style
= wxRESIZE_BORDER
| wxSYSTEM_MENU
| wxCAPTION
|
41 wxFRAME_NO_TASKBAR
| wxFRAME_FLOAT_ON_PARENT
|
44 virtual ~wxAuiFloatingFrame();
45 void SetPaneWindow(const wxAuiPaneInfo
& pane
);
46 wxAuiManager
* GetOwnerManager() const;
49 void SetOwnerManager(wxAuiManager
* owner_mgr
);
50 virtual void OnMoveStart();
51 virtual void OnMoving(const wxRect
& window_rect
, wxDirection dir
);
52 virtual void OnMoveFinished();
55 void OnSize(wxSizeEvent
& event
);
56 void OnClose(wxCloseEvent
& event
);
57 void OnMoveEvent(wxMoveEvent
& event
);
58 void OnIdle(wxIdleEvent
& event
);
59 void OnActivate(wxActivateEvent
& event
);
60 static bool isMouseDown();
63 wxWindow
* m_pane_window
; // pane window being managed
64 bool m_solid_drag
; // true if system uses solid window drag
70 wxDirection m_lastDirection
;
72 wxAuiManager
* m_owner_mgr
;
77 DECLARE_CLASS(wxAuiFloatingFrame
)
82 #endif //_WX_FLOATPANE_H_