Référence de la classe KoGroupShapesCommand

The undo / redo command for grouping shapes. Plus de détails...

#include <KoCommand.h>

Graphe d'héritage de KoGroupShapesCommand:

[légende]
Graphe de collaboration de KoGroupShapesCommand:
[légende]
Liste de tous les membres

Fonctions membres publiques

 KoGroupShapesCommand (KoShapeContainer *container, QList< KoShape * > shapes, QList< bool > clipped)
 KoGroupShapesCommand (KoShapeGroup *container, QList< KoShape * > shapes)
virtual ~KoGroupShapesCommand ()
virtual void execute ()
 execute the command
virtual void unexecute ()
 revert the actions done in execute
virtual QString name () const
 return the name of this command

Fonctions membres protégées

 KoGroupShapesCommand ()
 protected constructor for child classes

Attributs protégés

QList< KoShape * > m_shapes
 list of shapes to be grouped
QList< bool > m_clipped
 list of booleas to specify the shape of the same index to eb clipped
KoShapeContainerm_container
 the container where the grouping should be for.
QList< KoShapeContainer * > m_oldParents
 the old parents of the shapes

Description détaillée

The undo / redo command for grouping shapes.

Définition à la ligne 160 du fichier KoCommand.h.


Documentation des contructeurs et destructeur

KoGroupShapesCommand::KoGroupShapesCommand ( KoShapeContainer container,
QList< KoShape * >  shapes,
QList< bool >  clipped 
)

Command to group a set of shapes into a predefined container.

Paramètres:
container the container to group the shapes under.
shapes a list of all the shapes that should be grouped.
clipped a list of the same length as the shapes list with one bool for each shape. See KoShapeContainer::childClipped()

Définition à la ligne 185 du fichier KoCommand.cpp.

Références m_clipped, m_oldParents, m_shapes, et KoShape::parent().

Voici le graphe d'appel pour cette fonction :

KoGroupShapesCommand::KoGroupShapesCommand ( KoShapeGroup container,
QList< KoShape * >  shapes 
)

Command to group a set of shapes into a predefined container. Convenience constructor since KoShapeGroup does not allow clipping.

Paramètres:
container the group to group the shapes under.
shapes a list of all the shapes that should be grouped.

Définition à la ligne 195 du fichier KoCommand.cpp.

Références m_clipped, m_oldParents, m_shapes, et KoShape::parent().

Voici le graphe d'appel pour cette fonction :

virtual KoGroupShapesCommand::~KoGroupShapesCommand (  )  [inline, virtual]

Définition à la ligne 177 du fichier KoCommand.h.

KoGroupShapesCommand::KoGroupShapesCommand (  )  [protected]

protected constructor for child classes

Définition à la ligne 206 du fichier KoCommand.cpp.


Documentation des fonctions membres

void KoGroupShapesCommand::execute (  )  [virtual]

execute the command

Réimplémentée dans KoUngroupShapesCommand.

Définition à la ligne 209 du fichier KoCommand.cpp.

Références KoShape::absolutePosition(), KoShapeContainer::addChild(), KoShape::boundingRect(), KoShapeContainer::childCount(), m_container, m_shapes, KoShape::position(), KoShape::resize(), et KoShape::setPosition().

Référencé par KoUngroupShapesCommand::unexecute().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

void KoGroupShapesCommand::unexecute (  )  [virtual]

revert the actions done in execute

Réimplémentée dans KoUngroupShapesCommand.

Définition à la ligne 236 du fichier KoCommand.cpp.

Références KoShape::absolutePosition(), m_container, m_oldParents, m_shapes, et KoShapeContainer::removeChild().

Référencé par KoUngroupShapesCommand::execute().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

QString KoGroupShapesCommand::name (  )  const [virtual]

return the name of this command

Réimplémentée dans KoUngroupShapesCommand.

Définition à la ligne 249 du fichier KoCommand.cpp.


Documentation des données membres

QList<KoShape*> KoGroupShapesCommand::m_shapes [protected]

list of shapes to be grouped

Définition à la ligne 187 du fichier KoCommand.h.

Référencé par execute(), KoGroupShapesCommand(), KoUngroupShapesCommand::KoUngroupShapesCommand(), et unexecute().

QList<bool> KoGroupShapesCommand::m_clipped [protected]

list of booleas to specify the shape of the same index to eb clipped

Définition à la ligne 188 du fichier KoCommand.h.

Référencé par KoGroupShapesCommand(), et KoUngroupShapesCommand::KoUngroupShapesCommand().

KoShapeContainer* KoGroupShapesCommand::m_container [protected]

the container where the grouping should be for.

Définition à la ligne 189 du fichier KoCommand.h.

Référencé par execute(), KoUngroupShapesCommand::KoUngroupShapesCommand(), et unexecute().

QList<KoShapeContainer*> KoGroupShapesCommand::m_oldParents [protected]

the old parents of the shapes

Définition à la ligne 190 du fichier KoCommand.h.

Référencé par KoGroupShapesCommand(), KoUngroupShapesCommand::KoUngroupShapesCommand(), et unexecute().


La documentation de cette classe a été générée à partir des fichiers suivants :
Généré le Wed Nov 22 23:45:52 2006 pour KPlato par  doxygen 1.5.1-p1