]> git.saurik.com Git - wxWidgets.git/blame - include/wx/aui/floatpane.h
Better fix
[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
be66f18e 7// RCS-ID: $Id$
50acee04
JS
8// Copyright: (C) Copyright 2005, Kirix Corporation, All Rights Reserved.
9// Licence: wxWindows Library Licence, Version 3.1
10///////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_FLOATPANE_H_
13#define _WX_FLOATPANE_H_
14
15// ----------------------------------------------------------------------------
16// headers
17// ----------------------------------------------------------------------------
18
19#include "wx/defs.h"
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 32{
8949ba7d
VZ
33 friend class wxAuiManager;
34
50acee04 35public:
00c1c94c 36 wxAuiFloatingFrame(wxWindow* parent,
a3a5df9d
BW
37 wxAuiManager* owner_mgr,
38 const wxAuiPaneInfo& pane,
bc429ce0
RR
39 wxWindowID id = wxID_ANY,
40 long style = wxRESIZE_BORDER | wxSYSTEM_MENU | wxCAPTION |
41 wxFRAME_NO_TASKBAR | wxFRAME_FLOAT_ON_PARENT |
42 wxCLIP_CHILDREN
e5ab82d3 43 );
00c1c94c 44 virtual ~wxAuiFloatingFrame();
a3a5df9d 45 void SetPaneWindow(const wxAuiPaneInfo& pane);
4dc79cfb 46 wxAuiManager* GetOwnerManager() const;
bc429ce0
RR
47
48protected:
8949ba7d 49 void SetOwnerManager(wxAuiManager* owner_mgr);
bc429ce0
RR
50 virtual void OnMoveStart();
51 virtual void OnMoving(const wxRect& window_rect, wxDirection dir);
52 virtual void OnMoveFinished();
53
50acee04
JS
54private:
55 void OnSize(wxSizeEvent& event);
56 void OnClose(wxCloseEvent& event);
57 void OnMoveEvent(wxMoveEvent& event);
58 void OnIdle(wxIdleEvent& event);
50acee04
JS
59 void OnActivate(wxActivateEvent& event);
60 static bool isMouseDown();
4dc79cfb 61
50acee04
JS
62private:
63 wxWindow* m_pane_window; // pane window being managed
22fec94a 64 bool m_solid_drag; // true if system uses solid window drag
50acee04
JS
65 bool m_moving;
66 wxRect m_last_rect;
322c5ec4
RR
67 wxRect m_last2_rect;
68 wxRect m_last3_rect;
50acee04 69 wxSize m_last_size;
322c5ec4 70 wxDirection m_lastDirection;
50acee04 71
8949ba7d 72 wxAuiManager* m_owner_mgr;
a3a5df9d 73 wxAuiManager m_mgr;
50acee04 74
06d4c4d6 75#ifndef SWIG
50acee04 76 DECLARE_EVENT_TABLE()
4dc79cfb 77 DECLARE_CLASS(wxAuiFloatingFrame)
06d4c4d6 78#endif // SWIG
50acee04
JS
79};
80
81#endif // wxUSE_AUI
82#endif //_WX_FLOATPANE_H_
83