revised wxAUI headers; added @todo in various places where docs are missing

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52502 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi 2008-03-14 16:12:37 +00:00
parent 253d8fd8fc
commit 47d602c1ef
3 changed files with 256 additions and 112 deletions

View File

@ -6,21 +6,57 @@
// Licence: wxWindows license // Licence: wxWindows license
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
/**
@todo TOWRITE
*/
enum wxAuiManagerDock
{
wxAUI_DOCK_NONE = 0,
wxAUI_DOCK_TOP = 1,
wxAUI_DOCK_RIGHT = 2,
wxAUI_DOCK_BOTTOM = 3,
wxAUI_DOCK_LEFT = 4,
wxAUI_DOCK_CENTER = 5,
wxAUI_DOCK_CENTRE = wxAUI_DOCK_CENTER
};
/**
@todo TOWRITE
*/
enum wxAuiManagerOption
{
wxAUI_MGR_ALLOW_FLOATING = 1 << 0,
wxAUI_MGR_ALLOW_ACTIVE_PANE = 1 << 1,
wxAUI_MGR_TRANSPARENT_DRAG = 1 << 2,
wxAUI_MGR_TRANSPARENT_HINT = 1 << 3,
wxAUI_MGR_VENETIAN_BLINDS_HINT = 1 << 4,
wxAUI_MGR_RECTANGLE_HINT = 1 << 5,
wxAUI_MGR_HINT_FADE = 1 << 6,
wxAUI_MGR_NO_VENETIAN_BLINDS_FADE = 1 << 7,
wxAUI_MGR_DEFAULT = wxAUI_MGR_ALLOW_FLOATING |
wxAUI_MGR_TRANSPARENT_HINT |
wxAUI_MGR_HINT_FADE |
wxAUI_MGR_NO_VENETIAN_BLINDS_FADE
};
/** /**
@class wxAuiManager @class wxAuiManager
@headerfile aui.h wx/aui/aui.h @headerfile aui.h wx/aui/aui.h
wxAuiManager is the central class of the wxAUI class framework. wxAuiManager is the central class of the wxAUI class framework.
See also @ref overview_aui.
See also @ref overview_wxauioverview. 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 manages the panes associated with it wxAuiManager uses wxWidgets' sizer mechanism to plan the layout of each frame.
for a particular wxFrame, using a pane's wxAuiPaneInfo information to It uses a replaceable dock art class to do all drawing, so all drawing is
determine each pane's docking and floating behavior. wxAuiManager localized in one area, and may be customized depending on an application's
uses wxWidgets' sizer mechanism to plan the layout of each frame. It specific needs.
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.
wxAuiManager works as follows: the programmer adds panes to the class, wxAuiManager works as follows: the programmer adds panes to the class,
or makes changes to existing pane properties (dock position, floating or makes changes to existing pane properties (dock position, floating
@ -46,6 +82,33 @@
m_mgr.GetPane(text1).Float(); m_mgr.GetPane(text1).Float();
@endcode @endcode
@section wxauimanager_layers Layers, Rows and Directions, Positions
Inside wxAUI, the docking layout is figured out by checking several pane
parameters. Four of these are important for determining where a pane will end up:
@li Direction: Each docked pane has a direction, Top, Bottom, Left, Right, or Center.
This is fairly self-explanatory. The pane will be placed in the location specified
by this variable.
@li Position: More than one pane can be placed inside of a dock. Imagine two panes
being docked on the left side of a window. One pane can be placed over another.
In proportionally managed docks, the pane position indicates its sequential position,
starting with zero. So, in our scenario with two panes docked on the left side,
the top pane in the dock would have position 0, and the second one would occupy
position 1.
@li Row: A row can allow for two docks to be placed next to each other. One of the
most common places for this to happen is in the toolbar. Multiple toolbar rows
are allowed, the first row being row 0, and the second row 1. Rows can also be
used on vertically docked panes.
@li Layer: A layer is akin to an onion. Layer 0 is the very center of the managed pane.
Thus, if a pane is in layer 0, it will be closest to the center window (also
sometimes known as the "content window"). Increasing layers "swallow up" all
layers of a lower value. This can look very similar to multiple rows, but is
different because all panes in a lower level yield to panes in higher levels.
The best way to understand layers is by running the wxAUI sample.
@library{wxbase} @library{wxbase}
@category{aui} @category{aui}
@ -63,14 +126,18 @@ public:
unsigned int flags = wxAUI_MGR_DEFAULT); unsigned int flags = wxAUI_MGR_DEFAULT);
/** /**
Dtor.
*/ */
~wxAuiManager(); ~wxAuiManager();
//@{ //@{
/** /**
AddPane() tells the frame manager to start managing a child window. There are AddPane() tells the frame manager to start managing a child window.
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. 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); bool AddPane(wxWindow* window, const wxAuiPaneInfo& pane_info);
bool AddPane(wxWindow* window, int direction = wxLEFT, bool AddPane(wxWindow* window, int direction = wxLEFT,
@ -94,13 +161,13 @@ public:
/** /**
Returns the current art provider being used. Returns the current art provider being used.
See also: wxAuiDockArt. @see wxAuiDockArt.
*/ */
wxAuiDockArt* GetArtProvider() const; wxAuiDockArt* GetArtProvider() const;
/** /**
Returns the current dock constraint values. See SetDockSizeConstraint() for Returns the current dock constraint values.
more information. See SetDockSizeConstraint() for more information.
*/ */
void GetDockSizeConstraint(double* widthpct, double* heightpct); void GetDockSizeConstraint(double* widthpct, double* heightpct);
@ -115,28 +182,26 @@ public:
wxWindow* GetManagedWindow() const; wxWindow* GetManagedWindow() const;
/** /**
Calling this method will return the wxAuiManager for a given window. The @a Calling this method will return the wxAuiManager for a given window.
window parameter should The @a window parameter should specify any child window or sub-child
specify any child window or sub-child window of the frame or window managed by window of the frame or window managed by wxAuiManager.
wxAuiManager.
The @a window parameter need not be managed by the manager itself, nor does it The @a window parameter need not be managed by the manager itself, nor does it
even need to be a child even need to be a child or sub-child of a managed window. It must however
or sub-child of a managed window. It must however be inside the window be inside the window hierarchy underneath the managed window.
hierarchy underneath the managed
window.
*/ */
static wxAuiManager* GetManager(wxWindow* window); static wxAuiManager* GetManager(wxWindow* window);
//@{ //@{
/** /**
@e GetPane is used to lookup a wxAuiPaneInfo object GetPane() is used to lookup a wxAuiPaneInfo object either by window pointer
either by window pointer or by pane name, which acts as a unique id for or by pane name, which acts as a unique id for a window pane.
a window pane. The returned wxAuiPaneInfo object may then be modified to
change a pane's look, state or position. After one or more The returned wxAuiPaneInfo object may then be modified to change a pane's
modifications to wxAuiPaneInfo, wxAuiManager::Update() should be called look, state or position. After one or more modifications to wxAuiPaneInfo,
to commit the changes to the user interface. If the lookup failed wxAuiManager::Update() should be called to commit the changes to the user
(meaning the pane could not be found in the manager), a call to the interface. If the lookup failed (meaning the pane could not be found in the
returned wxAuiPaneInfo's IsOk() method will return @false. manager), a call to the returned wxAuiPaneInfo's IsOk() method will return @false.
*/ */
wxAuiPaneInfo GetPane(wxWindow* window); wxAuiPaneInfo GetPane(wxWindow* window);
wxAuiPaneInfo GetPane(const wxString& name); wxAuiPaneInfo GetPane(const wxString& name);
@ -150,13 +215,13 @@ public:
/** /**
This method is used to insert either a previously unmanaged pane window This method is used to insert either a previously unmanaged pane window
into the frame manager, or to insert a currently managed pane somewhere into the frame manager, or to insert a currently managed pane somewhere
else. @e InsertPane will push all panes, rows, or docks aside and else. InsertPane() will push all panes, rows, or docks aside and
insert the window into the position specified by @e insert_location. insert the window into the position specified by @a insert_location.
Because @a insert_location can specify either a pane, dock row, or dock 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 layer, the @a insert_level parameter is used to disambiguate this.
parameter @a insert_level can take a value of wxAUI_INSERT_PANE, The parameter @a insert_level can take a value of wxAUI_INSERT_PANE,
wxAUI_INSERT_ROW wxAUI_INSERT_ROW or wxAUI_INSERT_DOCK.
or wxAUI_INSERT_DOCK.
*/ */
bool InsertPane(wxWindow* window, bool InsertPane(wxWindow* window,
const wxAuiPaneInfo& insert_location, const wxAuiPaneInfo& insert_location,
@ -164,7 +229,8 @@ public:
/** /**
LoadPaneInfo() is similar to to LoadPerspective, with the exception that it 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(). only loads information about a single pane. It is used in combination with
SavePaneInfo().
*/ */
void LoadPaneInfo(wxString pane_part, wxAuiPaneInfo& pane); void LoadPaneInfo(wxString pane_part, wxAuiPaneInfo& pane);
@ -176,71 +242,79 @@ public:
bool update = true); bool update = true);
/** /**
ProcessDockResult() is a protected member of the wxAUI layout manager. It can ProcessDockResult() is a protected member of the wxAUI layout manager.
be overridden by derived classes to provide custom docking calculations. It can be overridden by derived classes to provide custom docking calculations.
*/ */
bool ProcessDockResult(wxAuiPaneInfo& target, bool ProcessDockResult(wxAuiPaneInfo& target,
const wxAuiPaneInfo& new_pos); const wxAuiPaneInfo& new_pos);
/** /**
SavePaneInfo() is similar to SavePerspective, with the exception that it only SavePaneInfo() is similar to SavePerspective, with the exception that it only
saves information about a single pane. It is used in combination with LoadPaneInfo(). saves information about a single pane. It is used in combination with
LoadPaneInfo().
*/ */
wxString SavePaneInfo(wxAuiPaneInfo& pane); wxString SavePaneInfo(wxAuiPaneInfo& pane);
/** /**
Saves the entire user interface layout into an encoded wxString, which Saves the entire user interface layout into an encoded wxString, which
can then be stored by the application (probably using wxConfig). When can then be stored by the application (probably using wxConfig).
a perspective is restored using LoadPerspective(), the entire user
When a perspective is restored using LoadPerspective(), the entire user
interface will return to the state it was when the perspective was saved. interface will return to the state it was when the perspective was saved.
*/ */
wxString SavePerspective(); wxString SavePerspective();
/** /**
Instructs wxAuiManager to use art provider specified by parameter Instructs wxAuiManager to use art provider specified by parameter
@a art_provider for all drawing calls. This allows plugable @a art_provider for all drawing calls.
look-and-feel features. The previous art provider object, if any, This allows plugable look-and-feel features. The previous art provider object,
will be deleted by wxAuiManager. if any, will be deleted by wxAuiManager.
See also: wxAuiDockArt.
@see wxAuiDockArt.
*/ */
void SetArtProvider(wxAuiDockArt* art_provider); void SetArtProvider(wxAuiDockArt* art_provider);
/** /**
When a user creates a new dock by dragging a window into a docked position, When a user creates a new dock by dragging a window into a docked position,
often times the large size of the often times the large size of the window will create a dock that is unwieldly
window will create a dock that is unwieldly large. wxAuiManager by default large. wxAuiManager by default limits the size of any new dock to 1/3 of the
limits the size of any window size. For horizontal docks, this would be 1/3 of the window height.
new dock to 1/3 of the window size. For horizontal docks, this would be 1/3 of For vertical docks, 1/3 of the width.
the window height. For
vertical docks, 1/3 of the width. Calling this function will adjust this Calling this function will adjust this constraint value. The numbers must be
constraint value. The numbers between 0.0 and 1.0. For instance, calling SetDockSizeContraint with
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
0.5, 0.5 will cause new entire managed window.
docks to be limited to half of the size of the entire managed window.
*/ */
void SetDockSizeConstraint(double widthpct, double heightpct); void SetDockSizeConstraint(double widthpct, double heightpct);
/** /**
This method is used to specify wxAuiManager's settings flags. @e flags This method is used to specify wxAuiManager's settings flags. @a flags
specifies options which allow the frame management behavior to be modified. specifies options which allow the frame management behavior to be modified.
*/ */
void SetFlags(unsigned int flags); void SetFlags(unsigned int flags);
/** /**
Called to specify the frame or window which is to be managed by wxAuiManager. Called to specify the frame or window which is to be managed by wxAuiManager.
Frame management is not restricted to just frames. Child windows or custom controls are also allowed. Frame management is not restricted to just frames. Child windows or custom
controls are also allowed.
*/ */
void SetManagedWindow(wxWindow* managed_wnd); void SetManagedWindow(wxWindow* managed_wnd);
/** /**
This function is used by controls to explicitly show a hint window at the 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. 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); void ShowHint(const wxRect& rect);
/** /**
Uninitializes the framework and should be called before a managed frame or 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. 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(); void UnInit();
@ -263,14 +337,13 @@ public:
@headerfile aui.h wx/aui/aui.h @headerfile aui.h wx/aui/aui.h
wxAuiPaneInfo is part of the wxAUI class framework. wxAuiPaneInfo is part of the wxAUI class framework.
See also @ref overview_wxauioverview. See also @ref overview_aui.
wxAuiPaneInfo specifies all the parameters for a pane. wxAuiPaneInfo specifies all the parameters for a pane.
These parameters specify where the pane is on the These parameters specify where the pane is on the screen, whether it is docked
screen, whether it is docked or floating, or hidden. or floating, or hidden.
In addition, these parameters specify the pane's In addition, these parameters specify the pane's docked position, floating
docked position, floating position, preferred size, position, preferred size, minimum size, caption text among many other parameters.
minimum size, caption text among many other parameters.
@library{wxbase} @library{wxbase}
@category{aui} @category{aui}
@ -280,13 +353,12 @@ public:
class wxAuiPaneInfo class wxAuiPaneInfo
{ {
public: public:
//@{ wxAuiPaneInfo();
/** /**
Copy constructor. Copy constructor.
*/ */
wxAuiPaneInfo();
wxAuiPaneInfo(const wxAuiPaneInfo& c); wxAuiPaneInfo(const wxAuiPaneInfo& c);
//@}
//@{ //@{
/** /**
@ -334,7 +406,9 @@ public:
//@{ //@{
/** /**
CentrePane() specifies that the pane should adopt the default center pane 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. 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(); wxAuiPaneInfo CentrePane();
wxAuiPaneInfo CenterPane(); wxAuiPaneInfo CenterPane();
@ -352,13 +426,16 @@ public:
/** /**
DestroyOnClose() indicates whether a pane should be detroyed when it is closed. 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. 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.
*/ */
wxAuiPaneInfo DestroyOnClose(bool b = true); wxAuiPaneInfo DestroyOnClose(bool b = true);
/** /**
Direction() determines the direction of the docked pane. It is functionally the 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. same as calling Left(), Right(), Top() or Bottom(), except that docking direction
may be specified programmatically via the parameter.
*/ */
wxAuiPaneInfo Direction(int direction); wxAuiPaneInfo Direction(int direction);
@ -369,7 +446,8 @@ public:
/** /**
DockFixed() causes the containing dock to have no resize sash. This is useful 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. for creating panes that span the entire width or height of a dock, but should
not be resizable in the other direction.
*/ */
wxAuiPaneInfo DockFixed(bool b = true); wxAuiPaneInfo DockFixed(bool b = true);
@ -549,7 +627,9 @@ public:
/** /**
Layer() determines the layer of the docked pane. The dock layer is similar to 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. 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); wxAuiPaneInfo Layer(int layer);
@ -598,7 +678,8 @@ public:
/** /**
Name() sets the name of the pane so it can be referenced in lookup functions. 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. 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); wxAuiPaneInfo Name(const wxString& n);
@ -673,8 +754,10 @@ public:
wxAuiPaneInfo TopDockable(bool b = true); wxAuiPaneInfo TopDockable(bool b = true);
/** /**
Window() assigns the window pointer that the wxAuiPaneInfo should use. This Window() assigns the window pointer that the wxAuiPaneInfo should use.
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. 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); wxAuiPaneInfo Window(wxWindow* w);

View File

@ -11,14 +11,13 @@
@headerfile auibook.h wx/aui/auibook.h @headerfile auibook.h wx/aui/auibook.h
wxAuiNotebook is part of the wxAUI class framework. wxAuiNotebook is part of the wxAUI class framework.
See also @ref overview_wxauioverview. See also @ref overview_aui.
wxAuiNotebook is a notebook control which implements many features common in wxAuiNotebook is a notebook control which implements many features common in
applications with dockable panes. applications with dockable panes.
Specifically, wxAuiNotebook implements functionality which allows the user to Specifically, wxAuiNotebook implements functionality which allows the user to
rearrange tab order via drag-and-drop, rearrange tab order via drag-and-drop, split the tab window into many different
split the tab window into many different splitter configurations, and toggle splitter configurations, and toggle through different themes to customize
through different themes to customize
the control's look and feel. the control's look and feel.
An effort has been made to try to maintain an API as similar to that of An effort has been made to try to maintain an API as similar to that of
@ -62,20 +61,19 @@
class wxAuiNotebook : public wxControl class wxAuiNotebook : public wxControl
{ {
public: public:
//@{ wxAuiNotebook();
/** /**
Constructor. Creates a wxAuiNotebok control. Constructor. Creates a wxAuiNotebok control.
*/ */
wxAuiNotebook();
wxAuiNotebook(wxWindow* parent, wxWindowID id = wxID_ANY, wxAuiNotebook(wxWindow* parent, wxWindowID id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxAUI_NB_DEFAULT_STYLE); long style = wxAUI_NB_DEFAULT_STYLE);
//@}
/** /**
Adds a page. If the @a select parameter is @true, calling this will generate a Adds a page.
page change event. If the @a select parameter is @true, calling this will generate a page change event.
*/ */
bool AddPage(wxWindow* page, const wxString& caption, bool AddPage(wxWindow* page, const wxString& caption,
bool select = false, bool select = false,
@ -95,8 +93,8 @@ public:
long style = 0); long style = 0);
/** /**
Deletes a page at the given index. Calling this method will generate a page Deletes a page at the given index.
change event. Calling this method will generate a page change event.
*/ */
bool DeletePage(size_t page); bool DeletePage(size_t page);
@ -106,9 +104,8 @@ public:
wxAuiTabArt* GetArtProvider() const; wxAuiTabArt* GetArtProvider() const;
/** /**
Returns the desired height of the notebook for the given page height. Use this Returns the desired height of the notebook for the given page height.
to fit the notebook to Use this to fit the notebook to a given page size.
a given page size.
*/ */
int GetHeightForPageHeight(int pageHeight); int GetHeightForPageHeight(int pageHeight);
@ -128,8 +125,8 @@ public:
size_t GetPageCount() const; size_t GetPageCount() const;
/** /**
Returns the page index for the specified window. If the window is not found in Returns the page index for the specified window.
the notebook, wxNOT_FOUND is returned. If the window is not found in the notebook, wxNOT_FOUND is returned.
*/ */
int GetPageIndex(wxWindow* page_wnd) const; int GetPageIndex(wxWindow* page_wnd) const;
@ -207,11 +204,12 @@ public:
size_t SetSelection(size_t new_page); size_t SetSelection(size_t new_page);
/** /**
Sets the tab height. By default, the tab control height is calculated Sets the tab height. By default, the tab control height is calculated
by measuring the text height and bitmap sizes on the tab captions. Calling this by measuring the text height and bitmap sizes on the tab captions. Calling this
method will override that calculation and set the tab control to the specified method will override that calculation and set the tab control to the specified
height parameter. A call to this method will override any call to height parameter. A call to this method will override any call to
SetUniformBitmapSize(). SetUniformBitmapSize().
Specifying -1 as the height will return the control to its default auto-sizing Specifying -1 as the height will return the control to its default auto-sizing
behaviour. behaviour.
*/ */
@ -220,11 +218,10 @@ public:
//@{ //@{
/** /**
Split performs a split operation programmatically. The argument @a page Split performs a split operation programmatically. The argument @a page
indicates indicates the page that will be split off. This page will also become the
the page that will be split off. This page will also become the active page active page after the split.
after the
split. The @a direction argument specifies where the pane should go, it should The @a direction argument specifies where the pane should go, it should be one
be one
of the following: wxTOP, wxBOTTOM, wxLEFT, or wxRIGHT. of the following: wxTOP, wxBOTTOM, wxLEFT, or wxRIGHT.
*/ */
void SetUniformBitmapSize(const wxSize& size); void SetUniformBitmapSize(const wxSize& size);
@ -246,6 +243,8 @@ public:
Tab art class. Tab art class.
@todo BETTER DESCRIPTION NEEDED
@library{wxaui} @library{wxaui}
@category{aui} @category{aui}
*/ */

View File

@ -6,24 +6,86 @@
// Licence: wxWindows license // Licence: wxWindows license
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
/**
@todo TOWRITE
*/
enum wxAuiPaneDockArtSetting
{
wxAUI_DOCKART_SASH_SIZE = 0,
wxAUI_DOCKART_CAPTION_SIZE = 1,
wxAUI_DOCKART_GRIPPER_SIZE = 2,
wxAUI_DOCKART_PANE_BORDER_SIZE = 3,
wxAUI_DOCKART_PANE_BUTTON_SIZE = 4,
wxAUI_DOCKART_BACKGROUND_COLOUR = 5,
wxAUI_DOCKART_SASH_COLOUR = 6,
wxAUI_DOCKART_ACTIVE_CAPTION_COLOUR = 7,
wxAUI_DOCKART_ACTIVE_CAPTION_GRADIENT_COLOUR = 8,
wxAUI_DOCKART_INACTIVE_CAPTION_COLOUR = 9,
wxAUI_DOCKART_INACTIVE_CAPTION_GRADIENT_COLOUR = 10,
wxAUI_DOCKART_ACTIVE_CAPTION_TEXT_COLOUR = 11,
wxAUI_DOCKART_INACTIVE_CAPTION_TEXT_COLOUR = 12,
wxAUI_DOCKART_BORDER_COLOUR = 13,
wxAUI_DOCKART_GRIPPER_COLOUR = 14,
wxAUI_DOCKART_CAPTION_FONT = 15,
wxAUI_DOCKART_GRADIENT_TYPE = 16
};
/**
@todo TOWRITE
*/
enum wxAuiPaneDockArtGradients
{
wxAUI_GRADIENT_NONE = 0,
wxAUI_GRADIENT_VERTICAL = 1,
wxAUI_GRADIENT_HORIZONTAL = 2
};
/**
@todo TOWRITE
*/
enum wxAuiPaneButtonState
{
wxAUI_BUTTON_STATE_NORMAL = 0,
wxAUI_BUTTON_STATE_HOVER = 1,
wxAUI_BUTTON_STATE_PRESSED = 2
};
/**
@todo TOWRITE
*/
enum wxAuiButtonId
{
wxAUI_BUTTON_CLOSE = 101,
wxAUI_BUTTON_MAXIMIZE_RESTORE = 102,
wxAUI_BUTTON_MINIMIZE = 103,
wxAUI_BUTTON_PIN = 104,
wxAUI_BUTTON_OPTIONS = 105,
wxAUI_BUTTON_WINDOWLIST = 106,
wxAUI_BUTTON_LEFT = 107,
wxAUI_BUTTON_RIGHT = 108,
wxAUI_BUTTON_UP = 109,
wxAUI_BUTTON_DOWN = 110,
wxAUI_BUTTON_CUSTOM1 = 201,
wxAUI_BUTTON_CUSTOM2 = 202,
wxAUI_BUTTON_CUSTOM3 = 203
};
/** /**
@class wxAuiDockArt @class wxAuiDockArt
@headerfile dockart.h wx/aui/dockart.h @headerfile dockart.h wx/aui/dockart.h
wxAuiDockArt is part of the wxAUI class framework. wxAuiDockArt is part of the wxAUI class framework.
See also @ref overview_wxauioverview. See also @ref overview_aui.
Dock art provider code - a dock provider provides all drawing wxAuiDockArt is the art provider: provides all drawing functionality to the
functionality to the wxAui dock manager. This allows the dock wxAui dock manager. This allows the dock manager to have a plugable look-and-feel.
manager to have a plugable look-and-feel.
By default, a wxAuiManager uses an By default, a wxAuiManager uses an instance of this class called
instance of this class called @b wxAuiDefaultDockArt which wxAuiDefaultDockArt which provides bitmap art and a colour scheme that is
provides bitmap art and a colour scheme that is adapted to adapted to the major platforms' look. You can either derive from that class
the major platforms' look. You can either derive from that to alter its behaviour or write a completely new dock art class.
class to alter its behaviour or write a completely new dock Call wxAuiManager::SetArtProvider to force wxAUI to use your new dock art provider.
art class. Call wxAuiManager::SetArtProvider
to make use this new dock art.
@library{wxaui} @library{wxaui}
@category{aui} @category{aui}