kig
DragRectMode Class Reference
#include <dragrectmode.h>

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.
Public Member Functions | |
| bool | cancelled () const |
| DragRectMode (KigPart &d, KigWidget &w) | |
| DragRectMode (const QPoint &start, KigPart &d, KigWidget &w) | |
| bool | needClear () const |
| Rect | rect () const |
| std::vector< ObjectHolder * > | ret () const |
| ~DragRectMode () | |
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 |
| std::vector< ObjectHolder * > DragRectMode::ret | ( | ) | const |
The documentation for this class was generated from the following files:
KDE 4.2 API Reference