2 % automatically generated by HelpGen $Revision$ from
3 % controlbar.h at 21/Jan/02 21:14:14
7 \section{\class{cbDockPane
}}\label{cbdockpane
}
10 This class manages containment and control of control bars
11 along one of the four edges of the parent frame.
13 \wxheading{Derived from
}
15 \helpref{wxObject
}{wxobject
}
17 \wxheading{Include files
}
21 \wxheading{Data structures
}
23 \latexignore{\rtfignore{\wxheading{Members
}}}
26 \membersection{cbDockPane::cbDockPane
}\label{cbdockpanecbdockpane
}
28 \func{}{cbDockPane
}{\param{int
}{alignment
},
\param{wxFrameLayout*
}{pPanel
}}
30 Constructor, taking alignment and layout panel.
33 \func{}{cbDockPane
}{\void}
35 public members Default constructor.
38 \membersection{cbDockPane::
\destruct{cbDockPane
}}\label{cbdockpanedtor
}
40 \func{}{\destruct{cbDockPane
}}{\void}
45 \membersection{cbDockPane::BarPresent
}\label{cbdockpanebarpresent
}
47 \func{bool
}{BarPresent
}{\param{cbBarInfo*
}{pBar
}}
49 Returns TRUE if the given bar is present in this pane.
52 \membersection{cbDockPane::CalcLengthRatios
}\label{cbdockpanecalclengthratios
}
54 \func{void
}{CalcLengthRatios
}{\param{cbRowInfo*
}{pInRow
}}
57 Internal function called by plugins.
60 \membersection{cbDockPane::ContractBar
}\label{cbdockpanecontractbar
}
62 \func{void
}{ContractBar
}{\param{cbBarInfo*
}{pBar
}}
65 Internal function called by plugins.
68 \membersection{cbDockPane::DoInsertBar
}\label{cbdockpanedoinsertbar
}
70 \func{void
}{DoInsertBar
}{\param{cbBarInfo*
}{pBar
},
\param{int
}{rowNo
}}
72 Inserts the bar at the given row number.
73 Internal function called by plugins.
76 \membersection{cbDockPane::DrawHorizHandle
}\label{cbdockpanedrawhorizhandle
}
78 \func{void
}{DrawHorizHandle
}{\param{wxDC\&
}{dc
},
\param{int
}{x
},
\param{int
}{y
},
\param{int
}{width
}}
80 Row/bar resizing related helper-method.
83 \membersection{cbDockPane::DrawVertHandle
}\label{cbdockpanedrawverthandle
}
85 \func{void
}{DrawVertHandle
}{\param{wxDC\&
}{dc
},
\param{int
}{x
},
\param{int
}{y
},
\param{int
}{height
}}
87 protected really (accessed only by plugins) Row/bar resizing related helper-method.
90 \membersection{cbDockPane::ExpandBar
}\label{cbdockpaneexpandbar
}
92 \func{void
}{ExpandBar
}{\param{cbBarInfo*
}{pBar
}}
95 Internal function called by plugins.
98 \membersection{cbDockPane::FinishDrawInArea
}\label{cbdockpanefinishdrawinarea
}
100 \func{void
}{FinishDrawInArea
}{\param{const wxRect\&
}{area
}}
102 Generates cbFinishDrawInAreaEvent and sends it to the layout.
103 Internal function called by plugins.
106 \membersection{cbDockPane::FrameToPane
}\label{cbdockpaneframetopane
}
108 \func{void
}{FrameToPane
}{\param{int*
}{x
},
\param{int*
}{y
}}
110 Coordinate translation between parent's frame and this pane.
111 Internal function called by plugins.
114 \func{void
}{FrameToPane
}{\param{wxRect*
}{pRect
}}
116 Coordinate translation between parent's frame and this pane.
117 Internal function called by plugins.
120 \membersection{cbDockPane::GetAlignment
}\label{cbdockpanegetalignment
}
122 \func{int
}{GetAlignment
}{\void}
124 Returns the alignment for this pane. The value is one of
125 FL
\_ALIGN\_TOP, FL
\_ALIGN\_BOTTOM, FL
\_ALIGN\_LEFT, FL
\_ALIGN\_RIGHT.
128 \membersection{cbDockPane::GetBarInfoByWindow
}\label{cbdockpanegetbarinfobywindow
}
130 \func{cbBarInfo*
}{GetBarInfoByWindow
}{\param{wxWindow*
}{pBarWnd
}}
132 Finds the bar information by corresponding window.
135 \membersection{cbDockPane::GetBarResizeRange
}\label{cbdockpanegetbarresizerange
}
137 \func{void
}{GetBarResizeRange
}{\param{cbBarInfo*
}{pBar
},
\param{int*
}{from
},
\param{int*
}{till
},
\param{bool
}{forLeftHandle
}}
139 Returns the bar's resize range.
142 \membersection{cbDockPane::GetDockingState
}\label{cbdockpanegetdockingstate
}
144 \func{int
}{GetDockingState
}{\void}
146 Returns wxCBAR
\_DOCKED\_HORIZONTALLY if the alignment is top or bottom,
147 or wxCBAR
\_DOCKED\_VERTICALLY otherwise.
150 \membersection{cbDockPane::GetFirstRow
}\label{cbdockpanegetfirstrow
}
152 \func{cbRowInfo*
}{GetFirstRow
}{\void}
154 Returns the first row.
157 \membersection{cbDockPane::GetMinimalRowHeight
}\label{cbdockpanegetminimalrowheight
}
159 \func{int
}{GetMinimalRowHeight
}{\param{cbRowInfo*
}{pRow
}}
161 Returns the minimal row height for the given row.
162 Internal function called by plugins.
165 \membersection{cbDockPane::GetNotFixedBarsCount
}\label{cbdockpanegetnotfixedbarscount
}
167 \func{int
}{GetNotFixedBarsCount
}{\param{cbRowInfo*
}{pRow
}}
169 Returns the number of bars whose size is not fixed.
170 Internal function called by plugins.
173 \membersection{cbDockPane::GetPaneHeight
}\label{cbdockpanegetpaneheight
}
175 \func{int
}{GetPaneHeight
}{\void}
177 Returns the height in the pane's coordinates.
180 \membersection{cbDockPane::GetRealRect
}\label{cbdockpanegetrealrect
}
182 \func{wxRect\&
}{GetRealRect
}{\void}
184 Returns the bounds of the pane, in parent coordinates.
187 \membersection{cbDockPane::GetRow
}\label{cbdockpanegetrow
}
189 \func{cbRowInfo*
}{GetRow
}{\param{int
}{row
}}
191 protected really (accessed only by plugins) Returns the row info for a row index. Internal function called by plugins.
194 \membersection{cbDockPane::GetRowAt
}\label{cbdockpanegetrowat
}
196 \func{int
}{GetRowAt
}{\param{int
}{paneY
}}
198 Returns the row at the given vertical position.
199 Returns -
1 if the row is not present at given vertical position.
200 Internal function called by plugins.
203 \func{int
}{GetRowAt
}{\param{int
}{upperY
},
\param{int
}{lowerY
}}
205 Returns the row between the given vertical positions.
206 Returns -
1 if the row is not present.
207 Internal function called by plugins.
210 \membersection{cbDockPane::GetRowIndex
}\label{cbdockpanegetrowindex
}
212 \func{int
}{GetRowIndex
}{\param{cbRowInfo*
}{pRow
}}
214 Returns the row index for the given row info. Internal function called by plugins.
217 \membersection{cbDockPane::GetRowList
}\label{cbdockpanegetrowlist
}
219 \func{RowArrayT\&
}{GetRowList
}{\void}
221 Returns an array of rows. Used by updates-managers.
224 \membersection{cbDockPane::GetRowResizeRange
}\label{cbdockpanegetrowresizerange
}
226 \func{void
}{GetRowResizeRange
}{\param{cbRowInfo*
}{pRow
},
\param{int*
}{from
},
\param{int*
}{till
},
\param{bool
}{forUpperHandle
}}
228 Returns the row's resize range.
231 \membersection{cbDockPane::GetRowShapeData
}\label{cbdockpanegetrowshapedata
}
233 \func{void
}{GetRowShapeData
}{\param{cbRowInfo*
}{pRow
},
\param{wxList*
}{pLst
}}
235 Returns row shape data.
236 cbBarShapeData objects will be added to the given pLst.
237 cbBarShapeData is used for storing the original bar's positions in the row,
238 when the 'non-destructive-friction' option is turned on.
241 \membersection{cbDockPane::GetRowY
}\label{cbdockpanegetrowy
}
243 \func{int
}{GetRowY
}{\param{cbRowInfo*
}{pRow
}}
245 Gets the vertical position at the given row.
246 Internal function called by plugins.
249 \membersection{cbDockPane::HasNotFixedBarsLeft
}\label{cbdockpanehasnotfixedbarsleft
}
251 \func{bool
}{HasNotFixedBarsLeft
}{\param{cbBarInfo*
}{pBar
}}
253 Returns TRUE if there are any variable-sized rows to the left of this one.
254 Internal function called by plugins.
257 \membersection{cbDockPane::HasNotFixedBarsRight
}\label{cbdockpanehasnotfixedbarsright
}
259 \func{bool
}{HasNotFixedBarsRight
}{\param{cbBarInfo*
}{pBar
}}
261 Returns TRUE if there are any variable-sized rows to the right of this one.
262 Internal function called by plugins.
265 \membersection{cbDockPane::HasNotFixedRowsAbove
}\label{cbdockpanehasnotfixedrowsabove
}
267 \func{bool
}{HasNotFixedRowsAbove
}{\param{cbRowInfo*
}{pRow
}}
269 Returns TRUE if there are any variable-sized rows above this one.
270 Internal function called by plugins.
273 \membersection{cbDockPane::HasNotFixedRowsBelow
}\label{cbdockpanehasnotfixedrowsbelow
}
275 \func{bool
}{HasNotFixedRowsBelow
}{\param{cbRowInfo*
}{pRow
}}
277 Returns TRUE if there are any variable-sized rows below this one.
278 Internal function called by plugins.
281 \membersection{cbDockPane::HasPoint
}\label{cbdockpanehaspoint
}
283 \func{bool
}{HasPoint
}{\param{const wxPoint\&
}{pos
},
\param{int
}{x
},
\param{int
}{y
},
\param{int
}{width
},
\param{int
}{height
}}
285 Returns TRUE if pos is within the given rectangle.
286 Internal function called by plugins.
289 \membersection{cbDockPane::HitTestPaneItems
}\label{cbdockpanehittestpaneitems
}
291 \func{int
}{HitTestPaneItems
}{\param{const wxPoint\&
}{pos
},
\param{cbRowInfo**
}{ppRow
},
\param{cbBarInfo**
}{ppBar
}}
293 Returns the result of hit-testing items in the pane.
294 See CB
\_HITTEST\_RESULT enumerated type.
295 pos is the position in this pane's coordinates.
298 \membersection{cbDockPane::InitLinksForRow
}\label{cbdockpaneinitlinksforrow
}
300 \func{void
}{InitLinksForRow
}{\param{cbRowInfo*
}{pRow
}}
302 Sets up links between bars.
303 Internal function called by plugins.
306 \membersection{cbDockPane::InitLinksForRows
}\label{cbdockpaneinitlinksforrows
}
308 \func{void
}{InitLinksForRows
}{\void}
310 Sets up links between bars.
311 Internal function called by plugins.
314 \membersection{cbDockPane::InsertBar
}\label{cbdockpaneinsertbar
}
316 \func{void
}{InsertBar
}{\param{cbBarInfo*
}{pBarInfo
}}
318 Inserts bar and sets its position according to the preferred settings
322 \func{void
}{InsertBar
}{\param{cbBarInfo*
}{pBar
},
\param{const wxRect\&
}{rect
}}
324 Inserts the bar into this pane. rect is given in the parent frame's coordinates.
327 \func{void
}{InsertBar
}{\param{cbBarInfo*
}{pBar
},
\param{cbRowInfo*
}{pIntoRow
}}
329 Inserts the bar into the given row, with dimensions and position
330 stored in pBarInfo->mBounds. Returns the node of inserted bar.
333 \membersection{cbDockPane::InsertRow
}\label{cbdockpaneinsertrow
}
335 \func{void
}{InsertRow
}{\param{cbRowInfo*
}{pRow
},
\param{cbRowInfo*
}{pBeforeRow
}}
337 Inserts a row. Does not refresh the inserted row immediately.
338 If pBeforeRowNode is NULL, the row is appended to the end of pane's row list.
341 \membersection{cbDockPane::IsFixedSize
}\label{cbdockpaneisfixedsize
}
343 \func{bool
}{IsFixedSize
}{\param{cbBarInfo*
}{pInfo
}}
345 Returns TRUE if the bar's dimension information indicates a fixed size.
346 Internal function called by plugins.
349 \membersection{cbDockPane::IsHorizontal
}\label{cbdockpaneishorizontal
}
351 \func{bool
}{IsHorizontal
}{\void}
353 Returns TRUE if the pane is aligned to the top or bottom.
356 \membersection{cbDockPane::MatchesMask
}\label{cbdockpanematchesmask
}
358 \func{bool
}{MatchesMask
}{\param{int
}{paneMask
}}
360 Returns TRUE if the given mask matches the pane's mask.
363 \membersection{cbDockPane::PaintBar
}\label{cbdockpanepaintbar
}
365 \func{void
}{PaintBar
}{\param{cbBarInfo*
}{pBar
},
\param{wxDC\&
}{dc
}}
367 Calls PaintBarDecorations and PaintBarHandles.
368 Internal function called by plugins.
371 \membersection{cbDockPane::PaintBarDecorations
}\label{cbdockpanepaintbardecorations
}
373 \func{void
}{PaintBarDecorations
}{\param{cbBarInfo*
}{pBar
},
\param{wxDC\&
}{dc
}}
375 protected really (accessed only by plugins) Generates a cbDrawBarDecorEvent and sends it to the layout to paint the bar decorations.
376 Internal function called by plugins.
379 \membersection{cbDockPane::PaintBarHandles
}\label{cbdockpanepaintbarhandles
}
381 \func{void
}{PaintBarHandles
}{\param{cbBarInfo*
}{pBar
},
\param{wxDC\&
}{dc
}}
383 Generates a cbDrawBarHandlesEvent and sends it to the layout to paint the bar handles.
384 Internal function called by plugins.
387 \membersection{cbDockPane::PaintPane
}\label{cbdockpanepaintpane
}
389 \func{void
}{PaintPane
}{\param{wxDC\&
}{dc
}}
391 Paints the pane background, the row background and decorations,
392 and finally the pane decorations.
393 Internal function called by plugins.
396 \membersection{cbDockPane::PaintPaneBackground
}\label{cbdockpanepaintpanebackground
}
398 \func{void
}{PaintPaneBackground
}{\param{wxDC\&
}{dc
}}
400 Generates cbDrawPaneBkGroundEvent and sends it to the layout.
401 Internal function called by plugins.
404 \membersection{cbDockPane::PaintPaneDecorations
}\label{cbdockpanepaintpanedecorations
}
406 \func{void
}{PaintPaneDecorations
}{\param{wxDC\&
}{dc
}}
408 Generates cbDrawPaneDecorEvent and sends it to the layout.
409 Internal function called by plugins.
412 \membersection{cbDockPane::PaintRow
}\label{cbdockpanepaintrow
}
414 \func{void
}{PaintRow
}{\param{cbRowInfo*
}{pRow
},
\param{wxDC\&
}{dc
}}
416 Calls PaintRowBackground, PaintRowDecorations, PaintRowHandles.
417 Internal function called by plugins.
420 \membersection{cbDockPane::PaintRowBackground
}\label{cbdockpanepaintrowbackground
}
422 \func{void
}{PaintRowBackground
}{\param{cbRowInfo*
}{pRow
},
\param{wxDC\&
}{dc
}}
424 Generates cbDrawRowBkGroundEvent and sends it to the layout.
425 Internal function called by plugins.
428 \membersection{cbDockPane::PaintRowDecorations
}\label{cbdockpanepaintrowdecorations
}
430 \func{void
}{PaintRowDecorations
}{\param{cbRowInfo*
}{pRow
},
\param{wxDC\&
}{dc
}}
432 Calls PaintBarDecorations for each row.
433 Internal function called by plugins.
436 \membersection{cbDockPane::PaintRowHandles
}\label{cbdockpanepaintrowhandles
}
438 \func{void
}{PaintRowHandles
}{\param{cbRowInfo*
}{pRow
},
\param{wxDC\&
}{dc
}}
440 Generates cbDrawRowHandlesEvent and cbDrawRowDecorEvent and sends them to the layout.
441 Internal function called by plugins.
444 \membersection{cbDockPane::PaneToFrame
}\label{cbdockpanepanetoframe
}
446 \func{void
}{PaneToFrame
}{\param{wxRect*
}{pRect
}}
448 Coordinate translation between parent's frame and this pane.
449 Internal function called by plugins.
452 \func{void
}{PaneToFrame
}{\param{int*
}{x
},
\param{int*
}{y
}}
454 Coordinate translation between parent's frame and this pane.
455 Internal function called by plugins.
458 \membersection{cbDockPane::RecalcLayout
}\label{cbdockpanerecalclayout
}
460 \func{void
}{RecalcLayout
}{\void}
462 Generates events to perform layout calculations.
465 \membersection{cbDockPane::RecalcRowLayout
}\label{cbdockpanerecalcrowlayout
}
467 \func{void
}{RecalcRowLayout
}{\param{cbRowInfo*
}{pRow
}}
469 Generates a cbLayoutRowEvent event to recalculate row layouts.
470 Internal function called by plugins.
473 \membersection{cbDockPane::RemoveBar
}\label{cbdockpaneremovebar
}
475 \func{void
}{RemoveBar
}{\param{cbBarInfo*
}{pBar
}}
477 Removes the bar from this pane. Does not destroy the bar.
480 \membersection{cbDockPane::RemoveRow
}\label{cbdockpaneremoverow
}
482 \func{void
}{RemoveRow
}{\param{cbRowInfo*
}{pRow
}}
484 Removes the row from this pane. Does not destroy the row object.
487 \membersection{cbDockPane::ResizeBar
}\label{cbdockpaneresizebar
}
489 \func{void
}{ResizeBar
}{\param{cbBarInfo*
}{pBar
},
\param{int
}{ofs
},
\param{bool
}{forLeftHandle
}}
491 Row/bar resizing related helper-method.
494 \membersection{cbDockPane::ResizeRow
}\label{cbdockpaneresizerow
}
496 \func{void
}{ResizeRow
}{\param{cbRowInfo*
}{pRow
},
\param{int
}{ofs
},
\param{bool
}{forUpperHandle
}}
498 Row/bar resizing related helper-method.
501 \membersection{cbDockPane::SetBoundsInParent
}\label{cbdockpanesetboundsinparent
}
503 \func{void
}{SetBoundsInParent
}{\param{const wxRect\&
}{rect
}}
505 Set the position and dimensions of the pane in the parent frame's coordinates.
508 \membersection{cbDockPane::SetMargins
}\label{cbdockpanesetmargins
}
510 \func{void
}{SetMargins
}{\param{int
}{top
},
\param{int
}{bottom
},
\param{int
}{left
},
\param{int
}{right
}}
512 Sets pane's margins in frame's coordinate orientations.
515 \membersection{cbDockPane::SetPaneWidth
}\label{cbdockpanesetpanewidth
}
517 \func{void
}{SetPaneWidth
}{\param{int
}{width
}}
519 Sets pane's width in the pane's coordinates (including margins).
522 \membersection{cbDockPane::SetRowHeight
}\label{cbdockpanesetrowheight
}
524 \func{void
}{SetRowHeight
}{\param{cbRowInfo*
}{pRow
},
\param{int
}{newHeight
}}
526 Sets the row height for the given height. newHeight includes the height of row handles, if present.
527 Internal function called by plugins.
530 \membersection{cbDockPane::SetRowShapeData
}\label{cbdockpanesetrowshapedata
}
532 \func{void
}{SetRowShapeData
}{\param{cbRowInfo*
}{pRowNode
},
\param{wxList*
}{pLst
}}
534 Sets the shape data for the given row, using the data provided in pLst.
535 cbBarShapeData is used for storing the original bar's positions in the row,
536 when the 'non-destructive-friction' option is turned on.
539 \membersection{cbDockPane::SizeBar
}\label{cbdockpanesizebar
}
541 \func{void
}{SizeBar
}{\param{cbBarInfo*
}{pBar
}}
543 Generates a cbSizeBarWndEvent and sends it to the layout.
544 Internal function called by plugins.
547 \membersection{cbDockPane::SizePaneObjects
}\label{cbdockpanesizepaneobjects
}
549 \func{void
}{SizePaneObjects
}{\void}
551 Calls SizeRowObjects for each row.
552 Internal function called by plugins.
555 \membersection{cbDockPane::SizeRowObjects
}\label{cbdockpanesizerowobjects
}
557 \func{void
}{SizeRowObjects
}{\param{cbRowInfo*
}{pRow
}}
559 Calls SizeBar for each bar in the row.
560 Internal function called by plugins.
563 \membersection{cbDockPane::StartDrawInArea
}\label{cbdockpanestartdrawinarea
}
565 \func{wxDC*
}{StartDrawInArea
}{\param{const wxRect\&
}{area
}}
567 Generates cbStartDrawInAreaEvent and sends it to the layout.
568 Internal function called by plugins.
571 \membersection{cbDockPane::SyncRowFlags
}\label{cbdockpanesyncrowflags
}
573 \func{void
}{SyncRowFlags
}{\param{cbRowInfo*
}{pRow
}}
575 Sets up flags in the row information structure, so that
576 they match the changed state of row items correctly.
577 Internal function called by plugins.