- Timestamp:
- 10/03/10 17:56:16 (14 years ago)
- Location:
- trunk/yao/src/interface/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yao/src/interface/src/MainWindow.cpp
r436 r437 36 36 MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), m_constantWindow(NULL), m_hatnameWindow(NULL), m_contextWindow(NULL), m_trajectoryWindow(NULL), m_spaceWindow(NULL), m_operaWindow(NULL), m_netwardWindow(NULL), m_modulWindow(NULL), m_ctinWindow(NULL), m_orderWindow(NULL), m_insertFCTWindow(NULL), m_newProjectWindow(NULL), m_newProjectName(""), theConstantTablePt(theConstantTable), contextTest(false) 37 37 { 38 38 39 setWindowTitle(" Visual YAO "); //Gives a title to the mainwindow. 39 40 pt_espace = new QWorkspace; //Crée un espace de travail. Ici, ça serait notre zone centrale … … 118 119 menuExecution = menuBar()->addMenu("&Exécution"); 119 120 menuExecution->addAction(actionGenerationD); 121 menuExecution->addAction(actionGenerationI); 120 122 menuExecution->addAction(actionCompilation); 121 123 menuExecution->addAction(actionExecution); … … 131 133 void MainWindow::createActions() { 132 134 135 136 QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8")); 133 137 // Les actions du menu fichier 134 138 actionNouveauProjet = new QAction(tr("&Nouveau projet"), this); … … 187 191 //actionFichierHat = new QAction(tr("Fichier (.h)"), this); 188 192 //actionModule = new QAction(tr("Modul"), this); 189 actionFichierInstruction = new QAction(tr("Fichier instruction (.i)"), this);193 actionFichierInstruction = new QAction(tr("Fichier d'instruction (.i)"), this); 190 194 connect(actionFichierInstruction, SIGNAL(triggered()), this, SLOT(instructionFileManager())); 191 195 actionGrapheModulaire = new QAction(tr("Graphe modulaire"), this); … … 207 211 208 212 // Les actions du menu Execution 209 actionGenerationD = new QAction(t r("Generer le fichier .d"), this);213 actionGenerationD = new QAction(this); 210 214 actionGenerationD->setEnabled(false); 215 actionGenerationD->setText("Générer le fichier .d"); 211 216 212 217 connect(actionGenerationD, SIGNAL(triggered()), this, SLOT(generateDFile())); 213 218 //connect(actionGenerationD, SIGNAL(triggered()), this, SLOT(information())); 214 219 220 actionGenerationI = new QAction(this); 221 //actionGenerationI->setEnabled(false); 222 actionGenerationI->setText("Générer le fichier .i"); 223 connect(actionGenerationI, SIGNAL(triggered()), this, SLOT(generateIFile())); 224 225 215 226 actionCompilation = new QAction(tr("Compilation"), this); 216 227 actionCompilation->setEnabled(false); 217 actionExecution = new QAction(t r("Execution"), this);228 actionExecution = new QAction(this); 218 229 actionExecution->setEnabled(false); 230 actionExecution->setText("Exécution"); 219 231 220 232 // Les actions du menu Configuration … … 903 915 } 904 916 917 /**************************************** Implementation of the method generateIFile() (SLOT) ****************************************************/ 918 void MainWindow::generateIFile(string destination) { 919 920 date = new QDateEdit; 921 date->setDate(QDate::currentDate()); 922 923 QMessageBox::about(this, "Avis", "Le fichier d'instruction vient d'être généré."); 924 925 } 905 926 /********************************************* Implementation of the method instructionFileManager() *********************************************/ 906 927 void MainWindow::instructionFileManager() { -
trunk/yao/src/interface/src/include/MainWindow.hpp
r436 r437 7 7 #include <sstream> 8 8 #include <QDateEdit> 9 #include <QTextCodec> 9 10 10 11 #include <iostream> … … 107 108 void desactivateToolBarButtons(); 108 109 void generateDFile(std::string destination = "projects/"); 110 void generateIFile(std::string destination = "projects/"); 109 111 void instructionFileManager(); 110 112 void montrerActionCompilation(); … … 197 199 // Les actions du menu Execution 198 200 QAction *actionGenerationD; 201 QAction *actionGenerationI; 199 202 QAction *actionCompilation; 200 203 QAction *actionExecution;
Note: See TracChangeset
for help on using the changeset viewer.