]> git.saurik.com Git - wxWidgets.git/blame - include/wx/aui/floatpane.h
using Run of base class
[wxWidgets.git] / include / wx / aui / floatpane.h
CommitLineData
50acee04 1///////////////////////////////////////////////////////////////////////////////
be66f18e 2// Name: wx/aui/floatpane.h
50acee04
JS
3// Purpose: wxaui: wx advanced user interface - docking window manager
4// Author: Benjamin I. Williams
5// Modified by:
6// Created: 2005-05-17
50acee04
JS
7// Copyright: (C) Copyright 2005, Kirix Corporation, All Rights Reserved.
8// Licence: wxWindows Library Licence, Version 3.1
9///////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_FLOATPANE_H_
12#define _WX_FLOATPANE_H_
13
14// ----------------------------------------------------------------------------
15// headers
16// ----------------------------------------------------------------------------
17
18#include "wx/defs.h"
1afad0ac 19#include "wx/weakref.h"
50acee04
JS
20
21#if wxUSE_AUI
22
81bed90e
VZ
23#if wxUSE_MINIFRAME
24 #include "wx/minifram.h"
25 #define wxAuiFloatingFrameBaseClass wxMiniFrame
50acee04 26#else
81bed90e
VZ
27 #include "wx/frame.h"
28 #define wxAuiFloatingFrameBaseClass wxFrame
50acee04
JS
29#endif
30
00c1c94c 31class WXDLLIMPEXP_AUI wxAuiFloatingFrame : public wxAuiFloatingFrameBaseClass
50acee04
JS
32{
33public:
00c1c94c 34 wxAuiFloatingFrame(wxWindow* parent,
9a29fe70 35 wxAuiManager* ownerMgr,
a3a5df9d 36 const wxAuiPaneInfo& pane,
bc429ce0
RR
37 wxWindowID id = wxID_ANY,
38 long style = wxRESIZE_BORDER | wxSYSTEM_MENU | wxCAPTION |
03647350 39 wxFRAME_NO_TASKBAR | wxFRAME_FLOAT_ON_PARENT |
bc429ce0 40 wxCLIP_CHILDREN
e5ab82d3 41 );
00c1c94c 42 virtual ~wxAuiFloatingFrame();
a3a5df9d 43 void SetPaneWindow(const wxAuiPaneInfo& pane);
4dc79cfb 44 wxAuiManager* GetOwnerManager() const;
03647350 45
bc429ce0
RR
46protected:
47 virtual void OnMoveStart();
9a29fe70 48 virtual void OnMoving(const wxRect& windowRect, wxDirection dir);
bc429ce0 49 virtual void OnMoveFinished();
03647350 50
50acee04
JS
51private:
52 void OnSize(wxSizeEvent& event);
53 void OnClose(wxCloseEvent& event);
54 void OnMoveEvent(wxMoveEvent& event);
55 void OnIdle(wxIdleEvent& event);
50acee04
JS
56 void OnActivate(wxActivateEvent& event);
57 static bool isMouseDown();
03647350 58
50acee04 59private:
9a29fe70
VZ
60 wxWindow* m_paneWindow; // pane window being managed
61 bool m_solidDrag; // true if system uses solid window drag
50acee04 62 bool m_moving;
9a29fe70
VZ
63 wxRect m_lastRect;
64 wxRect m_last2Rect;
65 wxRect m_last3Rect;
66 wxSize m_lastSize;
322c5ec4 67 wxDirection m_lastDirection;
50acee04 68
9a29fe70 69 wxWeakRef<wxAuiManager> m_ownerMgr;
a3a5df9d 70 wxAuiManager m_mgr;
50acee04 71
06d4c4d6 72#ifndef SWIG
50acee04 73 DECLARE_EVENT_TABLE()
4dc79cfb 74 DECLARE_CLASS(wxAuiFloatingFrame)
06d4c4d6 75#endif // SWIG
50acee04
JS
76};
77
78#endif // wxUSE_AUI
79#endif //_WX_FLOATPANE_H_
80