• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kig

Public Member Functions | List of all members
DragRectMode Class Reference

#include <dragrectmode.h>

Inheritance diagram for DragRectMode:
Inheritance graph
[legend]

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

DragRectMode d( e->pos(), document, widget );
mDoc.runMode( &d );
Objects sel = d.ret();

Definition at line 40 of file dragrectmode.h.

Constructor & Destructor Documentation

DragRectMode::DragRectMode ( const QPoint &  start,
KigPart &  d,
KigWidget &  w 
)

Definition at line 29 of file dragrectmode.cc.

DragRectMode::DragRectMode ( KigPart &  d,
KigWidget &  w 
)

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:
  • dragrectmode.h
  • dragrectmode.cc
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kig

Skip menu "kig"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal