- Timestamp:
- 10/15/10 00:47:25 (14 years ago)
- Location:
- trunk/yao/src/interface/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yao/src/interface/src/MainWindow.cpp
r444 r445 833 833 throw ofstream::failure("couldn't create " + filename); 834 834 description << "#-------------------------------------------------------------------------------------------------" << endl; 835 description << "#---Fichier de description généré par visual Yao le " << date->date().toString().toStdString()<< endl;835 description << "#---Fichier " + filename + ".d généré par visual Yao le " << date->date().toString().toStdString() << endl; 836 836 description << "#-------------------------------------------------------------------------------------------------" << endl; 837 837 … … 889 889 description << "#CONNECTIONS name range[0] FROM! name range[1] range_i ( range_jkt )? -------------------------" << endl; 890 890 for (Table<Connection>::iterator it = theConnectionTable.begin(); it != theConnectionTable.end(); it++) 891 description << "ctin " << it->getInModule() << " " << it->getIn() << " " << it->getOutModule() << " " << it->getOut() << it->getI()<< endl;891 description << "ctin " << it->getInModule() << " " << it->getIn() << " " << it->getOutModule() << " " << it->getOut() /*<< it->getI() */<< endl; 892 892 893 893 description << endl; … … 908 908 909 909 description.close(); 910 //QMessageBox::about(this, "Avis", "Un fichier de description portant le nom du projet en cours vient d'être généré.");910 QMessageBox::about(this, "Avis", "Le fichier <B>"+ QString(filename.c_str()) + ".d</B> a été généré avec succÚs."); 911 911 } 912 912 … … 924 924 date->setDate(QDate::currentDate()); 925 925 926 QMessageBox::about(this, "Avis", "Fichier d'instruction généré avec succÚs."); 926 try 927 { 928 filename = getProjectName(); 929 filepath = destination + filename + "/" + filename + ".i"; //"projects/test/test.d"; 930 ofstream instruction(filepath.c_str(), ios::out | ios::binary | ios::trunc); 931 932 if(!instruction.is_open()) 933 throw ofstream::failure("couldn't create " + filename); 934 instruction << "#-------------------------------------------------------------------------------------------------" << endl; 935 instruction << "#---Fichier " + filename + ".i généré par visual Yao le " << date->date().toString().toStdString() << endl; 936 instruction << "#-------------------------------------------------------------------------------------------------" << endl; 937 938 instruction.close(); 939 940 QMessageBox::about(this, "Avis", "Le fichier " +QString(getProjectName().c_str())+".i a été généré avec succÚs."); 941 942 } 943 944 catch (...) 945 { 946 947 QMessageBox::critical(this, "Erreur", "Erreur dans la generation du fichier .i"); 948 } 949 927 950 928 951 } -
trunk/yao/src/interface/src/ModulWindow.cpp
r419 r445 217 217 else 218 218 { 219 QMessageBox::about(this, "Avis", " Un fichier .h portant le nom du module vient d'etre cree.");219 QMessageBox::about(this, "Avis", "Le fichier "+ m_modulNameLine->text()+".h est crée."); 220 220 //return; // Arrêt de la méthode 221 221
Note: See TracChangeset
for help on using the changeset viewer.