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
,
39 long style
= wxRESIZE_BORDER
| wxSYSTEM_MENU
| wxCAPTION
|
40 wxFRAME_NO_TASKBAR
| wxFRAME_FLOAT_ON_PARENT
|
43 virtual ~wxFloatingPane();
44 void SetPaneWindow(const wxPaneInfo
& 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
65 wxDirection m_lastDirection
;
67 wxFrameManager
* m_owner_mgr
;
72 DECLARE_CLASS(wxFloatingPaneBaseClass
)
77 #endif //_WX_FLOATPANE_H_