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 wxAuiFloatingFrameBaseClass wxMiniFrame
29 #define wxAuiFloatingFrameBaseClass wxFrame
32 class WXDLLIMPEXP_AUI wxAuiFloatingFrame
: public wxAuiFloatingFrameBaseClass
35 wxAuiFloatingFrame(wxWindow
* parent
,
36 wxAuiManager
* owner_mgr
,
37 const wxAuiPaneInfo
& pane
,
38 wxWindowID id
= wxID_ANY
,
39 long style
= wxRESIZE_BORDER
| wxSYSTEM_MENU
| wxCAPTION
|
40 wxFRAME_NO_TASKBAR
| wxFRAME_FLOAT_ON_PARENT
|
43 virtual ~wxAuiFloatingFrame();
44 void SetPaneWindow(const wxAuiPaneInfo
& pane
);
47 virtual void OnMoveStart();
48 virtual void OnMoving(const wxRect
& window_rect
, 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();
59 wxWindow
* m_pane_window
; // pane window being managed
60 bool m_solid_drag
; // true if system uses solid window drag
66 wxDirection m_lastDirection
;
68 wxAuiManager
* m_owner_mgr
;
73 DECLARE_CLASS(wxAuiFloatingFrameBaseClass
)
78 #endif //_WX_FLOATPANE_H_