1 ///////////////////////////////////////////////////////////////////////////////
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 // ----------------------------------------------------------------------------
25 #if defined( __WXMSW__ ) || defined( __WXMAC__ )
26 #include "wx/minifram.h"
27 #define wxFloatingPaneBaseClass wxMiniFrame
29 #define wxFloatingPaneBaseClass wxFrame
32 class WXDLLIMPEXP_AUI wxFloatingPane
: public wxFloatingPaneBaseClass
35 wxFloatingPane(wxWindow
* parent
,
36 wxFrameManager
* owner_mgr
,
38 const wxPoint
& pos
= wxDefaultPosition
,
39 const wxSize
& size
= wxDefaultSize
);
41 void SetPaneWindow(const wxPaneInfo
& pane
);
43 void OnSize(wxSizeEvent
& event
);
44 void OnClose(wxCloseEvent
& event
);
45 void OnMoveEvent(wxMoveEvent
& event
);
46 void OnIdle(wxIdleEvent
& event
);
48 void OnMoving(const wxRect
& window_rect
);
49 void OnMoveFinished();
50 void OnActivate(wxActivateEvent
& event
);
51 static bool isMouseDown();
53 wxWindow
* m_pane_window
; // pane window being managed
58 wxFrameManager
* m_owner_mgr
;
65 #endif //_WX_FLOATPANE_H_