karbon

VSelectionDescription Class Reference

#include <vselectiondesc.h>

Inheritance diagram for VSelectionDescription:
VVisitor

Public Member Functions

virtual void visitVSelection (VSelection &)
 
virtual void visitVGroup (VGroup &)
 
virtual void visitVPath (VPath &)
 
virtual void visitVText (VText &)
 
virtual void visitVImage (VImage &)
 
TQString description ()
 
TQString shortDescription ()
 
- Public Member Functions inherited from VVisitor
 VVisitor ()
 
virtual bool visit (VObject &object)
 
virtual void visitVObject (VObject &object)
 
virtual void visitVDocument (VDocument &document)
 
virtual void visitVLayer (VLayer &layer)
 
virtual void visitVSubpath (VSubpath &path)
 
bool success () const
 

Additional Inherited Members

- Protected Member Functions inherited from VVisitor
virtual ~VVisitor ()
 
void setSuccess (bool success=true)
 

Detailed Description

This visitors visits structures and tries to capture relevant object type info as text.

There are two methods, one creates a large description like "(1 group, containing 2 objects)", and a short description giving object id, or if there is no object id just the object type, like group/path/text etc.

These texts are primarily meant for statusbar messages and object trees.

Definition at line 34 of file vselectiondesc.h.

Constructor & Destructor Documentation

◆ VSelectionDescription()

VSelectionDescription::VSelectionDescription ( )
inline

Definition at line 37 of file vselectiondesc.h.

Member Function Documentation

◆ description()

TQString VSelectionDescription::description ( )
inline

Definition at line 45 of file vselectiondesc.h.

◆ shortDescription()

TQString VSelectionDescription::shortDescription ( )
inline

Definition at line 46 of file vselectiondesc.h.

◆ visitVGroup()

void VSelectionDescription::visitVGroup ( VGroup &  group)
virtual

Visit method for a VGroup.

Pass a group of objects to this function. This is a virtual function so you need to implement it in the subclass if you want to use it.

Reimplemented from VVisitor.

Definition at line 45 of file vselectiondesc.cpp.

◆ visitVImage()

void VSelectionDescription::visitVImage ( VImage &  img)
virtual

Visit method for a VImage.

Pass an image to this function. This is a virtual function so you need to implement it in the subclass if you want to use it.

Reimplemented from VVisitor.

Definition at line 58 of file vselectiondesc.cpp.

◆ visitVPath()

void VSelectionDescription::visitVPath ( VPath &  composite)
virtual

Visit method for a VPath.

Pass a composite path to this function. This is a virtual function so you need to implement it in the subclass if you want to use it.

Reimplemented from VVisitor.

Definition at line 39 of file vselectiondesc.cpp.

◆ visitVSelection()

void VSelectionDescription::visitVSelection ( VSelection &  selection)
virtual

Visit method for a VSelection.

Pass a selection to this function. This is a virtual function so you need to implement it in the subclass if you want to use it.

Reimplemented from VVisitor.

Definition at line 30 of file vselectiondesc.cpp.

◆ visitVText()

void VSelectionDescription::visitVText ( VText &  text)
virtual

Visit method for a VText.

Pass some text to this function. This is a virtual function so you need to implement it in the subclass if you want to use it.

Reimplemented from VVisitor.

Definition at line 52 of file vselectiondesc.cpp.


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