OSDN Git Service

[denncoCreator] Implemented change cell and cell code type command functionality.
[dennco/denncoCreator.git] / Source / dccell.h
index 3899bb9..d21894a 100644 (file)
@@ -78,6 +78,7 @@ public:
     DCVPageComponent *  getVComponent() const { return d_vComponent; }
     DCVCPage*           getPageBelonging() const;
     DCCellCode*         getCellCode() const { return d_cellCode; }
+    bool                getIsCellCodeClassAssgined() const;
     DCAxon*             getAxon() const;
     std::string         getReceptorName(DCReceptor *receptor) const;
     DCReceptor*         getReceptor(const QString& receptorName);
@@ -125,6 +126,13 @@ public:
      */
     virtual DCReceptor* createReceptor(const QString &receptorName);
 
+    /**
+     * Change cell code type.
+     * change of cell's own type attribute only take effort when no cell code class is assined to this cell.
+     * In the case a cell code class is assiend to this cell, type of this cell rely on the cell code class's API type.
+     */
+    void                changeType(const QString& type);
+
 signals:
     void    cellCodeChanged();