libs/flake

KoShapeGroup Class Reference

Provide grouping for shapes. More...

#include <KoShapeGroup.h>

Inheritance diagram for KoShapeGroup:

List of all members.

Public Member Functions

 KoShapeGroup ()
 ~KoShapeGroup ()
bool hitTest (const QPointF &position) const
virtual bool loadOdf (const KoXmlElement &element, KoShapeLoadingContext &context)
void paintComponent (QPainter &painter, const KoViewConverter &converter)
virtual void saveOdf (KoShapeSavingContext &context) const

Detailed Description

Provide grouping for shapes.

The group shape allows you to add children which will then be grouped in selections and actions.

If you have a set of shapes that together make up a bigger shape it is often useful to group them together so the user will perceive the different shapes as actually being one. This means that if the user clicks on one shape, all shapes in the group will be selected at once, making the tools that works on selections alter all of them at the same time.

Note that while this object is also a shape, it is not actually visible and the user can't interact with it.

Definition at line 44 of file KoShapeGroup.h.


Constructor & Destructor Documentation

KoShapeGroup::KoShapeGroup (  ) 

Constructor.

Definition at line 35 of file KoShapeGroup.cpp.

KoShapeGroup::~KoShapeGroup (  )  [inline]

destructor

Definition at line 50 of file KoShapeGroup.h.


Member Function Documentation

bool KoShapeGroup::hitTest ( const QPointF position  )  const [virtual]

always returns false since the group itself can't be selected or hit

Reimplemented from KoShape.

Definition at line 47 of file KoShapeGroup.cpp.

bool KoShapeGroup::loadOdf ( const KoXmlElement &  element,
KoShapeLoadingContext context 
) [virtual]

Load a shape from odf.

Parameters:
context the KoShapeLoadingContext used for loading
element element which represents the shape in odf
Returns:
false if loading failed

Implements KoShape.

Definition at line 78 of file KoShapeGroup.cpp.

void KoShapeGroup::paintComponent ( QPainter painter,
const KoViewConverter converter 
) [virtual]

This implementation is empty since a group is itself not visible.

Implements KoShapeContainer.

Definition at line 41 of file KoShapeGroup.cpp.

void KoShapeGroup::saveOdf ( KoShapeSavingContext context  )  const [virtual]

reimplemented from KoShape

Implements KoShape.

Definition at line 61 of file KoShapeGroup.cpp.


The documentation for this class was generated from the following files: