#include <materialasset.h>
Classes | |
class | MaterialAssetPrivate |
Public Slots | |
void | createInstance () |
Public Member Functions | |
Q_INVOKABLE | MaterialAsset (QObject *parent=0) |
~MaterialAsset () | |
virtual QIcon | icon () const |
void | load () |
virtual const QStringList | supportedMimeTypes () const |
virtual const QList < AssetTemplate * > | templates () |
virtual QList< QAction * > | actions () |
virtual void | setName (const QString &newName) |
virtual QString | childrenToGDL (int indentLevel=0) const |
virtual void | sanitize () |
Definition at line 28 of file materialasset.h.
MaterialAsset::MaterialAsset | ( | QObject * | parent = 0 |
) |
Definition at line 49 of file materialasset.cpp.
MaterialAsset::~MaterialAsset | ( | ) |
Definition at line 60 of file materialasset.cpp.
QList< QAction * > MaterialAsset::actions | ( | ) | [virtual] |
Retrieve a list of actions relating to the current asset.
Reimplemented from GluonEngine::Asset.
Definition at line 104 of file materialasset.cpp.
QString MaterialAsset::childrenToGDL | ( | int | indentLevel = 0 |
) | const [virtual] |
The specialization of toGDL on the Asset class does not recurse. This allows Assets to handle their own children in a flexible manner, without polluting the GDL with that information.
Reimplemented from GluonEngine::Asset.
Definition at line 116 of file materialasset.cpp.
void MaterialAsset::createInstance | ( | ) | [slot] |
Definition at line 134 of file materialasset.cpp.
QIcon MaterialAsset::icon | ( | ) | const [virtual] |
An icon to represent the asset. Think of it as a thumbnail representation of the contents of the asset. The default implementation returns a null icon
Reimplemented from GluonEngine::Asset.
Definition at line 65 of file materialasset.cpp.
void MaterialAsset::load | ( | ) | [virtual] |
Reimplemented from GluonEngine::Asset.
Definition at line 82 of file materialasset.cpp.
void MaterialAsset::sanitize | ( | ) | [virtual] |
Reimplemented from GluonCore::GluonObject.
Definition at line 121 of file materialasset.cpp.
void MaterialAsset::setName | ( | const QString & | newName | ) | [virtual] |
An extension on the GluonCore::GluonObject::setName function which changes the file name of the Asset when setting a new name for the Asset.
newName | The requested new name for the asset |
Reimplemented from GluonEngine::Asset.
Definition at line 109 of file materialasset.cpp.
const QStringList MaterialAsset::supportedMimeTypes | ( | ) | const [virtual] |
Used by GluonObjectFactory when requesting an object which supports a specific mimetype. The default implementation returns an empty list.
This is primarily useful for GluonEngine::Asset but other classes can potentially use it as well.
Reimplemented from GluonCore::GluonObject.
Definition at line 73 of file materialasset.cpp.
const QList< AssetTemplate * > MaterialAsset::templates | ( | ) | [virtual] |
The templates provided by the asset. The default implementation returns no templates, as many assets will not be able to provide templates.
Reimplemented from GluonEngine::Asset.
Definition at line 97 of file materialasset.cpp.