OSDN Git Service

[denncoCreator] Implemented change cell and cell code type command functionality.
[dennco/denncoCreator.git] / Source / utils / dccommandutil.cpp
index 53e288f..7abdd3f 100644 (file)
@@ -105,12 +105,24 @@ void DCCommandUtil::postAddCellCodeClassCommand(const void *requester, DCCreator
 }
 
 //static
+void DCCommandUtil::postChangeCellCodeClassTypeCommand(const void *requester, DCCreator *creator, DCCellCode *cellCode, const QString &newType)
+{
+    postEvent(creator, new DCChangeCellCodeClassTypeCommand(requester, creator, cellCode, newType));
+}
+
+//static
 void DCCommandUtil::postAddCellCommand(const void *requester, DCCreator *creator, DCContainer *container, const QString &containerBasedPath, const QString &name, const QString &type)
 {
     postEvent(creator, new DCAddCellCommand(requester, creator, container, containerBasedPath, name, type));
 }
 
 //static
+void DCCommandUtil::postChangeCellTypeCommand(const void *requester, DCCreator *creator, DCCell *cell, const QString &newType)
+{
+    postEvent(creator, new DCChangeCellTypeCommand(requester, creator, cell, newType));
+}
+
+//static
 void DCCommandUtil::postRemoveCellsCommand(const void *requester, DCCreator *creator, DCContainer *container, const QList<DCCell*> &cells)
 {
     postEvent(creator, new DCRemoveCellCommand(requester, creator, container, cells));