2008-03-08 13:52:38 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: aui/aui.h
|
2008-03-10 15:24:38 +00:00
|
|
|
// Purpose: interface of wxAuiManager
|
2008-03-08 13:52:38 +00:00
|
|
|
// Author: wxWidgets team
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Licence: wxWindows license
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/**
|
|
|
|
@class wxAuiManager
|
|
|
|
@headerfile aui.h wx/aui/aui.h
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
wxAuiManager is the central class of the wxAUI class framework.
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-09 12:33:59 +00:00
|
|
|
See also @ref overview_wxauioverview.
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
wxAuiManager manages the panes associated with it
|
|
|
|
for a particular wxFrame, using a pane's wxAuiPaneInfo information to
|
|
|
|
determine each pane's docking and floating behavior. wxAuiManager
|
|
|
|
uses wxWidgets' sizer mechanism to plan the layout of each frame. It
|
|
|
|
uses a replaceable dock art class to do all drawing, so all drawing is
|
|
|
|
localized in one area, and may be customized depending on an
|
|
|
|
application's specific needs.
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
wxAuiManager works as follows: the programmer adds panes to the class,
|
|
|
|
or makes changes to existing pane properties (dock position, floating
|
|
|
|
state, show state, etc.). To apply these changes, wxAuiManager's
|
|
|
|
Update() function is called. This batch processing can be used to avoid
|
|
|
|
flicker, by modifying more than one pane at a time, and then "committing"
|
|
|
|
all of the changes at once by calling Update().
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
Panes can be added quite easily:
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
@code
|
|
|
|
wxTextCtrl* text1 = new wxTextCtrl(this, -1);
|
|
|
|
wxTextCtrl* text2 = new wxTextCtrl(this, -1);
|
|
|
|
m_mgr.AddPane(text1, wxLEFT, wxT("Pane Caption"));
|
|
|
|
m_mgr.AddPane(text2, wxBOTTOM, wxT("Pane Caption"));
|
|
|
|
m_mgr.Update();
|
|
|
|
@endcode
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
Later on, the positions can be modified easily. The following will float
|
|
|
|
an existing pane in a tool window:
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
@code
|
|
|
|
m_mgr.GetPane(text1).Float();
|
|
|
|
@endcode
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
@library{wxbase}
|
|
|
|
@category{aui}
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-10 15:24:38 +00:00
|
|
|
@see wxAuiPaneInfo, wxAuiDockArt
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
|
|
|
class wxAuiManager : public wxEvtHandler
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
/**
|
2008-03-09 12:33:59 +00:00
|
|
|
Constructor. @a managed_wnd specifies the wxFrame which should be managed.
|
|
|
|
@a flags specifies options which allow the frame management behavior
|
2008-03-08 13:52:38 +00:00
|
|
|
to be modified.
|
|
|
|
*/
|
2008-03-09 12:33:59 +00:00
|
|
|
wxAuiManager(wxWindow* managed_wnd = NULL,
|
2008-03-08 13:52:38 +00:00
|
|
|
unsigned int flags = wxAUI_MGR_DEFAULT);
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
*/
|
|
|
|
~wxAuiManager();
|
|
|
|
|
|
|
|
//@{
|
|
|
|
/**
|
|
|
|
AddPane() tells the frame manager to start managing a child window. There are
|
|
|
|
several versions of this function. The first version allows the full spectrum of pane parameter possibilities. The second version is used for simpler user interfaces which do not require as much configuration. The last version allows a drop position to be specified, which will determine where the pane will be added.
|
|
|
|
*/
|
|
|
|
bool AddPane(wxWindow* window, const wxAuiPaneInfo& pane_info);
|
2008-03-08 14:43:31 +00:00
|
|
|
bool AddPane(wxWindow* window, int direction = wxLEFT,
|
|
|
|
const wxString& caption = wxEmptyString);
|
|
|
|
bool AddPane(wxWindow* window,
|
|
|
|
const wxAuiPaneInfo& pane_info,
|
|
|
|
const wxPoint& drop_pos);
|
2008-03-08 13:52:38 +00:00
|
|
|
//@}
|
|
|
|
|
|
|
|
/**
|
|
|
|
Tells the wxAuiManager to stop managing the pane specified by window.
|
|
|
|
The window, if in a floated frame, is reparented to the frame managed
|
|
|
|
by wxAuiManager.
|
|
|
|
*/
|
|
|
|
bool DetachPane(wxWindow* window);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Returns an array of all panes managed by the frame manager.
|
|
|
|
*/
|
|
|
|
wxAuiPaneInfoArray GetAllPanes();
|
|
|
|
|
|
|
|
/**
|
|
|
|
Returns the current art provider being used.
|
|
|
|
See also: wxAuiDockArt.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
wxAuiDockArt* GetArtProvider() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Returns the current dock constraint values. See SetDockSizeConstraint() for
|
|
|
|
more information.
|
|
|
|
*/
|
|
|
|
void GetDockSizeConstraint(double* widthpct, double* heightpct);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Returns the current manager's flags.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
unsigned int GetFlags() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Returns the frame currently being managed by wxAuiManager.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
wxWindow* GetManagedWindow() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
2008-03-09 12:33:59 +00:00
|
|
|
Calling this method will return the wxAuiManager for a given window. The @a
|
2008-03-08 13:52:38 +00:00
|
|
|
window parameter should
|
|
|
|
specify any child window or sub-child window of the frame or window managed by
|
|
|
|
wxAuiManager.
|
2008-03-09 12:33:59 +00:00
|
|
|
The @a window parameter need not be managed by the manager itself, nor does it
|
2008-03-08 13:52:38 +00:00
|
|
|
even need to be a child
|
|
|
|
or sub-child of a managed window. It must however be inside the window
|
|
|
|
hierarchy underneath the managed
|
|
|
|
window.
|
|
|
|
*/
|
|
|
|
static wxAuiManager* GetManager(wxWindow* window);
|
|
|
|
|
|
|
|
//@{
|
|
|
|
/**
|
|
|
|
@e GetPane is used to lookup a wxAuiPaneInfo object
|
|
|
|
either by window pointer or by pane name, which acts as a unique id for
|
|
|
|
a window pane. The returned wxAuiPaneInfo object may then be modified to
|
|
|
|
change a pane's look, state or position. After one or more
|
|
|
|
modifications to wxAuiPaneInfo, wxAuiManager::Update() should be called
|
|
|
|
to commit the changes to the user interface. If the lookup failed
|
|
|
|
(meaning the pane could not be found in the manager), a call to the
|
|
|
|
returned wxAuiPaneInfo's IsOk() method will return @false.
|
|
|
|
*/
|
|
|
|
wxAuiPaneInfo GetPane(wxWindow* window);
|
2008-03-08 14:43:31 +00:00
|
|
|
wxAuiPaneInfo GetPane(const wxString& name);
|
2008-03-08 13:52:38 +00:00
|
|
|
//@}
|
|
|
|
|
|
|
|
/**
|
|
|
|
HideHint() hides any docking hint that may be visible.
|
|
|
|
*/
|
|
|
|
void HideHint();
|
|
|
|
|
|
|
|
/**
|
|
|
|
This method is used to insert either a previously unmanaged pane window
|
2008-03-08 14:43:31 +00:00
|
|
|
into the frame manager, or to insert a currently managed pane somewhere
|
2008-03-08 13:52:38 +00:00
|
|
|
else. @e InsertPane will push all panes, rows, or docks aside and
|
2008-03-08 14:43:31 +00:00
|
|
|
insert the window into the position specified by @e insert_location.
|
2008-03-09 12:33:59 +00:00
|
|
|
Because @a insert_location can specify either a pane, dock row, or dock
|
|
|
|
layer, the @a insert_level parameter is used to disambiguate this. The
|
|
|
|
parameter @a insert_level can take a value of wxAUI_INSERT_PANE,
|
2008-03-08 14:43:31 +00:00
|
|
|
wxAUI_INSERT_ROW
|
2008-03-08 13:52:38 +00:00
|
|
|
or wxAUI_INSERT_DOCK.
|
|
|
|
*/
|
|
|
|
bool InsertPane(wxWindow* window,
|
|
|
|
const wxAuiPaneInfo& insert_location,
|
|
|
|
int insert_level = wxAUI_INSERT_PANE);
|
|
|
|
|
|
|
|
/**
|
|
|
|
LoadPaneInfo() is similar to to LoadPerspective, with the exception that it
|
|
|
|
only loads information about a single pane. It is used in combination with SavePaneInfo().
|
|
|
|
*/
|
|
|
|
void LoadPaneInfo(wxString pane_part, wxAuiPaneInfo& pane);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Loads a saved perspective. If update is @true, wxAuiManager::Update()
|
|
|
|
is automatically invoked, thus realizing the saved perspective on screen.
|
|
|
|
*/
|
|
|
|
bool LoadPerspective(const wxString& perspective,
|
2008-03-09 12:33:59 +00:00
|
|
|
bool update = true);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
ProcessDockResult() is a protected member of the wxAUI layout manager. It can
|
|
|
|
be overridden by derived classes to provide custom docking calculations.
|
|
|
|
*/
|
|
|
|
bool ProcessDockResult(wxAuiPaneInfo& target,
|
|
|
|
const wxAuiPaneInfo& new_pos);
|
|
|
|
|
|
|
|
/**
|
|
|
|
SavePaneInfo() is similar to SavePerspective, with the exception that it only
|
|
|
|
saves information about a single pane. It is used in combination with LoadPaneInfo().
|
|
|
|
*/
|
|
|
|
wxString SavePaneInfo(wxAuiPaneInfo& pane);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Saves the entire user interface layout into an encoded wxString, which
|
|
|
|
can then be stored by the application (probably using wxConfig). When
|
|
|
|
a perspective is restored using LoadPerspective(), the entire user
|
|
|
|
interface will return to the state it was when the perspective was saved.
|
|
|
|
*/
|
|
|
|
wxString SavePerspective();
|
|
|
|
|
|
|
|
/**
|
|
|
|
Instructs wxAuiManager to use art provider specified by parameter
|
2008-03-09 12:33:59 +00:00
|
|
|
@a art_provider for all drawing calls. This allows plugable
|
2008-03-08 13:52:38 +00:00
|
|
|
look-and-feel features. The previous art provider object, if any,
|
|
|
|
will be deleted by wxAuiManager.
|
|
|
|
See also: wxAuiDockArt.
|
|
|
|
*/
|
|
|
|
void SetArtProvider(wxAuiDockArt* art_provider);
|
|
|
|
|
|
|
|
/**
|
|
|
|
When a user creates a new dock by dragging a window into a docked position,
|
|
|
|
often times the large size of the
|
|
|
|
window will create a dock that is unwieldly large. wxAuiManager by default
|
|
|
|
limits the size of any
|
|
|
|
new dock to 1/3 of the window size. For horizontal docks, this would be 1/3 of
|
|
|
|
the window height. For
|
|
|
|
vertical docks, 1/3 of the width. Calling this function will adjust this
|
|
|
|
constraint value. The numbers
|
|
|
|
must be between 0.0 and 1.0. For instance, calling SetDockSizeContraint with
|
|
|
|
0.5, 0.5 will cause new
|
|
|
|
docks to be limited to half of the size of the entire managed window.
|
|
|
|
*/
|
|
|
|
void SetDockSizeConstraint(double widthpct, double heightpct);
|
|
|
|
|
|
|
|
/**
|
|
|
|
This method is used to specify wxAuiManager's settings flags. @e flags
|
|
|
|
specifies options which allow the frame management behavior to be modified.
|
|
|
|
*/
|
|
|
|
void SetFlags(unsigned int flags);
|
|
|
|
|
|
|
|
/**
|
2008-03-08 14:43:31 +00:00
|
|
|
Called to specify the frame or window which is to be managed by wxAuiManager.
|
2008-03-08 13:52:38 +00:00
|
|
|
Frame management is not restricted to just frames. Child windows or custom controls are also allowed.
|
|
|
|
*/
|
|
|
|
void SetManagedWindow(wxWindow* managed_wnd);
|
|
|
|
|
|
|
|
/**
|
|
|
|
This function is used by controls to explicitly show a hint window at the
|
|
|
|
specified rectangle. It is rarely called, and is mostly used by controls implementing custom pane drag/drop behaviour. The specified rectangle should be in screen coordinates.
|
|
|
|
*/
|
|
|
|
void ShowHint(const wxRect& rect);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Uninitializes the framework and should be called before a managed frame or
|
|
|
|
window is destroyed. UnInit() is usually called in the managed wxFrame's destructor. It is necessary to call this function before the managed frame or window is destroyed, otherwise the manager cannot remove its custom event handlers from a window.
|
|
|
|
*/
|
|
|
|
void UnInit();
|
|
|
|
|
|
|
|
/**
|
|
|
|
This method is called after any number of changes are
|
|
|
|
made to any of the managed panes. Update() must be invoked after
|
|
|
|
AddPane() or InsertPane() are called in order to "realize" or "commit"
|
|
|
|
the changes. In addition, any number of changes may be made to
|
|
|
|
wxAuiPaneInfo structures (retrieved with wxAuiManager::GetPane), but to
|
|
|
|
realize the changes, Update() must be called. This construction allows
|
|
|
|
pane flicker to be avoided by updating the whole layout at one time.
|
|
|
|
*/
|
|
|
|
void Update();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2008-03-10 15:24:38 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
/**
|
|
|
|
@class wxAuiPaneInfo
|
|
|
|
@headerfile aui.h wx/aui/aui.h
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
wxAuiPaneInfo is part of the wxAUI class framework.
|
2008-03-09 12:33:59 +00:00
|
|
|
See also @ref overview_wxauioverview.
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
wxAuiPaneInfo specifies all the parameters for a pane.
|
|
|
|
These parameters specify where the pane is on the
|
|
|
|
screen, whether it is docked or floating, or hidden.
|
|
|
|
In addition, these parameters specify the pane's
|
|
|
|
docked position, floating position, preferred size,
|
|
|
|
minimum size, caption text among many other parameters.
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
@library{wxbase}
|
|
|
|
@category{aui}
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-10 15:24:38 +00:00
|
|
|
@see wxAuiManager, wxAuiDockArt
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2008-03-08 14:43:31 +00:00
|
|
|
class wxAuiPaneInfo
|
2008-03-08 13:52:38 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
//@{
|
|
|
|
/**
|
|
|
|
Copy constructor.
|
|
|
|
*/
|
|
|
|
wxAuiPaneInfo();
|
2008-03-08 14:43:31 +00:00
|
|
|
wxAuiPaneInfo(const wxAuiPaneInfo& c);
|
2008-03-08 13:52:38 +00:00
|
|
|
//@}
|
|
|
|
|
|
|
|
//@{
|
|
|
|
/**
|
|
|
|
BestSize() sets the ideal size for the pane. The docking manager will attempt
|
|
|
|
to use this size as much as possible when docking or floating the pane.
|
|
|
|
*/
|
|
|
|
wxAuiPaneInfo BestSize(const wxSize& size);
|
2008-03-08 14:43:31 +00:00
|
|
|
wxAuiPaneInfo BestSize(int x, int y);
|
2008-03-08 13:52:38 +00:00
|
|
|
//@}
|
|
|
|
|
|
|
|
/**
|
|
|
|
Bottom() sets the pane dock position to the bottom side of the frame. This is
|
|
|
|
the same thing as calling Direction(wxAUI_DOCK_BOTTOM).
|
|
|
|
*/
|
|
|
|
wxAuiPaneInfo Bottom();
|
|
|
|
|
|
|
|
/**
|
|
|
|
BottomDockable() indicates whether a pane can be docked at the bottom of the
|
|
|
|
frame.
|
|
|
|
*/
|
2008-03-09 12:33:59 +00:00
|
|
|
wxAuiPaneInfo BottomDockable(bool b = true);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Caption() sets the caption of the pane.
|
|
|
|
*/
|
|
|
|
wxAuiPaneInfo Caption(const wxString& c);
|
|
|
|
|
|
|
|
/**
|
|
|
|
CaptionVisible indicates that a pane caption should be visible. If @false, no
|
|
|
|
pane caption is drawn.
|
|
|
|
*/
|
2008-03-09 12:33:59 +00:00
|
|
|
wxAuiPaneInfo CaptionVisible(bool visible = true);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
//@{
|
|
|
|
/**
|
|
|
|
Center() sets the pane dock position to the left side of the frame.
|
|
|
|
The centre pane is the space in the middle after all border panes (left, top,
|
|
|
|
right, bottom) are subtracted from the layout.
|
|
|
|
This is the same thing as calling Direction(wxAUI_DOCK_CENTRE).
|
|
|
|
*/
|
|
|
|
wxAuiPaneInfo Centre();
|
2008-03-08 14:43:31 +00:00
|
|
|
wxAuiPaneInfo Center();
|
2008-03-08 13:52:38 +00:00
|
|
|
//@}
|
|
|
|
|
|
|
|
//@{
|
|
|
|
/**
|
|
|
|
CentrePane() specifies that the pane should adopt the default center pane
|
|
|
|
settings. Centre panes usually do not have caption bars. This function provides an easy way of preparing a pane to be displayed in the center dock position.
|
|
|
|
*/
|
|
|
|
wxAuiPaneInfo CentrePane();
|
2008-03-08 14:43:31 +00:00
|
|
|
wxAuiPaneInfo CenterPane();
|
2008-03-08 13:52:38 +00:00
|
|
|
//@}
|
|
|
|
|
|
|
|
/**
|
|
|
|
CloseButton() indicates that a close button should be drawn for the pane.
|
|
|
|
*/
|
2008-03-09 12:33:59 +00:00
|
|
|
wxAuiPaneInfo CloseButton(bool visible = true);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
DefaultPane() specifies that the pane should adopt the default pane settings.
|
|
|
|
*/
|
|
|
|
wxAuiPaneInfo DefaultPane();
|
|
|
|
|
|
|
|
/**
|
|
|
|
DestroyOnClose() indicates whether a pane should be detroyed when it is closed.
|
|
|
|
Normally a pane is simply hidden when the close button is clicked. Setting DestroyOnClose to @true will cause the window to be destroyed when the user clicks the pane's close button.
|
|
|
|
*/
|
2008-03-09 12:33:59 +00:00
|
|
|
wxAuiPaneInfo DestroyOnClose(bool b = true);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Direction() determines the direction of the docked pane. It is functionally the
|
|
|
|
same as calling Left(), Right(), Top() or Bottom(), except that docking direction may be specified programmatically via the parameter.
|
|
|
|
*/
|
|
|
|
wxAuiPaneInfo Direction(int direction);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Dock() indicates that a pane should be docked. It is the opposite of Float().
|
|
|
|
*/
|
|
|
|
wxAuiPaneInfo Dock();
|
|
|
|
|
|
|
|
/**
|
|
|
|
DockFixed() causes the containing dock to have no resize sash. This is useful
|
|
|
|
for creating panes that span the entire width or height of a dock, but should not be resizable in the other direction.
|
|
|
|
*/
|
2008-03-09 12:33:59 +00:00
|
|
|
wxAuiPaneInfo DockFixed(bool b = true);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Dockable() specifies whether a frame can be docked or not. It is the same as
|
|
|
|
specifying TopDockable(b).BottomDockable(b).LeftDockable(b).RightDockable(b).
|
|
|
|
*/
|
2008-03-09 12:33:59 +00:00
|
|
|
wxAuiPaneInfo Dockable(bool b = true);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Fixed() forces a pane to be fixed size so that it cannot be resized. After
|
|
|
|
calling Fixed(), IsFixed() will return @true.
|
|
|
|
*/
|
|
|
|
wxAuiPaneInfo Fixed();
|
|
|
|
|
|
|
|
/**
|
|
|
|
Float() indicates that a pane should be floated. It is the opposite of Dock().
|
|
|
|
*/
|
|
|
|
wxAuiPaneInfo Float();
|
|
|
|
|
|
|
|
/**
|
|
|
|
Floatable() sets whether the user will be able to undock a pane and turn it
|
|
|
|
into a floating window.
|
|
|
|
*/
|
2008-03-09 12:33:59 +00:00
|
|
|
wxAuiPaneInfo Floatable(bool b = true);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
//@{
|
|
|
|
/**
|
|
|
|
FloatingPosition() sets the position of the floating pane.
|
|
|
|
*/
|
|
|
|
wxAuiPaneInfo FloatingPosition(const wxPoint& pos);
|
2008-03-08 14:43:31 +00:00
|
|
|
wxAuiPaneInfo FloatingPosition(int x, int y);
|
2008-03-08 13:52:38 +00:00
|
|
|
//@}
|
|
|
|
|
|
|
|
//@{
|
|
|
|
/**
|
|
|
|
FloatingSize() sets the size of the floating pane.
|
|
|
|
*/
|
|
|
|
wxAuiPaneInfo FloatingSize(const wxSize& size);
|
2008-03-08 14:43:31 +00:00
|
|
|
wxAuiPaneInfo FloatingSize(int x, int y);
|
2008-03-08 13:52:38 +00:00
|
|
|
//@}
|
|
|
|
|
|
|
|
/**
|
|
|
|
Gripper() indicates that a gripper should be drawn for the pane.
|
|
|
|
*/
|
2008-03-09 12:33:59 +00:00
|
|
|
wxAuiPaneInfo Gripper(bool visible = true);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
GripperTop() indicates that a gripper should be drawn at the top of the pane.
|
|
|
|
*/
|
2008-03-09 12:33:59 +00:00
|
|
|
wxAuiPaneInfo GripperTop(bool attop = true);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
HasBorder() returns @true if the pane displays a border.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
bool HasBorder() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
HasCaption() returns @true if the pane displays a caption.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
bool HasCaption() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
HasCloseButton() returns @true if the pane displays a button to close the pane.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
bool HasCloseButton() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
HasFlag() returns @true if the the property specified by flag is active for the
|
|
|
|
pane.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
bool HasFlag(unsigned int flag) const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
HasGripper() returns @true if the pane displays a gripper.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
bool HasGripper() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
HasGripper() returns @true if the pane displays a gripper at the top.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
bool HasGripperTop() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
HasMaximizeButton() returns @true if the pane displays a button to maximize the
|
|
|
|
pane.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
bool HasMaximizeButton() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
HasMinimizeButton() returns @true if the pane displays a button to minimize the
|
|
|
|
pane.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
bool HasMinimizeButton() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
HasPinButton() returns @true if the pane displays a button to float the pane.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
bool HasPinButton() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Hide() indicates that a pane should be hidden.
|
|
|
|
*/
|
|
|
|
wxAuiPaneInfo Hide();
|
|
|
|
|
|
|
|
/**
|
|
|
|
IsBottomDockable() returns @true if the pane can be docked at the bottom of the
|
|
|
|
managed frame.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
bool IsBottomDockable() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
IsDocked() returns @true if the pane is docked.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
bool IsDocked() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
IsFixed() returns @true if the pane cannot be resized.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
bool IsFixed() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
IsFloatable() returns @true if the pane can be undocked and displayed as a
|
|
|
|
floating window.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
bool IsFloatable() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
IsFloating() returns @true if the pane is floating.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
bool IsFloating() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
IsLeftDockable() returns @true if the pane can be docked on the left of the
|
|
|
|
managed frame.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
bool IsLeftDockable() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
IsMoveable() returns @true if the docked frame can be undocked or moved to
|
|
|
|
another dock position.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
bool IsMovable() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
IsOk() returns @true if the wxAuiPaneInfo structure is valid. A pane structure
|
|
|
|
is valid if it has an associated window.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
bool IsOk() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
IsResizable() returns @true if the pane can be resized.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
bool IsResizable() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
IsRightDockable() returns @true if the pane can be docked on the right of the
|
|
|
|
managed frame.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
bool IsRightDockable() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
IsShown() returns @true if the pane is currently shown.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
bool IsShown() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
IsToolbar() returns @true if the pane contains a toolbar.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
bool IsToolbar() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
IsTopDockable() returns @true if the pane can be docked at the top of the
|
|
|
|
managed frame.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
bool IsTopDockable() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Layer() determines the layer of the docked pane. The dock layer is similar to
|
|
|
|
an onion, the inner-most layer being layer 0. Each shell moving in the outward direction has a higher layer number. This allows for more complex docking layout formation.
|
|
|
|
*/
|
|
|
|
wxAuiPaneInfo Layer(int layer);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Left() sets the pane dock position to the left side of the frame. This is the
|
|
|
|
same thing as calling Direction(wxAUI_DOCK_LEFT).
|
|
|
|
*/
|
|
|
|
wxAuiPaneInfo Left();
|
|
|
|
|
|
|
|
/**
|
|
|
|
LeftDockable() indicates whether a pane can be docked on the left of the frame.
|
|
|
|
*/
|
2008-03-09 12:33:59 +00:00
|
|
|
wxAuiPaneInfo LeftDockable(bool b = true);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
//@{
|
|
|
|
/**
|
|
|
|
MaxSize() sets the maximum size of the pane.
|
|
|
|
*/
|
|
|
|
wxAuiPaneInfo MaxSize(const wxSize& size);
|
2008-03-08 14:43:31 +00:00
|
|
|
wxAuiPaneInfo MaxSize(int x, int y);
|
2008-03-08 13:52:38 +00:00
|
|
|
//@}
|
|
|
|
|
|
|
|
/**
|
|
|
|
MaximizeButton() indicates that a maximize button should be drawn for the pane.
|
|
|
|
*/
|
2008-03-09 12:33:59 +00:00
|
|
|
wxAuiPaneInfo MaximizeButton(bool visible = true);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
//@{
|
|
|
|
/**
|
|
|
|
MinSize() sets the minimum size of the pane. Please note that this is only
|
|
|
|
partially supported as of this writing.
|
|
|
|
*/
|
|
|
|
wxAuiPaneInfo MinSize(const wxSize& size);
|
2008-03-08 14:43:31 +00:00
|
|
|
wxAuiPaneInfo MinSize(int x, int y);
|
2008-03-08 13:52:38 +00:00
|
|
|
//@}
|
|
|
|
|
|
|
|
/**
|
|
|
|
MinimizeButton() indicates that a minimize button should be drawn for the pane.
|
|
|
|
*/
|
2008-03-09 12:33:59 +00:00
|
|
|
wxAuiPaneInfo MinimizeButton(bool visible = true);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Movable indicates whether a frame can be moved.
|
|
|
|
*/
|
2008-03-09 12:33:59 +00:00
|
|
|
wxAuiPaneInfo Movable(bool b = true);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Name() sets the name of the pane so it can be referenced in lookup functions.
|
|
|
|
If a name is not specified by the user, a random name is assigned to the pane when it is added to the manager.
|
|
|
|
*/
|
|
|
|
wxAuiPaneInfo Name(const wxString& n);
|
|
|
|
|
|
|
|
/**
|
|
|
|
PaneBorder indicates that a border should be drawn for the pane.
|
|
|
|
*/
|
2008-03-09 12:33:59 +00:00
|
|
|
wxAuiPaneInfo PaneBorder(bool visible = true);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
PinButton() indicates that a pin button should be drawn for the pane.
|
|
|
|
*/
|
2008-03-09 12:33:59 +00:00
|
|
|
wxAuiPaneInfo PinButton(bool visible = true);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Position() determines the position of the docked pane.
|
|
|
|
*/
|
|
|
|
wxAuiPaneInfo Position(int pos);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Resizable() allows a pane to be resized if the parameter is @true, and forces it
|
|
|
|
to be a fixed size if the parameter is @false. This is simply an antonym for Fixed().
|
|
|
|
*/
|
2008-03-09 12:33:59 +00:00
|
|
|
wxAuiPaneInfo Resizable(bool resizable = true);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Right() sets the pane dock position to the right side of the frame.
|
|
|
|
*/
|
|
|
|
wxAuiPaneInfo Right();
|
|
|
|
|
|
|
|
/**
|
|
|
|
RightDockable() indicates whether a pane can be docked on the right of the
|
|
|
|
frame.
|
|
|
|
*/
|
2008-03-09 12:33:59 +00:00
|
|
|
wxAuiPaneInfo RightDockable(bool b = true);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Row() determines the row of the docked pane.
|
|
|
|
*/
|
2008-03-09 12:33:59 +00:00
|
|
|
wxAuiPaneInfo Row(int row);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Write the safe parts of a newly loaded PaneInfo structure "source" into "this"
|
|
|
|
used on loading perspectives etc.
|
|
|
|
*/
|
|
|
|
void SafeSet(wxAuiPaneInfo source);
|
|
|
|
|
|
|
|
/**
|
|
|
|
SetFlag() turns the property given by flag on or off with the option_state
|
|
|
|
parameter.
|
|
|
|
*/
|
|
|
|
wxAuiPaneInfo SetFlag(unsigned int flag, bool option_state);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Show() indicates that a pane should be shown.
|
|
|
|
*/
|
2008-03-09 12:33:59 +00:00
|
|
|
wxAuiPaneInfo Show(bool show = true);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
ToolbarPane() specifies that the pane should adopt the default toolbar pane
|
|
|
|
settings.
|
|
|
|
*/
|
|
|
|
wxAuiPaneInfo ToolbarPane();
|
|
|
|
|
|
|
|
/**
|
|
|
|
Top() sets the pane dock position to the top of the frame.
|
|
|
|
*/
|
2008-03-09 12:33:59 +00:00
|
|
|
wxAuiPaneInfo Top();
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
TopDockable() indicates whether a pane can be docked at the top of the frame.
|
|
|
|
*/
|
2008-03-09 12:33:59 +00:00
|
|
|
wxAuiPaneInfo TopDockable(bool b = true);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Window() assigns the window pointer that the wxAuiPaneInfo should use. This
|
|
|
|
normally does not need to be specified, as the window pointer is automatically assigned to the wxAuiPaneInfo structure as soon as it is added to the manager.
|
|
|
|
*/
|
|
|
|
wxAuiPaneInfo Window(wxWindow* w);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Makes a copy of the wxAuiPaneInfo object.
|
|
|
|
*/
|
|
|
|
wxAuiPaneInfo& operator operator=(const wxAuiPaneInfo& c);
|
|
|
|
};
|
2008-03-10 15:24:38 +00:00
|
|
|
|