Changeset 436 for trunk/yao


Ignore:
Timestamp:
10/03/10 16:21:45 (14 years ago)
Author:
yerima
Message:

The instruction window's graphical interface appear in the the visual Yao's workspace after clicking on the appropriate button in edition bar.

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

Legend:

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

    r435 r436  
    3636MainWindow::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)     
    3737{ 
    38         InstructionWindow *in = new InstructionWindow ; 
    39         in->show();      
    4038        setWindowTitle(" Visual YAO ");         //Gives a title to the mainwindow. 
    4139        pt_espace = new QWorkspace;                             //Crée un espace de travail. Ici, ça serait notre zone centrale 
     
    105103                menuFichier->addAction(actionSortieProjet); 
    106104        menuEdition = menuBar()->addMenu("&Edition"); 
    107                 menuEdition->addAction(actionFichierDescription); 
    108                 menuEdition->addAction(actionFichierHat); 
     105                //menuEdition->addAction(actionFichierDescription); 
     106                //menuEdition->addAction(actionFichierHat); 
    109107                //nouveau->addAction(actionModule); 
    110108                menuEdition->addAction(actionFichierInstruction); 
    111109                menuEdition->addAction(actionGrapheModulaire); 
    112                 menuEdition->addAction(actionInfosProjet); 
     110                //menuEdition->addAction(actionInfosProjet); 
    113111 
    114112        menuAffichage = menuBar()->addMenu("&Affichage"); 
     
    183181 
    184182     // Les actions du menu Edition 
    185         actionFichierDescription = new QAction(tr("Fichier de description (.d)"), this); 
    186  
    187                 connect(actionFichierDescription, SIGNAL(triggered()), this, SLOT(generateDFile())); 
    188  
    189         actionFichierHat = new QAction(tr("Fichier  (.h)"), this); 
    190         //actionModule = new QAction(tr("Modul"), this); 
     183        //actionFichierDescription = new QAction(tr("Fichier de description (.d)"), this); 
     184 
     185                //connect(actionFichierDescription, SIGNAL(triggered()), this, SLOT(generateDFile())); 
     186 
     187        //actionFichierHat = new QAction(tr("Fichier  (.h)"), this); 
     188                //actionModule = new QAction(tr("Modul"), this); 
    191189        actionFichierInstruction = new QAction(tr("Fichier instruction (.i)"), this); 
     190                connect(actionFichierInstruction, SIGNAL(triggered()), this, SLOT(instructionFileManager())); 
    192191        actionGrapheModulaire = new QAction(tr("Graphe modulaire"), this); 
    193         actionInfosProjet = new QAction(tr("Edition infos projet"), this); 
     192        //actionInfosProjet = new QAction(tr("Edition infos projet"), this); 
    194193 
    195194     // Les actions du menu Affichage 
     
    904903} 
    905904 
     905/********************************************* Implementation of the method instructionFileManager() *********************************************/ 
     906void MainWindow::instructionFileManager() { 
     907 
     908         
     909        InstructionWindow *iw = new InstructionWindow ; 
     910        espace.addWindow(iw)->move(0, 0);  
     911        iw->show();      
     912 
     913} 
    906914/********************************************* Implementation of the method initializeWindow(int anInt) *********************************************/ 
    907915void MainWindow::initializeWindow(int anInt) { 
  • trunk/yao/src/interface/src/include/MainWindow.hpp

    r435 r436  
    107107                        void desactivateToolBarButtons(); 
    108108                        void generateDFile(std::string destination = "projects/"); 
     109                        void instructionFileManager(); 
    109110                        void montrerActionCompilation(); 
    110111                        void montrerActionGenererD(); 
  • trunk/yao/src/interface/src/ui_/instructionwindow.ui

    r435 r436  
    9090      <widget class="QLabel" name="m_fonctionParameterLabel"> 
    9191       <property name="text"> 
    92         <string>ParamÚtre:</string> 
     92        <string>ParamÚtre(s):</string> 
    9393       </property> 
    9494      </widget> 
  • trunk/yao/src/interface/ui_newprojectwindow.h

    r397 r436  
    22** Form generated from reading UI file 'newprojectwindow.ui' 
    33** 
    4 ** Created: Tue Aug 3 14:31:25 2010 
    5 **      by: Qt User Interface Compiler version 4.6.3 
     4** Created: Sun Oct 3 13:46:54 2010 
     5**      by: Qt User Interface Compiler version 4.6.2 
    66** 
    77** WARNING! All changes made in this file will be lost when recompiling UI file! 
Note: See TracChangeset for help on using the changeset viewer.