OSDN Git Service

[denncoCreator] Implemented change cell and cell code type command functionality.
[dennco/denncoCreator.git] / Source / command / dceditcommands.h
index 6c91521..6cf4fe2 100644 (file)
@@ -169,6 +169,20 @@ public:
 
 //------------------------------------------
 
+class DCChangeCellCodeClassTypeCommand : public DCCommand
+{
+    DCCellCode* d_cellCode;
+    QString     d_type;
+
+public:
+    DCChangeCellCodeClassTypeCommand(const void *requester, DCCreator *creator, DCCellCode* cellCode, const QString& newType);
+    virtual ~DCChangeCellCodeClassTypeCommand() {}
+    void undo();
+    void redo();
+};
+
+//------------------------------------------
+
 class DCRemoveCellCodeClassCommand : public DCCommand
 {
     DCContainer         *d_container;
@@ -201,6 +215,20 @@ public:
 
 //------------------------------------------
 
+class DCChangeCellTypeCommand : public DCCommand
+{
+    DCCell      *d_cell;
+    QString     d_type;
+
+public:
+    DCChangeCellTypeCommand(const void *requester, DCCreator *creator, DCCell *cell, const QString& newType);
+    virtual ~DCChangeCellTypeCommand() {}
+    void undo();
+    void redo();
+};
+
+//------------------------------------------
+
 class DCRenameCellCommand : public DCCommand
 {
     DCCell      *d_cell;