Contents Up Previous Next

cbRowDragPlugin

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.

Derived from

cbPluginBase

Include files

<wx/fl/rowdragpl.h>

Data structures

Members

cbRowDragPlugin::cbRowDragPlugin
cbRowDragPlugin::~cbRowDragPlugin
cbRowDragPlugin::CaptureDCArea
cbRowDragPlugin::CheckPrevItemInFocus
cbRowDragPlugin::Clone
cbRowDragPlugin::CollapseRow
cbRowDragPlugin::Draw3DPattern
cbRowDragPlugin::Draw3DRect
cbRowDragPlugin::DrawCollapsedRowIcon
cbRowDragPlugin::DrawCollapsedRowsBorder
cbRowDragPlugin::DrawEmptyRow
cbRowDragPlugin::DrawOrtoRomb
cbRowDragPlugin::DrawRectShade
cbRowDragPlugin::DrawRomb
cbRowDragPlugin::DrawRombShades
cbRowDragPlugin::DrawRowDragHint
cbRowDragPlugin::DrawRowsDragHintsBorder
cbRowDragPlugin::DrawTrianDown
cbRowDragPlugin::DrawTrianRight
cbRowDragPlugin::DrawTrianUp
cbRowDragPlugin::ExpandRow
cbRowDragPlugin::FinishOnScreenDraw
cbRowDragPlugin::GetCollapsedIconsPos
cbRowDragPlugin::GetCollapsedInconRect
cbRowDragPlugin::GetCollapsedRowIconHeight
cbRowDragPlugin::GetFirstRow
cbRowDragPlugin::GetHRowsCountForPane
cbRowDragPlugin::GetRowDragHintWidth
cbRowDragPlugin::GetRowHintRect
cbRowDragPlugin::HitTestCollapsedRowIcon
cbRowDragPlugin::HitTestRowDragHint
cbRowDragPlugin::InsertDraggedRowBefore
cbRowDragPlugin::ItemIsInFocus
cbRowDragPlugin::OnDrawPaneBackground
cbRowDragPlugin::OnInitPlugin
cbRowDragPlugin::OnLButtonDown
cbRowDragPlugin::OnLButtonUp
cbRowDragPlugin::OnMouseMove
cbRowDragPlugin::PrepareForRowDrag
cbRowDragPlugin::SetMouseCapture
cbRowDragPlugin::SetPaneMargins
cbRowDragPlugin::ShowDraggedRow
cbRowDragPlugin::ShowPaneImage
cbRowDragPlugin::UnhighlightItemInFocus


cbRowDragPlugin::cbRowDragPlugin

cbRowDragPlugin(wxFrameLayout* pLayout, int paneMask = wxALL_PANES)

Constructor, taking paren layout frame and pane mask.

cbRowDragPlugin()

Default constructor.


cbRowDragPlugin::~cbRowDragPlugin

~cbRowDragPlugin()

Destructor.


cbRowDragPlugin::CaptureDCArea

wxBitmap* CaptureDCArea(wxDC& dc, wxRect& area)

Helper for drag and drop.


cbRowDragPlugin::CheckPrevItemInFocus

void CheckPrevItemInFocus(cbRowInfo* pRow, int iconIdx)

Helper for drag and drop.


cbRowDragPlugin::Clone

cbPluginBase* Clone()

Clone function, returning a new instance of this class.


cbRowDragPlugin::CollapseRow

void CollapseRow(cbRowInfo* pRow)

Helper for drag and drop.


cbRowDragPlugin::Draw3DPattern

void Draw3DPattern(wxRect& inRect, wxDC& dc)

Implements 'hard-coded metafile' for Netscape Navigator look.


cbRowDragPlugin::Draw3DRect

void Draw3DRect(wxRect& inRect, wxDC& dc, wxBrush& bkBrush)

Implements 'hard-coded metafile' for Netscape Navigator look.


cbRowDragPlugin::DrawCollapsedRowIcon

void DrawCollapsedRowIcon(int index, wxDC& dc, bool isHighlighted)

Draws collapsed row icon (appearance-dependent).


cbRowDragPlugin::DrawCollapsedRowsBorder

void DrawCollapsedRowsBorder(wxDC& dc)

Draws collapsed rows border (appearance-dependent).


cbRowDragPlugin::DrawEmptyRow

void DrawEmptyRow(wxDC& dc, wxRect& rowBounds)

Draws empty row (appearance-dependent).


cbRowDragPlugin::DrawOrtoRomb

void DrawOrtoRomb(wxRect& inRect, wxDC& dc, wxBrush& bkBrush)

Implements 'hard-coded metafile' for Netscape Navigator look.


cbRowDragPlugin::DrawRectShade

void DrawRectShade(wxRect& inRect, wxDC& dc, int level, wxPen& upperPen, wxPen& lowerPen)

Implements 'hard-coded metafile' for Netscape Navigator look.


cbRowDragPlugin::DrawRomb

void DrawRomb(wxRect& inRect, wxDC& dc, wxBrush& bkBrush)

Implements 'hard-coded metafile' for Netscape Navigator look.


cbRowDragPlugin::DrawRombShades

void DrawRombShades(wxPoint& p1, wxPoint& p2, wxPoint& p3, wxPoint& p4, wxDC& dc)

Implements 'hard-coded metafile' for Netscape Navigator look.


cbRowDragPlugin::DrawRowDragHint

void DrawRowDragHint(cbRowInfo* pRow, wxDC& dc, bool isHighlighted)

Draws row drag hint (appearance-dependent).


cbRowDragPlugin::DrawRowsDragHintsBorder

void DrawRowsDragHintsBorder(wxDC& dc)

Draws rows drag hints border (appearance-dependent).


cbRowDragPlugin::DrawTrianDown

void DrawTrianDown(wxRect& inRect, wxDC& dc)

Implements 'hard-coded metafile' for Netscape Navigator look.


cbRowDragPlugin::DrawTrianRight

void DrawTrianRight(wxRect& inRect, wxDC& dc)

Implements 'hard-coded metafile' for Netscape Navigator look.


cbRowDragPlugin::DrawTrianUp

void DrawTrianUp(wxRect& inRect, wxDC& dc)

Implements 'hard-coded metafile' for Netscape Navigator look.


cbRowDragPlugin::ExpandRow

void ExpandRow(int collapsedIconIdx)

Helper for drag and drop.


cbRowDragPlugin::FinishOnScreenDraw

void FinishOnScreenDraw()

Helper for drag and drop.


cbRowDragPlugin::GetCollapsedIconsPos

int GetCollapsedIconsPos()

Helper for drag and drop.


cbRowDragPlugin::GetCollapsedInconRect

void GetCollapsedInconRect(int iconIdx, wxRect& rect)

Helper for drag and drop.


cbRowDragPlugin::GetCollapsedRowIconHeight

int GetCollapsedRowIconHeight()

Gets the collapsed row icon height.


cbRowDragPlugin::GetFirstRow

cbRowInfo* GetFirstRow()

Helper for drag and drop.


cbRowDragPlugin::GetHRowsCountForPane

int GetHRowsCountForPane(cbDockPane* pPane)

Helper for drag and drop.


cbRowDragPlugin::GetRowDragHintWidth

int GetRowDragHintWidth()

Gets the row drag hint width.


cbRowDragPlugin::GetRowHintRect

void GetRowHintRect(cbRowInfo* pRow, wxRect& rect)

Helper for drag and drop.


cbRowDragPlugin::HitTestCollapsedRowIcon

bool HitTestCollapsedRowIcon(int iconIdx, const wxPoint& pos)

Test for the collapsed row icon position.


cbRowDragPlugin::HitTestRowDragHint

bool HitTestRowDragHint(cbRowInfo* pRow, const wxPoint& pos)

Test for the row drag hint position.


cbRowDragPlugin::InsertDraggedRowBefore

void InsertDraggedRowBefore(cbRowInfo* pBeforeRow)

Helper for drag and drop.


cbRowDragPlugin::ItemIsInFocus

bool ItemIsInFocus()

Helper for drag and drop.


cbRowDragPlugin::OnDrawPaneBackground

void OnDrawPaneBackground(cbDrawPaneDecorEvent& event)

Handles pane drawing plugin events (appearance-independent logic).


cbRowDragPlugin::OnInitPlugin

void OnInitPlugin()

Called to initialize this plugin.


cbRowDragPlugin::OnLButtonDown

void OnLButtonDown(cbLeftDownEvent& event)

Handles left button down plugin events (appearance-independent logic).


cbRowDragPlugin::OnLButtonUp

void OnLButtonUp(cbLeftUpEvent& event)

Handles left button up plugin events (appearance-independent logic).


cbRowDragPlugin::OnMouseMove

void OnMouseMove(cbMotionEvent& event)

Handles mouse move plugin events (appearance-independent logic).


cbRowDragPlugin::PrepareForRowDrag

void PrepareForRowDrag()

Helper for drag and drop.


cbRowDragPlugin::SetMouseCapture

void SetMouseCapture(bool captureOn)

Helper for drag and drop.


cbRowDragPlugin::SetPaneMargins

void SetPaneMargins()

Sets the pane margins.


cbRowDragPlugin::ShowDraggedRow

void ShowDraggedRow(int offset)

Helper for drag and drop.


cbRowDragPlugin::ShowPaneImage

void ShowPaneImage()

Helper for drag and drop.


cbRowDragPlugin::UnhighlightItemInFocus

void UnhighlightItemInFocus()

Helper for drag and drop.