Changeset 445 for trunk/yao


Ignore:
Timestamp:
10/15/10 00:47:25 (14 years ago)
Author:
yerima
Message:

Some updates in the QDialogBox and the generating process (.d and .i) in visual Yao.

Location:
trunk/yao/src/interface/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/yao/src/interface/src/MainWindow.cpp

    r444 r445  
    833833                                throw ofstream::failure("couldn't create " + filename); 
    834834                        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; 
    836836                        description << "#-------------------------------------------------------------------------------------------------" << endl; 
    837837 
     
    889889                        description << "#CONNECTIONS name range[0] FROM! name range[1] range_i ( range_jkt )? -------------------------" << endl; 
    890890                                 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;  
    892892 
    893893                                        description << endl; 
     
    908908 
    909909                        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."); 
    911911                } 
    912912 
     
    924924                 date->setDate(QDate::currentDate()); 
    925925 
    926                         QMessageBox::about(this, "Avis", "Fichier d'instruction généré avec succÚs."); 
     926try  
     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 
    927950 
    928951} 
  • trunk/yao/src/interface/src/ModulWindow.cpp

    r419 r445  
    217217                else 
    218218                        { 
    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."); 
    220220                                 //return; // Arrêt de la méthode 
    221221 
Note: See TracChangeset for help on using the changeset viewer.