Emergency 20 Dokumentation  4.1.0
Public Member Functions | Static Public Attributes | List of all members
qsf::editor::PrototypesMimeData Class Reference

Prototypes Qt mime data. More...

#include <PrototypesMimeData.h>

Inheritance diagram for qsf::editor::PrototypesMimeData:
Inheritance graph
[legend]
Collaboration diagram for qsf::editor::PrototypesMimeData:
Collaboration graph
[legend]

Public Member Functions

 PrototypesMimeData (const std::string &prototype)
 Constructor for creating prototypes Qt mime data by using a given UTF-8 prefab asset name. More...
 
 PrototypesMimeData (const QList< std::string > &qList)
 Constructor for creating prototypes Qt mime data by using a given list of UTF-8 prefab asset names. More...
 
virtual ~PrototypesMimeData ()
 Destructor. More...
 
PrototypegetFirstPrototypePointer () const
 Return a pointer to the first prototype instance inside this Qt mime data instance. More...
 

Static Public Attributes

static const QString MIME_TYPE
 Mime type "qsf/prototypes". More...
 

Detailed Description

Prototypes Qt mime data.

Note
  • Stores information about 1..n prototypes
Todo:
  • TODO(co): Add more useful methods

Constructor & Destructor Documentation

qsf::editor::PrototypesMimeData::PrototypesMimeData ( const std::string &  prototype)
explicit

Constructor for creating prototypes Qt mime data by using a given UTF-8 prefab asset name.

Parameters
[in]prototypeUTF-8 prefab asset name (e.g. "sample/prefab/vehicle/ambulance")
qsf::editor::PrototypesMimeData::PrototypesMimeData ( const QList< std::string > &  qList)
explicit

Constructor for creating prototypes Qt mime data by using a given list of UTF-8 prefab asset names.

Parameters
[in]qListList of UTF-8 prefab asset names (e.g. "sample/prefab/vehicle/ambulance", "sample/prefab/animal/squirrel" and so on)
qsf::editor::PrototypesMimeData::~PrototypesMimeData ( )
inlinevirtual

Destructor.

Member Function Documentation

Prototype* qsf::editor::PrototypesMimeData::getFirstPrototypePointer ( ) const

Return a pointer to the first prototype instance inside this Qt mime data instance.

Returns
Pointer to the first prototype instance inside this Qt mime data instance, null pointer on error

Member Data Documentation

const QString qsf::editor::PrototypesMimeData::MIME_TYPE
static

Mime type "qsf/prototypes".


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