20#include "vselectiondesc.h"
21#include "vselection.h"
25#include "vcomposite.h"
32 if( selection. objects().count() == 1 )
35 m_desc = i18n( "One object", "%n objects", selection. objects().count() );
41 m_desc = m_shortdesc = !composite. name().isEmpty() ? composite. name() : i18n( "path" );
47 m_desc = i18n( "One group, containing one object", "One group, containing %n objects", group. objects().count() );
48 m_shortdesc = !group. name().isEmpty() ? group. name() : i18n( "group" );
54 m_desc = m_shortdesc = !text. name().isEmpty() ? text. name() : i18n( "text" );
60 m_desc = m_shortdesc = !img. name().isEmpty() ? img. name() : i18n( "image" );
Base class for all sort of VObject conglomerats.
const VObjectList & objects() const Read only access to the grouped objects.
virtual TQString name() const Returns the name of the object.
A composite path consists of one or many subpaths.
virtual void visitVSelection(VSelection &) Visit method for a VSelection.
virtual void visitVPath(VPath &) Visit method for a VPath.
virtual void visitVGroup(VGroup &) Visit method for a VGroup.
virtual void visitVImage(VImage &) Visit method for a VImage.
virtual void visitVText(VText &) Visit method for a VText.
VSelection manages a set of selected vobjects.
const VObjectList & objects() const Read only access to the selected objects.
virtual void visitVSelection(VSelection &selection) Visit method for a VSelection.
|