44 #include "TypePolyLineCollection.hh" 47 TypePolyLineCollectionPlugin::TypePolyLineCollectionPlugin() {
51 bool TypePolyLineCollectionPlugin::registerType() {
52 addDataType(
"PolyLineCollection",tr(
"PolyLineCollection"));
53 setTypeIcon(
"PolyLineCollection",
"PolyLineCollectionType.png");
68 QString
name = tr(
"New PolyLineCollection %1.pol").arg( object->
id() );
72 object->setName( f.fileName() );
80 emit emptyObjectAdded (object->
id() );
int objectCount()
Get the number of available objects.
DLLEXPORT DataType addDataType(QString _name, QString _readableName)
Adds a datatype and returns the id for the new type.
DLLEXPORT void setTypeIcon(DataType _id, QString _icon)
Set an Icon for a given DataType.
int targetCount()
Get the number of target objects.
QString getObjectinfo()
Get all Info for the Object as a string.
int addEmpty()
Create an empty object.
QString name()
Return a name for the plugin.