2006-06-06 09:12:07 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
2006-06-06 11:39:16 -04:00
|
|
|
// Name: wx/aui/floatpane.h
|
2006-06-06 09:12:07 -04:00
|
|
|
// Purpose: wxaui: wx advanced user interface - docking window manager
|
|
|
|
// Author: Benjamin I. Williams
|
|
|
|
// Modified by:
|
|
|
|
// Created: 2005-05-17
|
2006-06-06 11:39:16 -04:00
|
|
|
// RCS-ID: $Id$
|
2006-06-06 09:12:07 -04:00
|
|
|
// Copyright: (C) Copyright 2005, Kirix Corporation, All Rights Reserved.
|
|
|
|
// Licence: wxWindows Library Licence, Version 3.1
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_FLOATPANE_H_
|
|
|
|
#define _WX_FLOATPANE_H_
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// headers
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#include "wx/defs.h"
|
|
|
|
|
|
|
|
#if wxUSE_AUI
|
|
|
|
|
2006-06-06 10:05:11 -04:00
|
|
|
#include "wx/frame.h"
|
|
|
|
|
2006-08-23 10:02:53 -04:00
|
|
|
#if defined( __WXMSW__ ) || defined( __WXMAC__ ) || defined( __WXGTK__ )
|
2006-06-06 09:12:07 -04:00
|
|
|
#include "wx/minifram.h"
|
|
|
|
#define wxFloatingPaneBaseClass wxMiniFrame
|
|
|
|
#else
|
|
|
|
#define wxFloatingPaneBaseClass wxFrame
|
|
|
|
#endif
|
|
|
|
|
|
|
|
class WXDLLIMPEXP_AUI wxFloatingPane : public wxFloatingPaneBaseClass
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxFloatingPane(wxWindow* parent,
|
|
|
|
wxFrameManager* owner_mgr,
|
2006-07-04 11:26:33 -04:00
|
|
|
const wxPaneInfo& pane,
|
|
|
|
wxWindowID id = wxID_ANY
|
|
|
|
);
|
2006-09-05 16:47:48 -04:00
|
|
|
virtual ~wxFloatingPane();
|
2006-06-06 09:12:07 -04:00
|
|
|
void SetPaneWindow(const wxPaneInfo& pane);
|
|
|
|
private:
|
|
|
|
void OnSize(wxSizeEvent& event);
|
|
|
|
void OnClose(wxCloseEvent& event);
|
|
|
|
void OnMoveEvent(wxMoveEvent& event);
|
|
|
|
void OnIdle(wxIdleEvent& event);
|
|
|
|
void OnMoveStart();
|
2006-08-23 07:17:13 -04:00
|
|
|
void OnMoving(const wxRect& window_rect, wxDirection dir);
|
2006-06-06 09:12:07 -04:00
|
|
|
void OnMoveFinished();
|
|
|
|
void OnActivate(wxActivateEvent& event);
|
|
|
|
static bool isMouseDown();
|
|
|
|
private:
|
|
|
|
wxWindow* m_pane_window; // pane window being managed
|
|
|
|
bool m_moving;
|
|
|
|
wxRect m_last_rect;
|
2006-08-23 07:17:13 -04:00
|
|
|
wxRect m_last2_rect;
|
|
|
|
wxRect m_last3_rect;
|
2006-06-06 09:12:07 -04:00
|
|
|
wxSize m_last_size;
|
2006-08-23 07:17:13 -04:00
|
|
|
wxDirection m_lastDirection;
|
2006-06-06 09:12:07 -04:00
|
|
|
|
|
|
|
wxFrameManager* m_owner_mgr;
|
|
|
|
wxFrameManager m_mgr;
|
|
|
|
|
2006-07-07 13:53:17 -04:00
|
|
|
#ifndef SWIG
|
2006-06-06 09:12:07 -04:00
|
|
|
DECLARE_EVENT_TABLE()
|
2006-07-04 11:26:33 -04:00
|
|
|
DECLARE_CLASS(wxFloatingPaneBaseClass)
|
2006-07-07 13:53:17 -04:00
|
|
|
#endif // SWIG
|
2006-06-06 09:12:07 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // wxUSE_AUI
|
|
|
|
#endif //_WX_FLOATPANE_H_
|
|
|
|
|