Changeset 14
- Timestamp:
- 10/27/09 19:39:24 (15 years ago)
- Location:
- trunk/yao/src/interface/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yao/src/interface/src/Include/FenetrePrincipale.h
r12 r14 30 30 #include <QWorkspace> 31 31 32 class FenetrePrincipale : public QMainWindow , public{32 class FenetrePrincipale : public QMainWindow { 33 33 Q_OBJECT 34 34 -
trunk/yao/src/interface/src/NouveauProjet.cpp
r13 r14 40 40 connect(m_creerRepertoireProjet, SIGNAL(clicked()), this, SLOT(creerRepertoireProjet())); 41 41 connect(m_creerRepertoireProjet, SIGNAL(clicked()), this, SLOT(close())); 42 connect(m_creerRepertoireProjet, SIGNAL(clicked()), this, SLOT(CreatHatFile()));42 // connect(m_creerRepertoireProjet, SIGNAL(clicked()), this, SLOT(CreatHatFile())); 43 43 44 44 … … 51 51 void NouveauProjet::CreatHatFile() { 52 52 53 //string filename = setNomProjet(ligneNomRep->text()); 54 55 //string filename = "hat.h"; // The hat file genereted automatically. 56 //string filename = getNomProjet() + ".h"; 57 string filename = getNomProjet().toStdString() + ".h"; 58 //creerFichier(getNomProjet(), ".h"); 59 ofstream hat(filename.c_str(), ios::out | ios::binary); 60 if(!hat.is_open()) 61 throw ofstream::failure("couldn't create " + filename); 62 63 hat << "/*****************************************************************************************************" <<endl; 64 hat << "* Fichier chapeau généré automatiquement par Visual YAO." << endl; 65 hat << "* Le fichier chapeau permet à l'utilisateur d'intervenir pendant l'exécution de l'application YAO." << endl; 53 54 // The hat file genereted automatically. 55 string filename = "projects/" + getNomProjet().toStdString() + "/" + getNomProjet().toStdString() + ".h"; 56 57 ofstream hat(filename.c_str(), ios::out | ios::binary); 58 if(!hat.is_open()) 59 throw ofstream::failure("couldn't create " + filename); 60 61 hat << "/*****************************************************************************************************" << endl; 62 hat << "* Fichier chapeau généré automatiquement par Visual YAO." << endl; 63 hat << "* Le fichier chapeau permet à l'utilisateur d'intervenir pendant l'exécution de l'application YAO." << endl; 66 64 hat << "* On peut déclarer des variables globales et des fonctions spécifiques de l'application définies *" << endl; 67 65 hat << "* par l'utilisateur dans le fichier description (dans ce cas là on ajoute aussi les prototypes. *" << endl; … … 134 132 { rep.mkdir(getNomProjet()); 135 133 creerFichier(getNomProjet(), ".d"); 136 creerFichier(getNomProjet(), ".h"); 134 CreatHatFile(); 135 // creerFichier(getNomProjet(), ".h"); 137 136 creerFichier(getNomProjet(), ".txt"); 138 137
Note: See TracChangeset
for help on using the changeset viewer.