2 % automatically generated by HelpGen $Revision$ from
3 % dyntbar.h at 05/Jan/02 22:50:56
7 \section{\class{wxDynamicToolBar
}}\label{wxdynamictoolbar
}
10 class manages containment and layouting of tool-windows
12 \wxheading{Derived from
}
14 \helpref{wxToolBarBase
}{wxtoolbarbase
}
16 \wxheading{Data structures
}
18 \latexignore{\rtfignore{\wxheading{Members
}}}
21 \membersection{wxDynamicToolBar::wxDynamicToolBar
}\label{wxdynamictoolbarwxdynamictoolbar
}
23 \func{}{wxDynamicToolBar
}{\void}
26 \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
}}
29 \membersection{wxDynamicToolBar::
\destruct{wxDynamicToolBar
}}\label{wxdynamictoolbardtor
}
31 \func{}{\destruct{wxDynamicToolBar
}}{\void}
34 \membersection{wxDynamicToolBar::AddSeparator
}\label{wxdynamictoolbaraddseparator
}
36 \func{void
}{AddSeparator
}{\param{wxWindow*
}{pSepartorWnd = NULL
}}
39 \membersection{wxDynamicToolBar::AddTool
}\label{wxdynamictoolbaraddtool
}
41 \func{void
}{AddTool
}{\param{int
}{toolIndex
},
\param{wxWindow*
}{pToolWindow
},
\param{const wxSize\&
}{size = wxDefaultSize
}}
46 \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
}}
49 \func{void
}{AddTool
}{\param{int
}{toolIndex
},
\param{wxBitmap
}{labelBmp
},
\param{const wxString\&
}{labelText = ""
},
\param{bool
}{alignTextRight = FALSE
},
\param{bool
}{isFlat = TRUE
}}
52 \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 = ""
}}
54 method from wxToolBarBase (for compatibility), only
55 first two arguments are valid
58 \membersection{wxDynamicToolBar::Create
}\label{wxdynamictoolbarcreate
}
60 \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
}}
63 \membersection{wxDynamicToolBar::CreateDefaulLayout
}\label{wxdynamictoolbarcreatedefaullayout
}
65 \func{LayoutManagerBase*
}{CreateDefaulLayout
}{\void}
68 \membersection{wxDynamicToolBar::CreateTool
}\label{wxdynamictoolbarcreatetool
}
70 \func{wxToolBarToolBase*
}{CreateTool
}{\param{wxControl*
}{control
}}
73 \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
}}
75 the functions to create toolbar tools
78 \membersection{wxDynamicToolBar::DoDeleteTool
}\label{wxdynamictoolbardodeletetool
}
80 \func{bool
}{DoDeleteTool
}{\param{size
\_t }{pos
},
\param{wxToolBarToolBase*
}{tool
}}
82 the tool is still in m
\_tools list when this function is called, it will
83 only be deleted from it if it succeeds
86 \membersection{wxDynamicToolBar::DoEnableTool
}\label{wxdynamictoolbardoenabletool
}
88 \func{void
}{DoEnableTool
}{\param{wxToolBarToolBase*
}{tool
},
\param{bool
}{enable
}}
90 called when the tools enabled flag changes
93 \membersection{wxDynamicToolBar::DoInsertTool
}\label{wxdynamictoolbardoinserttool
}
95 \func{bool
}{DoInsertTool
}{\param{size
\_t }{pos
},
\param{wxToolBarToolBase*
}{tool
}}
98 \membersection{wxDynamicToolBar::DoSetToggle
}\label{wxdynamictoolbardosettoggle
}
100 \func{void
}{DoSetToggle
}{\param{wxToolBarToolBase*
}{tool
},
\param{bool
}{toggle
}}
102 called when the tools "can be toggled" flag changes
105 \membersection{wxDynamicToolBar::DoToggleTool
}\label{wxdynamictoolbardotoggletool
}
107 \func{void
}{DoToggleTool
}{\param{wxToolBarToolBase*
}{tool
},
\param{bool
}{toggle
}}
109 called when the tool is toggled
112 \membersection{wxDynamicToolBar::DrawSeparator
}\label{wxdynamictoolbardrawseparator
}
114 \func{void
}{DrawSeparator
}{\param{wxDynToolInfo\&
}{info
},
\param{wxDC\&
}{dc
}}
116 the default implementation draws shaded line
119 \membersection{wxDynamicToolBar::EnableTool
}\label{wxdynamictoolbarenabletool
}
121 \func{void
}{EnableTool
}{\param{const int
}{toolIndex
},
\param{const bool
}{enable = TRUE
}}
124 \membersection{wxDynamicToolBar::FindToolForPosition
}\label{wxdynamictoolbarfindtoolforposition
}
126 \constfunc{wxToolBarToolBase*
}{FindToolForPosition
}{\param{wxCoord
}{x
},
\param{wxCoord
}{y
}}
128 stuff from the
2.1.15
131 \membersection{wxDynamicToolBar::GetPreferredDim
}\label{wxdynamictoolbargetpreferreddim
}
133 \func{void
}{GetPreferredDim
}{\param{const wxSize\&
}{givenDim
},
\param{wxSize\&
}{prefDim
}}
136 \membersection{wxDynamicToolBar::GetToolInfo
}\label{wxdynamictoolbargettoolinfo
}
138 \func{wxDynToolInfo*
}{GetToolInfo
}{\param{int
}{toolIndex
}}
141 \membersection{wxDynamicToolBar::Layout
}\label{wxdynamictoolbarlayout
}
143 \func{bool
}{Layout
}{\void}
145 see definitions of orientation types
148 \membersection{wxDynamicToolBar::OnEraseBackground
}\label{wxdynamictoolbaronerasebackground
}
150 \func{void
}{OnEraseBackground
}{\param{wxEraseEvent\&
}{event
}}
153 \membersection{wxDynamicToolBar::OnPaint
}\label{wxdynamictoolbaronpaint
}
155 \func{void
}{OnPaint
}{\param{wxPaintEvent\&
}{event
}}
158 \membersection{wxDynamicToolBar::OnSize
}\label{wxdynamictoolbaronsize
}
160 \func{void
}{OnSize
}{\param{wxSizeEvent\&
}{event
}}
165 \membersection{wxDynamicToolBar::Realize
}\label{wxdynamictoolbarrealize
}
167 \func{bool
}{Realize
}{\void}
169 overriden from wxToolBarBase
172 \membersection{wxDynamicToolBar::RemveTool
}\label{wxdynamictoolbarremvetool
}
174 \func{void
}{RemveTool
}{\param{int
}{toolIndex
}}
177 \membersection{wxDynamicToolBar::SetLayout
}\label{wxdynamictoolbarsetlayout
}
179 \func{void
}{SetLayout
}{\param{LayoutManagerBase*
}{pLayout
}}
182 \membersection{wxDynamicToolBar::SizeToolWindows
}\label{wxdynamictoolbarsizetoolwindows
}
184 \func{void
}{SizeToolWindows
}{\void}