2006-06-06 13:12:07 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
2006-06-06 15:39:16 +00:00
|
|
|
// Name: wx/aui/floatpane.h
|
2006-06-06 13:12:07 +00:00
|
|
|
// Purpose: wxaui: wx advanced user interface - docking window manager
|
|
|
|
// Author: Benjamin I. Williams
|
|
|
|
// Modified by:
|
|
|
|
// Created: 2005-05-17
|
|
|
|
// 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"
|
2008-05-27 09:17:56 +00:00
|
|
|
#include "wx/weakref.h"
|
2006-06-06 13:12:07 +00:00
|
|
|
|
|
|
|
#if wxUSE_AUI
|
|
|
|
|
2008-02-27 17:29:54 +00:00
|
|
|
#if wxUSE_MINIFRAME
|
|
|
|
#include "wx/minifram.h"
|
|
|
|
#define wxAuiFloatingFrameBaseClass wxMiniFrame
|
2006-06-06 13:12:07 +00:00
|
|
|
#else
|
2008-02-27 17:29:54 +00:00
|
|
|
#include "wx/frame.h"
|
|
|
|
#define wxAuiFloatingFrameBaseClass wxFrame
|
2006-06-06 13:12:07 +00:00
|
|
|
#endif
|
|
|
|
|
2006-11-01 19:13:58 +00:00
|
|
|
class WXDLLIMPEXP_AUI wxAuiFloatingFrame : public wxAuiFloatingFrameBaseClass
|
2006-06-06 13:12:07 +00:00
|
|
|
{
|
|
|
|
public:
|
2006-11-01 19:13:58 +00:00
|
|
|
wxAuiFloatingFrame(wxWindow* parent,
|
2011-10-30 14:20:03 +00:00
|
|
|
wxAuiManager* ownerMgr,
|
2006-11-01 18:51:44 +00:00
|
|
|
const wxAuiPaneInfo& pane,
|
2006-10-16 20:36:11 +00:00
|
|
|
wxWindowID id = wxID_ANY,
|
|
|
|
long style = wxRESIZE_BORDER | wxSYSTEM_MENU | wxCAPTION |
|
2009-08-21 10:41:26 +00:00
|
|
|
wxFRAME_NO_TASKBAR | wxFRAME_FLOAT_ON_PARENT |
|
2006-10-16 20:36:11 +00:00
|
|
|
wxCLIP_CHILDREN
|
2006-07-04 15:26:33 +00:00
|
|
|
);
|
2006-11-01 19:13:58 +00:00
|
|
|
virtual ~wxAuiFloatingFrame();
|
2006-11-01 18:51:44 +00:00
|
|
|
void SetPaneWindow(const wxAuiPaneInfo& pane);
|
2006-11-17 13:07:01 +00:00
|
|
|
wxAuiManager* GetOwnerManager() const;
|
2009-08-21 10:41:26 +00:00
|
|
|
|
2016-01-30 17:41:18 +00:00
|
|
|
// Allow processing accelerators to the parent frame
|
2016-02-28 00:24:20 +00:00
|
|
|
virtual bool IsTopNavigationDomain(NavigationKind kind) const wxOVERRIDE;
|
2016-01-30 17:41:18 +00:00
|
|
|
|
2006-10-16 20:36:11 +00:00
|
|
|
protected:
|
|
|
|
virtual void OnMoveStart();
|
2011-10-30 14:20:03 +00:00
|
|
|
virtual void OnMoving(const wxRect& windowRect, wxDirection dir);
|
2006-10-16 20:36:11 +00:00
|
|
|
virtual void OnMoveFinished();
|
2009-08-21 10:41:26 +00:00
|
|
|
|
2006-06-06 13:12:07 +00:00
|
|
|
private:
|
|
|
|
void OnSize(wxSizeEvent& event);
|
|
|
|
void OnClose(wxCloseEvent& event);
|
|
|
|
void OnMoveEvent(wxMoveEvent& event);
|
|
|
|
void OnIdle(wxIdleEvent& event);
|
|
|
|
void OnActivate(wxActivateEvent& event);
|
|
|
|
static bool isMouseDown();
|
2009-08-21 10:41:26 +00:00
|
|
|
|
2006-06-06 13:12:07 +00:00
|
|
|
private:
|
2011-10-30 14:20:03 +00:00
|
|
|
wxWindow* m_paneWindow; // pane window being managed
|
|
|
|
bool m_solidDrag; // true if system uses solid window drag
|
2006-06-06 13:12:07 +00:00
|
|
|
bool m_moving;
|
2011-10-30 14:20:03 +00:00
|
|
|
wxRect m_lastRect;
|
|
|
|
wxRect m_last2Rect;
|
|
|
|
wxRect m_last3Rect;
|
|
|
|
wxSize m_lastSize;
|
2006-08-23 11:17:13 +00:00
|
|
|
wxDirection m_lastDirection;
|
2006-06-06 13:12:07 +00:00
|
|
|
|
2011-10-30 14:20:03 +00:00
|
|
|
wxWeakRef<wxAuiManager> m_ownerMgr;
|
2006-11-01 18:51:44 +00:00
|
|
|
wxAuiManager m_mgr;
|
2006-06-06 13:12:07 +00:00
|
|
|
|
2006-07-07 17:53:17 +00:00
|
|
|
#ifndef SWIG
|
2015-04-23 11:49:01 +00:00
|
|
|
wxDECLARE_EVENT_TABLE();
|
|
|
|
wxDECLARE_CLASS(wxAuiFloatingFrame);
|
2006-07-07 17:53:17 +00:00
|
|
|
#endif // SWIG
|
2006-06-06 13:12:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // wxUSE_AUI
|
|
|
|
#endif //_WX_FLOATPANE_H_
|
|
|
|
|