Workstack drag object. More...
#include <QtxWorkstack.h>
Public Member Functions | |
QtxWorkstackDrag (QtxWorkstack *, QtxWorkstackChild *) | |
Constructor. More... | |
virtual | ~QtxWorkstackDrag () |
Destructor. More... | |
virtual bool | eventFilter (QObject *, QEvent *) |
Custom event filter. More... | |
Private Member Functions | |
void | dropWidget () |
Called when drop operation is finished. More... | |
void | updateTarget (const QPoint &) |
Detect and set dropping target widget. More... | |
QtxWorkstackArea * | detectTarget (const QPoint &, int &) const |
Detect dropping target. More... | |
void | setTarget (QtxWorkstackArea *, const int) |
Set dropping target. More... | |
void | drawRect () |
Draw floating rectangle. More... | |
void | endDrawRect () |
Delete rubber band on the end on the dragging operation. More... | |
void | startDrawRect () |
Create rubber band to be drawn on the dragging operation. More... | |
Private Attributes | |
QtxWorkstack * | myWS |
parent workstack More... | |
QtxWorkstackChild * | myChild |
workstack child widget container More... | |
int | myTab |
workarea tab page index More... | |
QtxWorkstackArea * | myArea |
workarea More... | |
QRubberBand * | myTabRect |
tab bar rubber band More... | |
QRubberBand * | myAreaRect |
workarea rubber band More... | |
QtxWorkstackDrag::QtxWorkstackDrag | ( | QtxWorkstack * | ws, |
QtxWorkstackChild * | child | ||
) |
ws | parent workstack |
child | child widget container |
|
virtual |
References endDrawRect().
|
private |
p | current dragging position |
tab | resulting target tab page index |
References QtxWorkstack::areaAt(), myWS, and QtxWorkstackArea::tabAt().
|
private |
References QtxWorkstackArea::floatRect(), QtxWorkstackArea::floatTab(), myArea, myAreaRect, myTab, and myTabRect.
|
private |
Inserts dropped widget to the target workarea.
References QtxWorkstackArea::insertChild(), myArea, myChild, and myTab.
|
private |
References myAreaRect, and myTabRect.
o | event receiver widget |
e | event |
true
if event should be filtered (stop further processing) References drawRect(), dropWidget(), endDrawRect(), and updateTarget().
|
private |
area | new target workarea |
tab | target workarea's tab page index |
References drawRect(), myArea, myTab, and startDrawRect().
|
private |
References myAreaRect, myTabRect, and Plot2d::Rectangle.
|
private |
p | current dragging position |
References detectTarget(), and setTarget().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |