OSDN Git Service

[denncoCreator] reworked the code editor. Its now opened on a separate window.
[dennco/denncoCreator.git] / Source / dccellcode.cpp
index 89dcc9e..7a1cfaa 100644 (file)
@@ -36,9 +36,9 @@ QString DCCellCode::getOwnScript() const
     return d_container->readCellCodeScriptFromFile(this);
 }
 
-void DCCellCode::saveScript(const QString &script)
+bool DCCellCode::saveScript(const QString &script)
 {
-    d_container->saveClassScriptToWorkFile(this, script.toStdString());
+    return d_container->saveClassScriptToWorkFile(this, script.toStdString());
 }
 
 DCVCPage* DCCellCode::getPageBelonging() const
@@ -59,3 +59,8 @@ void DCCellCode::changePath(const QString& newPath)
     mFQNName = fqnString.toStdString();
 }
 
+void DCCellCode::changeType(const QString &newType)
+{
+    mCellAPIName = newType.toStdString();
+}
+