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

rocs/VisualEditor

Public Types | Public Slots | Public Member Functions | List of all members
AlignAction Class Reference

#include <AlignAction.h>

Inheritance diagram for AlignAction:
Inheritance graph
[legend]

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

enum AlignAction::Orientation

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
actionNamethe name of the button
tooltipsome helper text.
othe orientation that this button will work on.
gcthe graph scene containing the nodes
parentthe parent widget

Definition at line 42 of file AlignAction.cpp.

Member Function Documentation

void AlignAction::align ( )
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)

register data to be aligned

Parameters
dataList

Definition at line 51 of file AlignAction.cpp.

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:
  • AlignAction.h
  • AlignAction.cpp
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

KDE's Doxygen guidelines are available online.

rocs/VisualEditor

Skip menu "rocs/VisualEditor"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • 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