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 // ----------------------------------------------------------------------------
25 #if defined( __WXMSW__ ) || defined( __WXMAC__ ) || defined( __WXGTK__ )
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
,
37 const wxPaneInfo
& pane
,
38 wxWindowID id
= wxID_ANY
40 virtual ~wxFloatingPane();
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
, wxDirection dir
);
49 void OnMoveFinished();
50 void OnActivate(wxActivateEvent
& event
);
51 static bool isMouseDown();
53 wxWindow
* m_pane_window
; // pane window being managed
59 wxDirection m_lastDirection
;
61 wxFrameManager
* m_owner_mgr
;
66 DECLARE_CLASS(wxFloatingPaneBaseClass
)
71 #endif //_WX_FLOATPANE_H_