NCL Composer  0.1.5
 All Classes Functions Variables Pages
composer::core::MessageControl Class Reference

Manages the messages sent from plugins to NCL Composer Core and vice-versa. More...

#include <MessageControl.h>

Inheritance diagram for composer::core::MessageControl:
Collaboration diagram for composer::core::MessageControl:

Public Slots

void onAddEntity (QString type, QString parentEntityId, QMap< QString, QString > &atts, bool force)
 
void onEditEntity (Entity *entity, QMap< QString, QString > atts, bool force)
 
void onRemoveEntity (Entity *, bool force)
 
void setListenFilter (QStringList list)
 TODO.
 
void setPluginData (QByteArray data)
 TODO.
 
void setCurrentProjectAsDirty ()
 TODO.
 
void anonymousAddEntity (QString type, QString parentEntityId, QMap< QString, QString > &atts, bool force=false, bool notifyPlugins=true)
 This message is here, mainly for test purposes. More...
 
void anonymousAddEntity (Entity *entity, QString parentEntityId, bool force=false, bool notifyPlugins=true)
 This is a variation of the previous message, where the user pass the pointer to an entity already created.
 
void anonymousRemoveEntity (QString entityUniqueId, bool force=false, bool notifyPlugins=true)
 This message is here, mainly for test purposes. More...
 
void anonymousUpdateFromModel ()
 This message is here, mainly for test purposes. More...
 
void anonymousChangeEntity (QString entityId, QMap< QString, QString > &atts, bool force=false, bool notifyPlugins=true)
 This message is here, mainly for test purposes. More...
 
void undo ()
 
void redo ()
 

Signals

void entityAdded (QString, Entity *)
 

Public Member Functions

 MessageControl (Project *project)
 Constructor. More...
 
 ~MessageControl ()
 Destructor.
 

Detailed Description

Manages the messages sent from plugins to NCL Composer Core and vice-versa.

Definition at line 39 of file MessageControl.h.

Constructor & Destructor Documentation

composer::core::MessageControl::MessageControl ( Project project)

Constructor.

Parameters
project

Definition at line 22 of file MessageControl.cpp.

Member Function Documentation

void composer::core::MessageControl::anonymousAddEntity ( QString  type,
QString  parentEntityId,
QMap< QString, QString > &  atts,
bool  force = false,
bool  notifyPlugins = true 
)
slot

This message is here, mainly for test purposes.

It allows anyone send a addEntityMessage, even when it is not a plugin.

Definition at line 37 of file MessageControl.cpp.

Here is the call graph for this function:

void composer::core::MessageControl::anonymousChangeEntity ( QString  entityId,
QMap< QString, QString > &  atts,
bool  force = false,
bool  notifyPlugins = true 
)
slot

This message is here, mainly for test purposes.

It allows anyone send an addEntityMessage, even if it is not a plugin.

Definition at line 110 of file MessageControl.cpp.

Here is the call graph for this function:

void composer::core::MessageControl::anonymousRemoveEntity ( QString  entityUniqueId,
bool  force = false,
bool  notifyPlugins = true 
)
slot

This message is here, mainly for test purposes.

It allows anyone send a removeEntityMessage, even if it is not a plugin.

Definition at line 86 of file MessageControl.cpp.

Here is the call graph for this function:

void composer::core::MessageControl::anonymousUpdateFromModel ( )
slot

This message is here, mainly for test purposes.

It allows anyone send a addEntityMessage, even if it is not a plugin.

Definition at line 126 of file MessageControl.cpp.

void composer::core::MessageControl::onAddEntity ( QString  type,
QString  parentEntityId,
QMap< QString, QString > &  atts,
bool  force 
)
slot
Parameters
type
parentEntityId
atts
force

Definition at line 146 of file MessageControl.cpp.

Here is the call graph for this function:

void composer::core::MessageControl::onEditEntity ( Entity entity,
QMap< QString, QString >  atts,
bool  force 
)
slot
Parameters
entity
atts
force
Todo:
Call validator to check

Definition at line 183 of file MessageControl.cpp.

Here is the call graph for this function:

void composer::core::MessageControl::onRemoveEntity ( Entity entity,
bool  force 
)
slot
Parameters
\paramforce
Todo:
Change the following code to signal/slots with Project.
Todo:
remember to change, the append should come from the plugin.
Todo:
error on casting management

Definition at line 213 of file MessageControl.cpp.

Here is the call graph for this function:


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