#include <Selection.h>
Inheritance diagram for Selection::

Signals | |
| void | updateAll () |
| Emited when the main window needs to be updated. | |
Public Methods | |
| Selection (QWidget *, const char *name=0) | |
| Constructor. | |
| ~Selection () | |
| Destructor. | |
| QList< GState > & | getSList () |
| Returns a list containing all selected states. | |
| QList< GTransition > & | getTList () |
| Returns a list containing all selected transitions. | |
| bool | isITransSelected () |
| Returns TRUE if initial transition is selected otherwise FALSE. | |
| void | selectITrans (bool s=TRUE) |
| If @s is TRUE selects initial transition otherwise deselects it. | |
| bool | isStateSelected (State *) |
| Returns TRUE if state sels is selected, otherwise FALSE. | |
| bool | isTransitionSelected (Transition *) |
| Returns TRUE if transition selt is selected, otherwise FALSE. | |
| GObject * | select (ScrollView *, Machine *, QPoint, double, int &) |
| Selects the object at point p. More... | |
| void | select (GState *, bool sel=TRUE) |
| Selects/deselects the state s. | |
| void | select (GTransition *, bool sel=TRUE) |
| Selects/deselects the transition t. | |
| void | select (GITransition *, bool sel=TRUE) |
| Selects/deselects the initial transition t. | |
| bool | selectRect (Machine *, DRect &, bool add) |
| Select all objects lying in the specified rectangle. More... | |
| bool | selectAdd (ScrollView *, Machine *, QPoint, double) |
| Adds an object to the selection. More... | |
| int | selectControl (Machine *, QPoint, double, GTransition *&) |
| Checks if a control point of a transition lies at point p. More... | |
| bool | selectAll (Machine *, DRect &bound) |
| Selects all objects in the machine m and returns the bounding rectangle r. | |
| bool | deselect (GState *) |
| Deselects the state s. More... | |
| bool | deselect (GTransition *) |
| Deselects the transition t. More... | |
| bool | deselect (GITransition *) |
| Deselects initial transition t. More... | |
| void | deselectAll (Machine *) |
| Deselects all selected objects in the machine m. | |
| bool | onSelection (QPoint, double) |
| Checks if point p lies on a selected object. More... | |
| void | move (double, double, ScrollView *, Machine *) |
| Moves selection. More... | |
| void | getBoundingRect (double &, double &, double &, double &, GState *) |
| Returns the bounding rectangle of the selection. More... | |
| void | updateBoundingRect (DRect &, GState *) |
| Updates the bounding rectangle rect. | |
| int | countStates () |
| Returns the number of selected states. | |
| int | countTransitions () |
| Returns the number of selected transitions. | |
| int | count () |
| Returns the number of all selected objects. | |
| void | clear () |
| Deselects all selections. | |
| void | setContextObject (GObject *obj, int type) |
| Sets the context object. | |
| GObject * | getContextObject (int &type) |
| Returns the context object. | |
Private Methods | |
| void | setMinMax (double, double, double &, double &, double &, double &) |
| Updates the the maximum rectangle coordinates l, t, r b if @x and @y lye outside of the rectangle. | |
Private Attributes | |
| QList< GState > | ssel_list |
| List of selected states. | |
| QList< GTransition > | tsel_list |
| List of selected transitions. | |
| bool | itrans |
| If TRUE, the initial transition is selected. | |
| GObject * | context_object |
| Context object (object under cursor when clicking the right mouse button). | |
| int | co_type |
| Type of context object (see ObjectType). | |
|
|
Deselects initial transition t.
|
|
|
Deselects the transition t.
|
|
|
Deselects the state s.
|
|
||||||||||||||||||||||||||||||||||||
|
Returns the bounding rectangle of the selection.
|
|
|||||||||||||||||||||||||||||
|
Moves selection.
|
|
|||||||||||||||
|
Checks if point p lies on a selected object.
|
|
||||||||||||||||||||||||||||||||||||
|
Selects the object at point p.
|
|
|||||||||||||||||||||||||||||
|
Adds an object to the selection. Searches for an object lying at point p and adds it to the current selection.
|
|
|||||||||||||||||||||||||||||
|
Checks if a control point of a transition lies at point p.
|
|
||||||||||||||||||||||
|
Select all objects lying in the specified rectangle.
|
1.2.9.1 written by Dimitri van Heesch,
© 1997-2001