2002-01-05 22:59:59 +00:00
|
|
|
%
|
|
|
|
% automatically generated by HelpGen $Revision$ from
|
2002-01-21 22:34:42 +00:00
|
|
|
% rowdragpl.h at 21/Jan/02 21:14:19
|
2002-01-05 22:59:59 +00:00
|
|
|
%
|
|
|
|
|
|
|
|
|
|
|
|
\section{\class{cbRowDragPlugin}}\label{cbrowdragplugin}
|
|
|
|
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
This plugin adds row-dragging functionality to the pane.
|
|
|
|
It handles mouse movement and pane background-erasing plugin events.
|
|
|
|
The behaviour and appearance resembles drag and drop positioning
|
|
|
|
of the toolbar rows in Netscape Communicator 4.xx.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{cbPluginBase}{cbpluginbase}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
2002-01-31 20:57:31 +00:00
|
|
|
<wx/fl/rowdragpl.h>
|
2002-01-21 22:34:42 +00:00
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
\wxheading{Data structures}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::cbRowDragPlugin}\label{cbrowdragplugincbrowdragplugin}
|
|
|
|
|
|
|
|
\func{}{cbRowDragPlugin}{\param{wxFrameLayout* }{pLayout}, \param{int }{paneMask = wxALL\_PANES}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Constructor, taking paren layout frame and pane mask.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\func{}{cbRowDragPlugin}{\void}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Default constructor.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::\destruct{cbRowDragPlugin}}\label{cbrowdragplugindtor}
|
|
|
|
|
|
|
|
\func{}{\destruct{cbRowDragPlugin}}{\void}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Destructor.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::CaptureDCArea}\label{cbrowdragplugincapturedcarea}
|
|
|
|
|
|
|
|
\func{wxBitmap*}{CaptureDCArea}{\param{wxDC\& }{dc}, \param{wxRect\& }{area}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Helper for drag and drop.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::CheckPrevItemInFocus}\label{cbrowdragplugincheckpreviteminfocus}
|
|
|
|
|
|
|
|
\func{void}{CheckPrevItemInFocus}{\param{cbRowInfo* }{pRow}, \param{int }{iconIdx}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Helper for drag and drop.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::Clone}\label{cbrowdragpluginclone}
|
|
|
|
|
|
|
|
\func{cbPluginBase*}{Clone}{\void}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Clone function, returning a new instance of this class.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::CollapseRow}\label{cbrowdragplugincollapserow}
|
|
|
|
|
|
|
|
\func{void}{CollapseRow}{\param{cbRowInfo* }{pRow}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Helper for drag and drop.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::Draw3DPattern}\label{cbrowdragplugindraw3dpattern}
|
|
|
|
|
|
|
|
\func{void}{Draw3DPattern}{\param{wxRect\& }{inRect}, \param{wxDC\& }{dc}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Implements 'hard-coded metafile' for Netscape Navigator look.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::Draw3DRect}\label{cbrowdragplugindraw3drect}
|
|
|
|
|
|
|
|
\func{void}{Draw3DRect}{\param{wxRect\& }{inRect}, \param{wxDC\& }{dc}, \param{wxBrush\& }{bkBrush}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Implements 'hard-coded metafile' for Netscape Navigator look.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::DrawCollapsedRowIcon}\label{cbrowdragplugindrawcollapsedrowicon}
|
|
|
|
|
|
|
|
\func{void}{DrawCollapsedRowIcon}{\param{int }{index}, \param{wxDC\& }{dc}, \param{bool }{isHighlighted}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Draws collapsed row icon (appearance-dependent).
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::DrawCollapsedRowsBorder}\label{cbrowdragplugindrawcollapsedrowsborder}
|
|
|
|
|
|
|
|
\func{void}{DrawCollapsedRowsBorder}{\param{wxDC\& }{dc}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Draws collapsed rows border (appearance-dependent).
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::DrawEmptyRow}\label{cbrowdragplugindrawemptyrow}
|
|
|
|
|
|
|
|
\func{void}{DrawEmptyRow}{\param{wxDC\& }{dc}, \param{wxRect\& }{rowBounds}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Draws empty row (appearance-dependent).
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::DrawOrtoRomb}\label{cbrowdragplugindrawortoromb}
|
|
|
|
|
|
|
|
\func{void}{DrawOrtoRomb}{\param{wxRect\& }{inRect}, \param{wxDC\& }{dc}, \param{wxBrush\& }{bkBrush}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Implements 'hard-coded metafile' for Netscape Navigator look.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::DrawRectShade}\label{cbrowdragplugindrawrectshade}
|
|
|
|
|
|
|
|
\func{void}{DrawRectShade}{\param{wxRect\& }{inRect}, \param{wxDC\& }{dc}, \param{int }{level}, \param{wxPen\& }{upperPen}, \param{wxPen\& }{lowerPen}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Implements 'hard-coded metafile' for Netscape Navigator look.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::DrawRomb}\label{cbrowdragplugindrawromb}
|
|
|
|
|
|
|
|
\func{void}{DrawRomb}{\param{wxRect\& }{inRect}, \param{wxDC\& }{dc}, \param{wxBrush\& }{bkBrush}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Implements 'hard-coded metafile' for Netscape Navigator look.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::DrawRombShades}\label{cbrowdragplugindrawrombshades}
|
|
|
|
|
|
|
|
\func{void}{DrawRombShades}{\param{wxPoint\& }{p1}, \param{wxPoint\& }{p2}, \param{wxPoint\& }{p3}, \param{wxPoint\& }{p4}, \param{wxDC\& }{dc}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Implements 'hard-coded metafile' for Netscape Navigator look.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::DrawRowDragHint}\label{cbrowdragplugindrawrowdraghint}
|
|
|
|
|
|
|
|
\func{void}{DrawRowDragHint}{\param{cbRowInfo* }{pRow}, \param{wxDC\& }{dc}, \param{bool }{isHighlighted}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Draws row drag hint (appearance-dependent).
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::DrawRowsDragHintsBorder}\label{cbrowdragplugindrawrowsdraghintsborder}
|
|
|
|
|
|
|
|
\func{void}{DrawRowsDragHintsBorder}{\param{wxDC\& }{dc}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Draws rows drag hints border (appearance-dependent).
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::DrawTrianDown}\label{cbrowdragplugindrawtriandown}
|
|
|
|
|
|
|
|
\func{void}{DrawTrianDown}{\param{wxRect\& }{inRect}, \param{wxDC\& }{dc}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Implements 'hard-coded metafile' for Netscape Navigator look.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::DrawTrianRight}\label{cbrowdragplugindrawtrianright}
|
|
|
|
|
|
|
|
\func{void}{DrawTrianRight}{\param{wxRect\& }{inRect}, \param{wxDC\& }{dc}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Implements 'hard-coded metafile' for Netscape Navigator look.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::DrawTrianUp}\label{cbrowdragplugindrawtrianup}
|
|
|
|
|
|
|
|
\func{void}{DrawTrianUp}{\param{wxRect\& }{inRect}, \param{wxDC\& }{dc}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Implements 'hard-coded metafile' for Netscape Navigator look.
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::ExpandRow}\label{cbrowdragpluginexpandrow}
|
|
|
|
|
|
|
|
\func{void}{ExpandRow}{\param{int }{collapsedIconIdx}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Helper for drag and drop.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::FinishOnScreenDraw}\label{cbrowdragpluginfinishonscreendraw}
|
|
|
|
|
|
|
|
\func{void}{FinishOnScreenDraw}{\void}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Helper for drag and drop.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::GetCollapsedIconsPos}\label{cbrowdragplugingetcollapsediconspos}
|
|
|
|
|
|
|
|
\func{int}{GetCollapsedIconsPos}{\void}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Helper for drag and drop.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::GetCollapsedInconRect}\label{cbrowdragplugingetcollapsedinconrect}
|
|
|
|
|
|
|
|
\func{void}{GetCollapsedInconRect}{\param{int }{iconIdx}, \param{wxRect\& }{rect}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Helper for drag and drop.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::GetCollapsedRowIconHeight}\label{cbrowdragplugingetcollapsedrowiconheight}
|
|
|
|
|
|
|
|
\func{int}{GetCollapsedRowIconHeight}{\void}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Gets the collapsed row icon height.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::GetFirstRow}\label{cbrowdragplugingetfirstrow}
|
|
|
|
|
|
|
|
\func{cbRowInfo*}{GetFirstRow}{\void}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Helper for drag and drop.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::GetHRowsCountForPane}\label{cbrowdragplugingethrowscountforpane}
|
|
|
|
|
|
|
|
\func{int}{GetHRowsCountForPane}{\param{cbDockPane* }{pPane}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Helper for drag and drop.
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::GetRowDragHintWidth}\label{cbrowdragplugingetrowdraghintwidth}
|
|
|
|
|
|
|
|
\func{int}{GetRowDragHintWidth}{\void}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Gets the row drag hint width.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::GetRowHintRect}\label{cbrowdragplugingetrowhintrect}
|
|
|
|
|
|
|
|
\func{void}{GetRowHintRect}{\param{cbRowInfo* }{pRow}, \param{wxRect\& }{rect}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Helper for drag and drop.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::HitTestCollapsedRowIcon}\label{cbrowdragpluginhittestcollapsedrowicon}
|
|
|
|
|
|
|
|
\func{bool}{HitTestCollapsedRowIcon}{\param{int }{iconIdx}, \param{const wxPoint\& }{pos}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Test for the collapsed row icon position.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::HitTestRowDragHint}\label{cbrowdragpluginhittestrowdraghint}
|
|
|
|
|
|
|
|
\func{bool}{HitTestRowDragHint}{\param{cbRowInfo* }{pRow}, \param{const wxPoint\& }{pos}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Test for the row drag hint position.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::InsertDraggedRowBefore}\label{cbrowdragplugininsertdraggedrowbefore}
|
|
|
|
|
|
|
|
\func{void}{InsertDraggedRowBefore}{\param{cbRowInfo* }{pBeforeRow}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Helper for drag and drop.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::ItemIsInFocus}\label{cbrowdragpluginitemisinfocus}
|
|
|
|
|
|
|
|
\func{bool}{ItemIsInFocus}{\void}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Helper for drag and drop.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::OnDrawPaneBackground}\label{cbrowdragpluginondrawpanebackground}
|
|
|
|
|
|
|
|
\func{void}{OnDrawPaneBackground}{\param{cbDrawPaneDecorEvent\& }{event}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Handles pane drawing plugin events (appearance-independent logic).
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::OnInitPlugin}\label{cbrowdragpluginoninitplugin}
|
|
|
|
|
|
|
|
\func{void}{OnInitPlugin}{\void}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Called to initialize this plugin.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::OnLButtonDown}\label{cbrowdragpluginonlbuttondown}
|
|
|
|
|
|
|
|
\func{void}{OnLButtonDown}{\param{cbLeftDownEvent\& }{event}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Handles left button down plugin events (appearance-independent logic).
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::OnLButtonUp}\label{cbrowdragpluginonlbuttonup}
|
|
|
|
|
|
|
|
\func{void}{OnLButtonUp}{\param{cbLeftUpEvent\& }{event}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Handles left button up plugin events (appearance-independent logic).
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::OnMouseMove}\label{cbrowdragpluginonmousemove}
|
|
|
|
|
|
|
|
\func{void}{OnMouseMove}{\param{cbMotionEvent\& }{event}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Handles mouse move plugin events (appearance-independent logic).
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::PrepareForRowDrag}\label{cbrowdragpluginprepareforrowdrag}
|
|
|
|
|
|
|
|
\func{void}{PrepareForRowDrag}{\void}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Helper for drag and drop.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::SetMouseCapture}\label{cbrowdragpluginsetmousecapture}
|
|
|
|
|
|
|
|
\func{void}{SetMouseCapture}{\param{bool }{captureOn}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Helper for drag and drop.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::SetPaneMargins}\label{cbrowdragpluginsetpanemargins}
|
|
|
|
|
|
|
|
\func{void}{SetPaneMargins}{\void}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Sets the pane margins.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::ShowDraggedRow}\label{cbrowdragpluginshowdraggedrow}
|
|
|
|
|
|
|
|
\func{void}{ShowDraggedRow}{\param{int }{offset}}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Helper for drag and drop.
|
|
|
|
|
2002-01-05 22:59:59 +00:00
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::ShowPaneImage}\label{cbrowdragpluginshowpaneimage}
|
|
|
|
|
|
|
|
\func{void}{ShowPaneImage}{\void}
|
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Helper for drag and drop.
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{cbRowDragPlugin::UnhighlightItemInFocus}\label{cbrowdragpluginunhighlightiteminfocus}
|
2002-01-05 22:59:59 +00:00
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
\func{void}{UnhighlightItemInFocus}{\void}
|
2002-01-05 22:59:59 +00:00
|
|
|
|
2002-01-21 22:34:42 +00:00
|
|
|
Helper for drag and drop.
|
2002-01-05 22:59:59 +00:00
|
|
|
|