]> Creatis software - crea.git/commitdiff
Feature #1711
authorDaniel Felipe Gonzalez <daniel.gonzalez@creatis.insa-lyon.fr>
Thu, 31 Jan 2013 17:07:39 +0000 (18:07 +0100)
committerDaniel Felipe Gonzalez <daniel.gonzalez@creatis.insa-lyon.fr>
Thu, 31 Jan 2013 17:07:39 +0000 (18:07 +0100)
CreaDevManager application implementation

- Fixed new GUI application main file not recognized bug.
- Fixed new GUI application description view not changed.

lib/creaDevManagerLib/CDMUtilities.cpp
lib/creaDevManagerLib/modelCDMApplication.cpp

index 09e25f31c06d8a64f1ea9896d214a145f94e1a4d..ac1b5322159a1930f9bf07bc54559499c76d4cc3 100644 (file)
@@ -316,7 +316,7 @@ namespace CDMUtilities
   std::string stringify(const std::string& line)
   {
        std::string res;
-       for (int i = 0; i < line.size(); i++)
+       for (int i = 0; i < (int)(line.size()); i++)
        {
          if(line[i] == '\\')
            res.push_back('\\');
index dcfb21e84ff0d86df300b3964e0183dff3946e92..7083c4738cb9e778fc26d04cf9bb14d9f4b676d7 100644 (file)
@@ -363,7 +363,7 @@ const bool modelCDMApplication::Refresh(std::string*& result)
                               std::getline(fileStream,word,'(');
                               std::vector<std::string> wordBits;
                               CDMUtilities::splitter::split(wordBits,word," \n",CDMUtilities::splitter::no_empties);
-                              if (wordBits[wordBits.size() - 1] == "main")
+                              if (wordBits[wordBits.size() - 1] == "main" || wordBits[wordBits.size() - 1] == "IMPLEMENT_APP")
                                 {
                                   this->mainFile = dynamic_cast<modelCDMFile*>(children[i]);
                                 }
@@ -389,7 +389,7 @@ const bool modelCDMApplication::Refresh(std::string*& result)
                           std::getline(fileStream,word,'(');
                           std::vector<std::string> wordBits;
                           CDMUtilities::splitter::split(wordBits,word," \n",CDMUtilities::splitter::no_empties);
-                          if (wordBits[wordBits.size() - 1] == "main")
+                          if (wordBits[wordBits.size() - 1] == "main" || wordBits[wordBits.size() - 1] == "IMPLEMENT_APP")
                             {
                               this->mainFile = file;
                             }