OutlineViewPlugin is a Composer plugin that shows the internal model as a tree allowing ease navigation.
More...
#include <OutlineViewPlugin.h>
|
void | onEntityAdded (QString pluginID, Entity *) |
| This is called by the core when a new Entity is added. More...
|
|
void | onEntityChanged (QString ID, Entity *) |
| This function is part of the IPlugin API. More...
|
|
void | onEntityRemoved (QString ID, QString entityID) |
| This function is part of the IPlugin API. More...
|
|
void | updateFromModel () |
| This slot calls the outline plugin to update its own model.
|
|
void | errorMessage (QString error) |
| This function is part of the IPlugin API. More...
|
|
void | debugHasSendClearAll (QString pluginIDm, void *obj) |
|
void | changeSelectedEntity (QString pluginId, void *param) |
|
void | textualStartSync (QString, void *) |
|
void | textualFinishSync (QString, void *) |
|
void | clearValidationMessages (QString, void *param) |
| This message is called by Validator plugin.
|
|
void | validationError (QString pluginID, void *param) |
| This message is called by Validator plugin.
|
|
void | clearErrorMessages () |
|
virtual void | onEntityAdded (QString pluginID, Entity *entity) |
| This is called by the core when a new Entity is added. More...
|
|
virtual void | onEntityChanged (QString pluginID, Entity *entity) |
| Called by the core when an Entity is changed. More...
|
|
|
void | addEntity (QString type, QString parentEntityId, QMap< QString, QString > &atts, bool force) |
| This message can be used to add a new entity in the model. More...
|
|
void | setAttributes (Entity *entity, QMap< QString, QString > atts, bool force) |
| This message can be used to edit the attributes of an Entity. More...
|
|
void | removeEntity (Entity *entity, bool force) |
| This message can be used to ask the core to remove an Entity. More...
|
|
void | setListenFilter (const QStringList &entityTypes) |
| Say the core that the plugin is interested in just the entities of the the type passed as parameter. More...
|
|
void | sendBroadcastMessage (const char *msg, void *obj) |
| Can be used to extend the current messages of Core. More...
|
|
void | setPluginData (QByteArray data) |
| Each plugin is able to save its specific data by calling this message. More...
|
|
void | setCurrentProjectAsDirty () |
| TODO. More...
|
|
OutlineViewPlugin is a Composer plugin that shows the internal model as a tree allowing ease navigation.
Definition at line 31 of file OutlineViewPlugin.h.
void composer::extension::IPlugin::addEntity |
( |
QString |
type, |
|
|
QString |
parentEntityId, |
|
|
QMap< QString, QString > & |
atts, |
|
|
bool |
force |
|
) |
| |
|
signalinherited |
This message can be used to add a new entity in the model.
- Parameters
-
type | |
parentEntityId | |
atts | |
force | |
void OutlineViewPlugin::changeSelectedEntity |
( |
QString |
pluginId, |
|
|
void * |
param |
|
) |
| |
|
slot |
void OutlineViewPlugin::debugHasSendClearAll |
( |
QString |
pluginIDm, |
|
|
void * |
obj |
|
) |
| |
|
slot |
void OutlineViewPlugin::errorMessage |
( |
QString |
error) | |
|
|
slot |
Project* composer::extension::IPlugin::getProject |
( |
) | |
|
|
inlineinherited |
This call is used by the core to recover the Project instance previously binded with this plugin instance.
- Returns
- project aProject instance
Definition at line 90 of file IPlugin.h.
QWidget * OutlineViewPlugin::getWidget |
( |
) | |
|
|
virtual |
Returns the widget of that plugin.
This widget will be presentated to the user.
This function is part of the IPlugin API.
- Returns
- QWidget* the widget that represents this plugin. If NULL, the plugin has not a visual representation
Reimplemented from composer::extension::IPlugin.
Definition at line 59 of file OutlineViewPlugin.cpp.
void OutlineViewPlugin::onEntityAdded |
( |
QString |
pluginID, |
|
|
Entity * |
entity |
|
) |
| |
|
slot |
This is called by the core when a new Entity is added.
This function is part of IPlugin API.
- Parameters
-
ID | The plugin identifier that called to add the Entity. |
Entity* | the Entity that was added. |
Definition at line 64 of file OutlineViewPlugin.cpp.
virtual void composer::extension::IPlugin::onEntityAdded |
( |
QString |
pluginID, |
|
|
Entity * |
entity |
|
) |
| |
|
inlinevirtualslotinherited |
This is called by the core when a new Entity is added.
This call is invoked by the core when a new Entity (from that particular types the plugin is listening) is added in the model.
Definition at line 150 of file IPlugin.h.
void OutlineViewPlugin::onEntityChanged |
( |
QString |
ID, |
|
|
Entity * |
entity |
|
) |
| |
|
slot |
virtual void composer::extension::IPlugin::onEntityChanged |
( |
QString |
pluginID, |
|
|
Entity * |
entity |
|
) |
| |
|
inlinevirtualslotinherited |
Called by the core when an Entity is changed.
- Parameters
-
pluginID | the plugin instance id that first called the changes to the entity. |
entity | The entity that was modified. |
Definition at line 163 of file IPlugin.h.
void OutlineViewPlugin::onEntityRemoved |
( |
QString |
ID, |
|
|
QString |
entityID |
|
) |
| |
|
slot |
void composer::extension::IPlugin::removeEntity |
( |
Entity * |
entity, |
|
|
bool |
force |
|
) |
| |
|
signalinherited |
This message can be used to ask the core to remove an Entity.
- Parameters
-
entity | The pointer to the Entity must be removed. |
force | It should be true if the user want to remove that entity even the internal model will not be consistent. |
bool OutlineViewPlugin::saveSubsession |
( |
) | |
|
|
virtual |
void composer::extension::IPlugin::sendBroadcastMessage |
( |
const char * |
msg, |
|
|
void * |
obj |
|
) |
| |
|
signalinherited |
Can be used to extend the current messages of Core.
This message is send to all plugins without any validation. The content of the message can be any QObject and are useful to extend the default core message.
Always, the signature of the method msg implemented by an receiver must be an public slot like: void msg(QString pluginID, void *obj)
The core will call this msg method to each publin that implements it when sendBroadcastMethod is called.
void composer::extension::IPlugin::setAttributes |
( |
Entity * |
entity, |
|
|
QMap< QString, QString > |
atts, |
|
|
bool |
force |
|
) |
| |
|
signalinherited |
This message can be used to edit the attributes of an Entity.
- Parameters
-
void composer::extension::IPlugin::setCurrentProjectAsDirty |
( |
) | |
|
|
signalinherited |
TODO.
- Todo:
- This could be done with setBroadcastMessage?!
void composer::extension::IPlugin::setListenFilter |
( |
const QStringList & |
entityTypes) | |
|
|
signalinherited |
Say the core that the plugin is interested in just the entities of the the type passed as parameter.
- Parameters
-
entityTypes | a list of strings that the plugin want to listen. |
void composer::extension::IPlugin::setPluginData |
( |
QByteArray |
data) | |
|
|
signalinherited |
Each plugin is able to save its specific data by calling this message.
Important: When the plugin send this message, the data overwrite the previously saved by this plugin.
- Parameters
-
data | A byte array contatining the data that plugin wants to save. |
void composer::extension::IPlugin::setProject |
( |
Project * |
project) | |
|
|
inlineinherited |
This call is used by the core to bind an existing NclDocument with this plugin instance.
- Parameters
-
document | an NclDocument instance |
Definition at line 78 of file IPlugin.h.
The documentation for this class was generated from the following files: