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
);
45 wxAuiManager
* GetOwnerManager() const;
48 virtual void OnMoveStart();
49 virtual void OnMoving(const wxRect
& window_rect
, wxDirection dir
);
50 virtual void OnMoveFinished();
53 void OnSize(wxSizeEvent
& event
);
54 void OnClose(wxCloseEvent
& event
);
55 void OnMoveEvent(wxMoveEvent
& event
);
56 void OnIdle(wxIdleEvent
& event
);
57 void OnActivate(wxActivateEvent
& event
);
58 static bool isMouseDown();
61 wxWindow
* m_pane_window
; // pane window being managed
62 bool m_solid_drag
; // true if system uses solid window drag
68 wxDirection m_lastDirection
;
70 wxAuiManager
* m_owner_mgr
;
75 DECLARE_CLASS(wxAuiFloatingFrame
)
80 #endif //_WX_FLOATPANE_H_