kig
#include <dragrectmode.h>
Public Member Functions | |
DragRectMode (const QPoint &start, KigPart &d, KigWidget &w) | |
DragRectMode (KigPart &d, KigWidget &w) | |
~DragRectMode () | |
bool | cancelled () const |
bool | needClear () const |
Rect | rect () const |
std::vector< ObjectHolder * > | ret () const |
Public Member Functions inherited from KigMode | |
virtual | ~KigMode () |
virtual void | browseHistory () |
virtual void | deleteObjects () |
virtual void | deselectAll () |
virtual void | editTypes () |
QEventLoop * | eventLoop () const |
virtual void | invertSelection () |
virtual void | newMacro () |
virtual void | redrawScreen (KigWidget *w) |
virtual void | selectAll () |
void | setEventLoop (QEventLoop *e) |
virtual void | showHidden () |
virtual StdConstructionMode * | toStdConstructionMode () |
Additional Inherited Members | |
Protected Member Functions inherited from KigMode | |
KigMode (KigPart &d) | |
Protected Attributes inherited from KigMode | |
KigPart & | mdoc |
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
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:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.