rocs/VisualEditor
AlignAction Class Reference
  #include <AlignAction.h>
Inheritance diagram for AlignAction:

| Public Types | |
| enum | Orientation { Left, Right, Top, Bottom, HCenter, VCenter, Circle, MinCutTree } | 
| Public Slots | |
| void | align () | 
| Public Member Functions | |
| AlignAction (const QString &tooltip, AlignAction::Orientation o, GraphScene *gc) | |
| void | registerData (DataList dataList) | 
| void | unsetData () | 
Detailed Description
Definition at line 29 of file AlignAction.h.
Member Enumeration Documentation
enumerates available alignments supported by this action
| Enumerator | |
|---|---|
| Left | |
| Right | |
| Top | |
| Bottom | |
| HCenter | |
| VCenter | |
| Circle | |
| MinCutTree | |
Definition at line 34 of file AlignAction.h.
Constructor & Destructor Documentation
| AlignAction::AlignAction | ( | const QString & | tooltip, | 
| AlignAction::Orientation | o, | ||
| GraphScene * | gc | ||
| ) | 
Creates a new align button.
If a data is registered, this data is aligned according to the specified topology. Else, the currently selected set of nodes is aligned.
- Parameters
- 
  actionName the name of the button tooltip some helper text. o the orientation that this button will work on. gc the graph scene containing the nodes parent the parent widget 
Definition at line 42 of file AlignAction.cpp.
Member Function Documentation
| 
 | slot | 
Run the previously specified align algorithm for the selected set of data.
If data is set by
- See also
- registerData(...) this data is aligned and the registered data is unset after this operation.
Definition at line 93 of file AlignAction.cpp.
| void AlignAction::registerData | ( | DataList | dataList | ) | 
| void AlignAction::unsetData | ( | ) | 
unset registered data
Definition at line 56 of file AlignAction.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
            Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
 KDE API Reference
    KDE API Reference