]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/CDMUtilities.cpp
Feature #1711
[crea.git] / lib / creaDevManagerLib / CDMUtilities.cpp
index d9ef9b7fff10d5504245a47aa2c825575e2fb3ad..29a277fa2646cabfea5264d4323012e1295dbec2 100644 (file)
@@ -105,13 +105,40 @@ namespace CDMUtilities
   }
 
   int openFileExplorer(const std::string& file)
-    {
-      std::string command = FILE_EXPLORER;
+  {
+    std::string command = FILE_EXPLORER;
+
+    if(file != "")
+      command += " \"" + file + "\" &";
+
+    return system(command.c_str());
+  }
 
-      if(file != "")
-        command += " \"" + file + "\" &";
+  int openFileWithCommand(const std::string& file, const std::string& command)
+  {
+    std::string comm = command;
+    if(file != "")
+      comm += " \"" + file + "\" &";
 
-      return system(command.c_str());
-    }
+    return system(comm.c_str());
+  }
+
+  int openBBEditor()
+  {
+    std::string comm = "bbEditor &";
+    return system(comm.c_str());
+  }
+
+  int openCreaToolsTools()
+  {
+    std::string comm = "creaTools.sh &";
+    return system(comm.c_str());
+  }
+
+  int openTerminal()
+  {
+    std::string comm = TERMINAL + "&";
+    return system(comm.c_str());
+  }
 
 }