2002-01-05 17:59:59 -05:00
|
|
|
%
|
|
|
|
% automatically generated by HelpGen $Revision$ from
|
2002-01-21 17:34:42 -05:00
|
|
|
% dyntbar.h at 21/Jan/02 21:14:18
|
2002-01-05 17:59:59 -05:00
|
|
|
%
|
|
|
|
|
|
|
|
|
|
|
|
\section{\class{wxDynamicToolBar}}\label{wxdynamictoolbar}
|
|
|
|
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
wxDynamicToolBar manages containment and layout of tool windows.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxToolBarBase}{wxtoolbarbase}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
2002-01-31 15:57:31 -05:00
|
|
|
<wx/fl/dyntbar.h>
|
2002-01-21 17:34:42 -05:00
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
\wxheading{Data structures}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxDynamicToolBar::wxDynamicToolBar}\label{wxdynamictoolbarwxdynamictoolbar}
|
|
|
|
|
|
|
|
\func{}{wxDynamicToolBar}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Default constructor.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\func{}{wxDynamicToolBar}{\param{wxWindow* }{parent}, \param{const wxWindowID }{id}, \param{const wxPoint\& }{pos = wxDefaultPosition}, \param{const wxSize\& }{size = wxDefaultSize}, \param{const long }{style = wxNO\_BORDER}, \param{const int }{orientation = wxVERTICAL}, \param{const int }{RowsOrColumns = 1}, \param{const wxString\& }{name = wxToolBarNameStr}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Constructor: see the documentation for wxToolBar for details.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxDynamicToolBar::\destruct{wxDynamicToolBar}}\label{wxdynamictoolbardtor}
|
|
|
|
|
|
|
|
\func{}{\destruct{wxDynamicToolBar}}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Destructor.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxDynamicToolBar::AddSeparator}\label{wxdynamictoolbaraddseparator}
|
|
|
|
|
|
|
|
\func{void}{AddSeparator}{\param{wxWindow* }{pSepartorWnd = NULL}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Adds a separator. See the documentation for wxToolBar for details.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxDynamicToolBar::AddTool}\label{wxdynamictoolbaraddtool}
|
|
|
|
|
|
|
|
\func{void}{AddTool}{\param{int }{toolIndex}, \param{wxWindow* }{pToolWindow}, \param{const wxSize\& }{size = wxDefaultSize}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Adds a tool. See the documentation for wxToolBar for details.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\func{void}{AddTool}{\param{int }{toolIndex}, \param{const wxString\& }{imageFileName}, \param{wxBitmapType }{imageFileType = wxBITMAP\_TYPE\_BMP}, \param{const wxString\& }{labelText = ""}, \param{bool }{alignTextRight = FALSE}, \param{bool }{isFlat = TRUE}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Adds a tool. See the documentation for wxToolBar for details.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\func{void}{AddTool}{\param{int }{toolIndex}, \param{wxBitmap }{labelBmp}, \param{const wxString\& }{labelText = ""}, \param{bool }{alignTextRight = FALSE}, \param{bool }{isFlat = TRUE}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Adds a tool. See the documentation for wxToolBar for details.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\func{wxToolBarToolBase*}{AddTool}{\param{const int }{toolIndex}, \param{const wxBitmap\& }{bitmap}, \param{const wxBitmap\& }{pushedBitmap = wxNullBitmap}, \param{const bool }{toggle = FALSE}, \param{const long }{xPos = -1}, \param{const long }{yPos = -1}, \param{wxObject* }{clientData = NULL}, \param{const wxString\& }{helpString1 = ""}, \param{const wxString\& }{helpString2 = ""}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Method from wxToolBarBase (for compatibility), only
|
|
|
|
the first two arguments are valid.
|
|
|
|
See the documentation for wxToolBar for details.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxDynamicToolBar::Create}\label{wxdynamictoolbarcreate}
|
|
|
|
|
|
|
|
\func{bool}{Create}{\param{wxWindow* }{parent}, \param{const wxWindowID }{id}, \param{const wxPoint\& }{pos = wxDefaultPosition}, \param{const wxSize\& }{size = wxDefaultSize}, \param{const long }{style = wxNO\_BORDER}, \param{const int }{orientation = wxVERTICAL}, \param{const int }{RowsOrColumns = 1}, \param{const wxString\& }{name = wxToolBarNameStr}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Creation function: see the documentation for wxToolBar for details.
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxDynamicToolBar::CreateDefaultLayout}\label{wxdynamictoolbarcreatedefaultlayout}
|
2002-01-05 17:59:59 -05:00
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
\func{LayoutManagerBase*}{CreateDefaultLayout}{\void}
|
2002-01-05 17:59:59 -05:00
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Creates the default layout (BagLayout).
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxDynamicToolBar::CreateTool}\label{wxdynamictoolbarcreatetool}
|
|
|
|
|
|
|
|
\func{wxToolBarToolBase*}{CreateTool}{\param{wxControl* }{control}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Creates a toolbar tool.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\func{wxToolBarToolBase*}{CreateTool}{\param{int }{id}, \param{const wxBitmap\& }{bitmap1}, \param{const wxBitmap\& }{bitmap2}, \param{bool }{toggle}, \param{wxObject* }{clientData}, \param{const wxString\& }{shortHelpString}, \param{const wxString\& }{longHelpString}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Creates a toolbar tool.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxDynamicToolBar::DoDeleteTool}\label{wxdynamictoolbardodeletetool}
|
|
|
|
|
|
|
|
\func{bool}{DoDeleteTool}{\param{size\_t }{pos}, \param{wxToolBarToolBase* }{tool}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Deletes a tool. The tool is still in m\_tools list when this function is called, and it will
|
|
|
|
only be deleted from it if it succeeds.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxDynamicToolBar::DoEnableTool}\label{wxdynamictoolbardoenabletool}
|
|
|
|
|
|
|
|
\func{void}{DoEnableTool}{\param{wxToolBarToolBase* }{tool}, \param{bool }{enable}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Called when the tools enabled flag changes.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxDynamicToolBar::DoInsertTool}\label{wxdynamictoolbardoinserttool}
|
|
|
|
|
|
|
|
\func{bool}{DoInsertTool}{\param{size\_t }{pos}, \param{wxToolBarToolBase* }{tool}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Inserts a tool at the given position.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxDynamicToolBar::DoSetToggle}\label{wxdynamictoolbardosettoggle}
|
|
|
|
|
|
|
|
\func{void}{DoSetToggle}{\param{wxToolBarToolBase* }{tool}, \param{bool }{toggle}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Called when the tools 'can be toggled' flag changes.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxDynamicToolBar::DoToggleTool}\label{wxdynamictoolbardotoggletool}
|
|
|
|
|
|
|
|
\func{void}{DoToggleTool}{\param{wxToolBarToolBase* }{tool}, \param{bool }{toggle}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Called when the tool is toggled.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxDynamicToolBar::DrawSeparator}\label{wxdynamictoolbardrawseparator}
|
|
|
|
|
|
|
|
\func{void}{DrawSeparator}{\param{wxDynToolInfo\& }{info}, \param{wxDC\& }{dc}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Draws a separator. The default implementation draws a shaded line.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxDynamicToolBar::EnableTool}\label{wxdynamictoolbarenabletool}
|
|
|
|
|
|
|
|
\func{void}{EnableTool}{\param{const int }{toolIndex}, \param{const bool }{enable = TRUE}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Enables or disables the given tool.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxDynamicToolBar::FindToolForPosition}\label{wxdynamictoolbarfindtoolforposition}
|
|
|
|
|
|
|
|
\constfunc{wxToolBarToolBase*}{FindToolForPosition}{\param{wxCoord }{x}, \param{wxCoord }{y}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Finds a tool for the given position.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxDynamicToolBar::GetPreferredDim}\label{wxdynamictoolbargetpreferreddim}
|
|
|
|
|
|
|
|
\func{void}{GetPreferredDim}{\param{const wxSize\& }{givenDim}, \param{wxSize\& }{prefDim}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Returns the preferred dimension, taking the given dimension and a reference to the result.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxDynamicToolBar::GetToolInfo}\label{wxdynamictoolbargettoolinfo}
|
|
|
|
|
|
|
|
\func{wxDynToolInfo*}{GetToolInfo}{\param{int }{toolIndex}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Returns tool information for the given tool index.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxDynamicToolBar::Layout}\label{wxdynamictoolbarlayout}
|
|
|
|
|
|
|
|
\func{bool}{Layout}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Performs layout. See definitions of orientation types.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxDynamicToolBar::OnEraseBackground}\label{wxdynamictoolbaronerasebackground}
|
|
|
|
|
|
|
|
\func{void}{OnEraseBackground}{\param{wxEraseEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Responds to background erase events. Currently does nothing.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxDynamicToolBar::OnPaint}\label{wxdynamictoolbaronpaint}
|
|
|
|
|
|
|
|
\func{void}{OnPaint}{\param{wxPaintEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Responds to paint events, drawing separators.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxDynamicToolBar::OnSize}\label{wxdynamictoolbaronsize}
|
|
|
|
|
|
|
|
\func{void}{OnSize}{\param{wxSizeEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Responds to size events, calling Layout.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxDynamicToolBar::Realize}\label{wxdynamictoolbarrealize}
|
|
|
|
|
|
|
|
\func{bool}{Realize}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Overriden from wxToolBarBase; does nothing.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxDynamicToolBar::RemveTool}\label{wxdynamictoolbarremvetool}
|
|
|
|
|
|
|
|
\func{void}{RemveTool}{\param{int }{toolIndex}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Removes the given tool. Misspelt in order not to clash with a similar function
|
|
|
|
in the base class.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxDynamicToolBar::SetLayout}\label{wxdynamictoolbarsetlayout}
|
|
|
|
|
|
|
|
\func{void}{SetLayout}{\param{LayoutManagerBase* }{pLayout}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Sets the layout for this toolbar.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxDynamicToolBar::SizeToolWindows}\label{wxdynamictoolbarsizetoolwindows}
|
|
|
|
|
|
|
|
\func{void}{SizeToolWindows}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Internal function for sizing tool windows.
|
|
|
|
|