]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/CDMUtilities.h
Feature #1711
[crea.git] / lib / creaDevManagerLib / CDMUtilities.h
index 16630d29e3e64793d2e5ac3897531ef68f8773d0..21f66d8d32ef1b7f5f88d9c9d2e4bd07495d5aaf 100644 (file)
 
 namespace CDMUtilities
 {
+  //path slash
+  #ifdef _WIN32
+    // ------ Windows
+    static std::string SLASH = "\\";
+  #elif __APPLE__
+    // ------ Apple
+    static std::string SLASH = "/";
+  #else
+    static std::string SLASH = "/";
+  #endif
+
   //text editor program
 #ifdef _WIN32
   // ------ Windows
@@ -62,6 +73,17 @@ namespace CDMUtilities
   static std::string FILE_EXPLORER = "nautilus";
 #endif
 
+  //terminal program
+  #ifdef _WIN32
+    // ------ Windows
+    //TODO: implementation for windows
+  #elif __APPLE__
+    // ------ Apple
+    //TODO: implementation for apple
+  #else
+    static std::string TERMINAL = "gnome-terminal";
+  #endif
+
 
   struct splitter
   {
@@ -80,6 +102,11 @@ namespace CDMUtilities
 
   int openTextEditor(const std::string& file = "");
   int openFileExplorer(const std::string& file = "");
+  int openFileWithCommand(const std::string& file, const std::string& command);
+  int openBBEditor();
+  int openCreaToolsTools();
+  int openTerminal(const std::string& command = "");
+  bool createEmptyClass(const std::string& name, const std::string& path);
 };
 
 #endif /* CDMUTILITIES_H_ */