kig
DragRectMode Class Reference
DragRectMode is a mode that provides a rect for selecting the objects inside it. More...
#include <dragrectmode.h>

Public Member Functions | |
| DragRectMode (KigPart &d, KigWidget &w) | |
| DragRectMode (const QPoint &start, KigPart &d, KigWidget &w) | |
| ~DragRectMode () | |
| bool | cancelled () const |
| bool | needClear () const |
| Rect | rect () const |
| std::vector< ObjectHolder * > | ret () const |
Detailed Description
DragRectMode is a mode that provides a rect for selecting the objects inside it.
Here's an example of how to use it
DragRectMode d( e->pos(), document, widget ); mDoc.runMode( &d ); Objects sel = d.ret();
Definition at line 40 of file dragrectmode.h.
Constructor & Destructor Documentation
Definition at line 29 of file dragrectmode.cc.
Definition at line 36 of file dragrectmode.cc.
| DragRectMode::~DragRectMode | ( | ) |
Definition at line 97 of file dragrectmode.cc.
Member Function Documentation
| bool DragRectMode::cancelled | ( | ) | const |
whether the user cancelled the rect mode.
. If this returns true, all the other return data above will be in undefined state, so first check this function's result..
Definition at line 170 of file dragrectmode.cc.
| bool DragRectMode::needClear | ( | ) | const |
this returns false if the control or shift button were pressed when the mouse button was released, and true otherwise.
This is because the user expects us to not clear the selection before adding the newly selected objects if (s)he pressed control or shift..
Definition at line 82 of file dragrectmode.cc.
| Rect DragRectMode::rect | ( | ) | const |
this returns the selected rect.
Definition at line 136 of file dragrectmode.cc.
| std::vector< ObjectHolder * > DragRectMode::ret | ( | ) | const |
this returns the selected objects.
Definition at line 77 of file dragrectmode.cc.
The documentation for this class was generated from the following files:
KDE 4.5 API Reference