Changeset 216


Ignore:
Timestamp:
02/25/10 17:47:46 (14 years ago)
Author:
yerima
Message:

MainWindow? is being include in MainWindowController?'s code.

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

Legend:

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

    r213 r216  
    1616#include <QApplication> 
    1717#include <QTextCodec> 
    18 #include "src/Include/MainWindow.hpp" 
    19 #include "BasicWindow.hpp" 
     18#include "src/Include/MainWindowController.hpp" 
     19//#include "BasicWindow.hpp" 
    2020//#include <iostream> 
    2121 
     
    2929        QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8")); 
    3030 
    31                 MainWindow *fen1 = new MainWindow; fen1->show(); 
     31                //MainWindowController *fen1 = new MainWindowController; fen1->show(); 
     32                MainWindowController & m_mwc = MainWindowController::getInstance();  
    3233                //BaseWindow bw; 
    3334                //bw.show(); 
     
    3637                return app.exec(); 
    3738 
    38                 fen1->~MainWindow(); 
     39                //fen1->~MainWindow(); 
    3940} 
    4041 
  • trunk/yao/src/interface/src/Include/MainWindow.hpp

    r214 r216  
    11#ifndef MAINWINDOW_HPP 
    22#define MAINWINDOW_HPP 
     3#include "../../../help/Enforcer.hpp" 
     4#include "../../../help/FilePath.hpp" 
     5#include <string> 
    36 
     7#include "FilesViewer.hpp" 
    48#include <QtGui> 
     9#include "CtinWindow.hpp" 
     10#include "ConstantWindow.hpp" 
     11#include "FilesViewer.hpp" 
     12#include "HatNameWindow.hpp" 
     13#include "InsertFCTWindow.hpp" 
     14#include "ModulWindow.hpp" 
     15#include "NetwardWindow.hpp" 
     16#include "NewProjectWindow.hpp" 
     17#include "SpaceController.hpp" 
     18#include "SpaceWindow.hpp" 
     19#include "TrajWindow.hpp" 
     20#include "OperaWindow.hpp" 
     21#include "OptionWindow.hpp" 
     22#include "OrderWindow.hpp" 
     23#include "../YAOObjects/Table.hpp" 
     24 
    525#include <QMainWindow> 
    626#include <QWorkspace> 
     
    828#include <QTabWidget> 
    929#include <QWidget> 
    10 #include "MainWindowController.hpp" 
     30//#include "MainWindowController.hpp" 
    1131 
    1232#include <QCloseEvent> 
     
    3050                    MainWindow(QWidget *parent = 0); 
    3151                         
    32                     void actionsBarreOutils(QWorkspace *espace, MainWindowController mwc); 
    33                     void creerActions(MainWindowController mwc); 
     52                    void actionsBarreOutils(QWorkspace *espace); 
     53                    void creerActions(); 
    3454                    void creerBarreOutils(); 
    3555                    void creerMenus(); 
    36                     void creerRepertoire(); 
    37                     void genererConstant(); 
    38                     void genererHat(); 
    39                     void genererSpace(); 
    40                     void genererCtin(); 
    41                     bool okToContinue(); 
    42                     bool maybeSave(); 
    43                     ~MainWindow(); 
     56                   // void creerRepertoire(); 
     57                   // void genererConstant(); 
     58                   // void genererHat(); 
     59                   // void genererSpace(); 
     60                   // void genererCtin(); 
     61                   // bool okToContinue(); 
     62                   // bool maybeSave(); 
     63                   // ~MainWindow(); 
    4464        protected : 
    45                    void closeEvent(QCloseEvent *event); 
     65                   //void closeEvent(QCloseEvent *event); 
    4666 
    4767        public slots: 
     
    4969                    void cacherBarreOutils(); 
    5070                    void desactiveBoutonsBarreOutils(); 
    51                     void appelGenererD(); 
    52                     void montrerActionCompilation(); 
     71                    //void appelGenererD(); 
     72                    //void montrerActionCompilation(); 
    5373                    void montrerActionGenererD(); 
    5474                    void createNewProject(); 
    55                     void callHatModel(); 
     75                    //void callHatModel(); 
    5676                    void changeColorConstantButton(); 
    5777                    void changeColorHatButton(); 
     
    6484                    void changeColorNetwardButton(); 
    6585                    void changeColorInsertFCTButton(); 
     86                 
    6687                    void enConstruction(); 
    67  
    6888        private : 
    6989                    // Les attributs des menus 
     
    7999                        QAction *actionFichierHat; 
    80100 
    81                         //QAction *actionModule; 
     101                        QAction *actionModule; 
    82102                        QAction *actionFichierInstruction; 
    83103                        QAction *actionGrapheModulaire; 
     
    93113 
    94114                    // Les actions du menu edition 
    95                     QAction *actionAnnuler; 
    96                     QAction *actionRevenir; 
    97                     QAction *actionCouper; 
    98                     QAction *actionCopier; 
    99                     QAction *actionColler; 
    100                     QAction *actionSelectionnerTout; 
     115                    //QAction *actionAnnuler; 
     116                    //QAction *actionRevenir; 
     117                    //QAction *actionCouper; 
     118                    //QAction *actionCopier; 
     119                    //QAction *actionColler; 
     120                    //QAction *actionSelectionnerTout; 
    101121 
    102122                    // Les actions du menu affichage 
     
    105125                    QAction *actionCacherFenetreProjet; 
    106126                    QAction *actionCacherFenetreDialog; 
    107                     QAction *actionPleinEcran; 
     127                    //QAction *actionPleinEcran; 
    108128 
    109129                    // Les actions du menu Execution 
     
    152172                    NewProjectWindow *copynp; 
    153173                    FilesViewer *fv; 
    154                     char* copyProjectName; 
    155                     std::vector<std::string> theHeaderList; 
    156                     std::string filename; 
    157                     std::string filepath; 
     174                    //char* copyProjectName; 
     175                    //std::vector<std::string> theHeaderList; 
     176                    //std::string filename; 
     177                    //std::string filepath; 
    158178                    //!< les onglets  
    159179                     QTabWidget *tabWidget; 
  • trunk/yao/src/interface/src/Include/MainWindowController.hpp

    r214 r216  
    22#define MAINWINDOWCONTROLLER_HPP 
    33 
     4#include "../../../help/Enforcer.hpp" 
     5#include "../../../help/FilePath.hpp" 
    46#include <string> 
    5 #include "../../../help/FilePath.hpp" 
    6 #include "../../../help/Enforcer.hpp" 
    77 
     8#include "CtinWindow.hpp" 
    89#include "ConstantWindow.hpp" 
     10#include "FilesViewer.hpp" 
    911#include "HatNameWindow.hpp" 
    10 #include "OptionWindow.hpp" 
     12#include "InsertFCTWindow.hpp" 
     13#include "ModulWindow.hpp" 
     14#include "NetwardWindow.hpp" 
     15#include "NewProjectWindow.hpp" 
     16#include "SpaceController.hpp" 
     17#include "SpaceWindow.hpp" 
    1118//#include "TrajController.hpp" 
    1219#include "TrajWindow.hpp" 
    13 #include "SpaceController.hpp" 
    14 #include "SpaceWindow.hpp" 
    1520#include "OperaWindow.hpp" 
    16 #include "NetwardWindow.hpp" 
    17 #include "ModulWindow.hpp" 
    18 #include "CtinWindow.hpp" 
     21#include "OptionWindow.hpp" 
    1922#include "OrderWindow.hpp" 
    20 #include "InsertFCTWindow.hpp" 
    21 #include "FilesViewer.hpp" 
    22 #include "NewProjectWindow.hpp" 
    2323#include "../YAOObjects/Table.hpp" 
     24#include "MainWindow.hpp" 
    2425 
    2526 
     
    2930 
    3031                static MainWindowController & getInstance(); 
     32                ConstantWindow *getConstant(); 
    3133                void setConstant(); 
    32                 ConstantWindow *getConstant(); 
     34 
     35                void setFileListController(std::string fileController); 
     36                std::string getProjectNameFromMWC(); 
    3337 
    3438                void setProjectNameInMWC(std::string projectName); 
    35                 std::string getProjectNameFromMWC(); 
    3639 
    37                 void setFileListController(std::string fileController); 
    3840                void setTheHeaderList(string theHeaderListSring); 
    3941 
     
    4143                void setFileListController(); 
    4244 
     45                CtinWindow *getCtin(); 
    4346                HatNameWindow *getHatName(); 
     47                InsertFCTWindow *getInsertFCT(); 
     48                ModulWindow *getModul(); 
     49                NetwardWindow *getNetward(); 
     50                OrderWindow *getOrder(); 
     51                OperaWindow *getOpera(); 
    4452                OptionWindow *getOption(); 
     53                SpaceWindow *getSpace(); 
    4554                TrajWindow *getTraj(); 
    46                 SpaceWindow *getSpace(); 
    47                 OperaWindow *getOpera(); 
    48                 NetwardWindow *getNetward(); 
    49                 ModulWindow *getModul(); 
    50                 CtinWindow *getCtin(); 
    51                 OrderWindow *getOrder(); 
    52                 InsertFCTWindow *getInsertFCT(); 
     55 
    5356                void getNewProjectInstance(); 
    5457                void getNP(); 
     
    6265 
    6366                MainWindowController() ;//{} 
    64                 std::string m_projectNameInMWC;  // MWC = MainWindowController 
     67 
    6568                ConstantWindow *m_Constant; 
     69                CtinWindow *m_ctin; 
     70                FilesViewer *m_directoryViewer; 
    6671                HatNameWindow *m_hat; 
     72                InsertFCTWindow *m_insertFCT; 
     73                ModulWindow *m_modul; 
     74                NetwardWindow *m_netward; 
     75                NewProjectWindow *np; 
     76                OrderWindow *m_order; 
     77                OperaWindow *m_opera; 
    6778                OptionWindow *m_option; 
    6879                TrajWindow *m_traj; 
     80                SpaceController *m_spc; 
    6981                SpaceWindow *m_space; 
    70                 SpaceController *m_spc; 
    71                 OperaWindow *m_opera; 
    72                 NetwardWindow *m_netward; 
    73                 ModulWindow *m_modul; 
    74                 CtinWindow *m_ctin; 
    75                 OrderWindow *m_order; 
    76                 InsertFCTWindow *m_insertFCT; 
    77                 FilesViewer *m_directoryViewer; 
    78                 NewProjectWindow *np; 
     82                std::string m_projectNameInMWC;  // MWC = MainWindowController 
     83 
    7984                std::vector<std::string> m_theHeaderList; 
    8085                yao::Table<yao::Trajectory> m_theTrajectoryTable; 
  • trunk/yao/src/interface/src/MainWindow.cpp

    r214 r216  
    3030        espace = new QWorkspace;                                //Crée un espace de travail. Ici, ça serait notre zone centrale 
    3131         
    32         MainWindowController & m_mwc = MainWindowController::getInstance();      
     32//      MainWindowController & m_mwc = MainWindowController::getInstance();      
    3333 
    3434        //copyProjectName = m_mwc.getProjectNameFromMWC(); 
    3535        fv  = new FilesViewer();                        //Création d'un espace montrant l'arborescence des fichiers sur le disque dûr. 
    3636         
    37         fenetreProjet                 = new QDockWidget("Projet", this);        // Réservation de l'espace pour la fenêtre projet 
     37        fenetreProjet                 = new QDockWidget("Aperçu des projets: ", this); // Réservation de l'espace pour la fenêtre projet 
    3838                fenetreProjet->setFeatures(QDockWidget::NoDockWidgetFeatures);  //La fenêtre projet ne pourra être ni deplacée ni fermée. 
    3939                fenetreProjet->setWidget(fv);                   // L'arborescence des fichiers est incluse dans la fenêtre projet.  
    40         //QDockWidget *dock2            = new QDockWidget("Apercu", this); 
    41         //addDockWidget(Qt::LeftDockWidgetArea, dock2); 
     40        QDockWidget *dock2            = new QDockWidget("", this); 
    4241        addDockWidget(Qt::LeftDockWidgetArea, fenetreProjet); //Positionnement de la fenêtre projet à gauche dans la QMainWindow. 
    43  
     42        addDockWidget(Qt::LeftDockWidgetArea, dock2); 
    4443         
    4544        setCentralWidget(espace);       //Ici, se précise la zone centrale de la QMainWindow. 
    4645        // Appel des differentes méthodes crées. 
    47         creerActions(m_mwc);            //Appel de la methode creerActions(), voir le code ci-aprÚs. 
     46        creerActions();                 //Appel de la methode creerActions(), voir le code ci-aprÚs. 
    4847        creerMenus();                   // Appel de la méthode creerMenu(), voir le code ci-aprÚs. 
    4948        creerBarreOutils();             //Cree la barre d'outils 
     
    5453        addDockWidget(Qt::BottomDockWidgetArea, dock3); 
    5554        tabWidget = new QTabWidget(dock3);//(this); 
    56                 dock3->setWidget(tabWidget);   
     55        dock3->setWidget(tabWidget);   
    5756    //tabWidget->setGeometry(QRect(310, 565, 969, 106)); 
    5857                page1 = new QWidget(); 
    59    // page1->setObjectName(QString::fromUtf8("tab")); 
     58   //page1->setObjectName(QString::fromUtf8("tab")); 
    6059                tabWidget->addTab(page1, "          compilation               "); 
    6160                page2 = new QWidget(); 
     
    6463    //QTabWidget::setTabPosition(QTabWidget::self, South); 
    6564    //horizontalLayout->addWidget(tabWidget); 
    66                 tabWidget->setCurrentIndex(1); 
     65     //         tabWidget->setCurrentIndex(1); 
    6766        //connect(espace, SIGNAL(windowActivated(QWidget * w)), this, SLOT(setActiveWindow(QWidget * w))); 
    6867 
     
    114113 
    115114/********************************** Implémentation de la methode creerActions() **********************************************/ 
    116 void MainWindow::creerActions(MainWindowController mwc)  { 
     115void MainWindow::creerActions()  { 
    117116 
    118117 // Les actions du menu fichier 
     
    122121        //connect(actionNouveauProjet, SIGNAL(triggered()), this, SLOT(activeBoutonsBarreOutils())); 
    123122        connect(actionNouveauProjet, SIGNAL(triggered()), this, SLOT(createNewProject())); 
    124         //connect(actionNouveauProjet, SIGNAL(triggered()), this, SLOT(montrerActionGenererD())); 
     123        connect(actionNouveauProjet, SIGNAL(triggered()), this, SLOT(montrerActionGenererD())); 
    125124    actionOuvrirProjet = new QAction(tr("&Ouvrir un projet"), this); 
    126125        actionOuvrirProjet->setIcon(QIcon("Images/icons/openfile.png")); 
     
    159158 
    160159 
    161         connect(actionFichierDescription, SIGNAL(triggered()), this, SLOT(appelGenererD())); 
     160     //   connect(actionFichierDescription, SIGNAL(triggered()), this, SLOT(appelGenererD())); 
    162161 
    163162 
     
    171170     actionCacherBarreOutils = new QAction(tr("Cacher la barre d'outils"), this); 
    172171        actionCacherBarreOutils->setCheckable(true); 
    173         connect(actionCacherBarreOutils, SIGNAL(triggered()), this, SLOT(cacherBarreOutils())); 
     172      // connect(actionCacherBarreOutils, SIGNAL(triggered()), this, SLOT(cacherBarreOutils())); 
    174173     actionCacherFenetreApercu = new QAction(tr("Cacher la fenetre apercu"), this); 
    175174        actionCacherFenetreApercu->setCheckable(true); 
     
    178177     actionCacherFenetreDialog = new QAction(tr("Cacher la fenetre dialog"), this); 
    179178        actionCacherFenetreDialog->setCheckable(true); 
    180      actionPleinEcran = new QAction(tr("Plein ecran"), this); 
    181         actionPleinEcran->setCheckable(true); 
     179     //actionPleinEcran = new QAction(tr("Plein ecran"), this); 
     180        //actionPleinEcran->setCheckable(true); 
    182181 
    183182     // Les actions du menu Execution 
    184183     actionGenerationD = new QAction(tr("Generer le fichier .d"), this); 
    185184        actionGenerationD->setEnabled(false); 
    186         connect(actionGenerationD, SIGNAL(triggered()), this, SLOT(appelGenererD())); 
     185      //  connect(actionGenerationD, SIGNAL(triggered()), this, SLOT(appelGenererD())); 
    187186 
    188187     actionCompilation = new QAction(tr("Compilation"), this); 
     
    201200     // Les actions de la barre d'outils 
    202201 
    203       actionsBarreOutils(espace, mwc); 
     202      actionsBarreOutils(espace); 
    204203 
    205204} 
     
    236235} 
    237236/*****************************************************************************************************************************/ 
    238 void MainWindow::callHatModel(){ 
     237/*void MainWindow::callHatModel(){ 
    239238        //mwc.setFileListController("wwww.h"); 
    240239        MainWindowController & mwc2 = MainWindowController::getInstance();  
     
    248247 
    249248/********************************** Implementation de la methode actionsBarreOutils() ****************************************/ 
    250 void MainWindow::actionsBarreOutils(QWorkspace *espace, MainWindowController mwc) { 
     249void MainWindow::actionsBarreOutils(QWorkspace *espace) { 
    251250 
    252251     m_ConstantButton    = new QPushButton(tr("Constant"), this); 
    253252        m_ConstantButton->setToolTip("Bouton désactivé. Vous devez d'abord creer un nouveau projet ou en ouvrir un."); 
    254         m_ConstantCopy = mwc.getConstant(); 
     253        m_ConstantCopy = new ConstantWindow; 
    255254        espace->addWindow(m_ConstantCopy); 
    256255        m_ConstantCopy->hide(); 
     
    261260 
    262261    m_hatNameButton   = new QPushButton(tr("Hatname"), this); 
    263         m_hatCopy = mwc.getHatName(); 
     262        m_hatCopy = new HatNameWindow("test");//mwc.getHatName(); 
    264263        //m_hatCopy->setLocalProjectName(copynp->getNewProjectName()); 
    265264        espace->addWindow(m_hatCopy); 
     
    268267        connect(m_hatNameButton, SIGNAL(clicked()), this, SLOT(changeColorHatButton())); 
    269268     m_optionButton    = new QPushButton(tr("Option"), this); 
    270         m_optionCopy = mwc.getOption(); 
     269        m_optionCopy = new OptionWindow; //mwc.getOption(); 
    271270        espace->addWindow(m_optionCopy); 
    272271        m_optionCopy->hide(); 
     
    275274 
    276275     m_trajButton      = new QPushButton(tr("Traj"), this); 
    277         m_trajCopy = mwc.getTraj(); 
    278         espace->addWindow(m_trajCopy); 
    279         m_trajCopy->hide(); 
    280         connect(m_trajButton, SIGNAL(clicked()), m_trajCopy, SLOT(show())); 
    281         connect(m_trajButton, SIGNAL(clicked()), this, SLOT(changeColorTrajButton())); 
     276        //m_trajCopy = new TrajWindow(); //mwc.getTraj(); 
     277        //espace->addWindow(m_trajCopy); 
     278        //m_trajCopy->hide(); 
     279        //connect(m_trajButton, SIGNAL(clicked()), m_trajCopy, SLOT(show())); 
     280        //connect(m_trajButton, SIGNAL(clicked()), this, SLOT(changeColorTrajButton())); 
    282281     m_spaceButton     = new QPushButton(tr("Space"), this); 
    283         m_spaceCopy = mwc.getSpace(); 
     282        m_spaceCopy = new SpaceWindow; //mwc.getSpace(); 
    284283        espace->addWindow(m_spaceCopy); 
    285284        m_spaceCopy->hide(); 
     
    287286        connect(m_spaceButton, SIGNAL(clicked()), this, SLOT(changeColorSpaceButton())); 
    288287     m_operaButton     = new QPushButton(tr("Opera"), this); 
    289         m_operaCopy = mwc.getOpera(); 
     288        m_operaCopy =  new OperaWindow; //mwc.getOpera(); 
    290289        espace->addWindow(m_operaCopy); 
    291290        m_operaCopy->hide(); 
     
    294293 
    295294     m_netwardButton   = new QPushButton(tr("Netward"), this); 
    296         m_netwardCopy = mwc.getNetward(); 
     295        m_netwardCopy = new NetwardWindow; //mwc.getNetward(); 
    297296        espace->addWindow(m_netwardCopy); 
    298297        m_netwardCopy->hide(); 
     
    301300 
    302301     m_modulButton     = new QPushButton(tr("Module"), this); 
    303         m_modulCopy = mwc.getModul(); 
     302        m_modulCopy = new ModulWindow; //mwc.getModul(); 
    304303        espace->addWindow(m_modulCopy); 
    305304        m_modulCopy->hide(); 
     
    307306        connect(m_modulButton, SIGNAL(clicked()), this, SLOT(changeColorModulButton())); 
    308307     m_ctinButton      = new QPushButton(tr("Ctin"), this); 
    309         m_ctinCopy = mwc.getCtin(); 
     308        m_ctinCopy = new CtinWindow; //mwc.getCtin(); 
    310309        espace->addWindow(m_ctinCopy); 
    311310        m_ctinCopy->hide(); 
     
    313312        connect(m_ctinButton, SIGNAL(clicked()), this, SLOT(changeColorCtinButton())); 
    314313     m_orderButton     = new QPushButton(tr("Order"), this); 
    315       /*  m_orderCopy = mwc.getOrder(); 
     314        m_orderCopy = new OrderWindow; //mwc.getOrder(); 
    316315        espace->addWindow(m_orderCopy); 
    317316        m_orderCopy->hide(); 
    318         connect(m_orderButton, SIGNAL(clicked()), m_orderCopy, SLOT(show()));*/ 
     317        //connect(m_orderButton, SIGNAL(clicked()), m_orderCopy, SLOT(show())); 
    319318        connect(m_orderButton, SIGNAL(clicked()), this, SLOT(enConstruction())); 
    320319 
    321320     m_insertFCTButton = new QPushButton(tr("Insert_fct"), this); 
    322         m_insertFCTCopy = mwc.getInsertFCT(); 
     321       m_insertFCTCopy = new InsertFCTWindow; //mwc.getInsertFCT(); 
    323322        espace->addWindow(m_insertFCTCopy); 
    324323        m_insertFCTCopy->hide(); 
     
    374373        montrerActionGenererD(); 
    375374 
    376         std::cout <<  copynp->getNewProjectName() << std::endl; 
     375//      std::cout <<  copynp->getNewProjectName() << std::endl; 
    377376//return true; 
    378   } 
     377} 
    379378/*********************************** Implémentation de la methode sauvegardeProjet() *****************************************/ 
    380379 
     
    460459/********************************** Implémentation de la methode montrerActionCompilation() ******************************/ 
    461460 
    462 void MainWindow::montrerActionCompilation() { 
     461/*void MainWindow::montrerActionCompilation() { 
    463462    actionCompilation->setEnabled(true); 
    464 } 
     463}*/ 
    465464 
    466465/*********************************** Implémentation de la methode appelGenererD *******************************************/ 
    467466 
    468 void MainWindow::appelGenererD() 
     467/*void MainWindow::appelGenererD() 
    469468{ 
    470469    //theHeaderList = m_hatCopy->getTheHeaderList(); 
     
    527526 
    528527    description.close(); 
    529 } 
     528}*/ 
    530529/************************************ Implémentation du slot enConstruction **********************************************/ 
    531530void MainWindow::enConstruction() { 
     
    574573 
    575574/*********************************** Implémentation de la méthode closeEvent ********************************************/ 
    576 void MainWindow::closeEvent(QCloseEvent *event) { 
     575/*void MainWindow::closeEvent(QCloseEvent *event) { 
    577576         
    578577      if (maybeSave()) { 
     
    583582            event->ignore(); 
    584583       
    585 } 
     584}*/ 
    586585/***************************************************************************************************************/ 
    587 bool MainWindow::maybeSave() 
     586/*bool MainWindow::maybeSave() 
    588587{ 
    589588      if (espace->activeWindow()) { 
     
    600599      } 
    601600      return true; 
    602 }        
     601}*/      
    603602/*********************************** Implémentation de la méthode okToContinue ********************************************/ 
    604  bool MainWindow::okToContinue() { 
     603 /*bool MainWindow::okToContinue() { 
    605604  
    606605         if (this->isWindowModified()) { 
     
    618617         
    619618        return true; 
    620  } 
     619 }*/ 
    621620 
    622621/*********************************** Implémentation de la méthode genererSpace ********************************************/ 
     
    635634/*********************************** Implémentation de la methode du destructeur *********************************************/ 
    636635 
    637 MainWindow::~MainWindow() { 
     636/*MainWindow::~MainWindow() { 
    638637 
    639638 
     
    691690                    delete espace; 
    692691                    delete tableWidget; 
    693 } 
     692}*/ 
    694693/************************************* Fin du parametrage du destructeur ****************************************************/ 
    695694 
  • trunk/yao/src/interface/src/MainWindowController.cpp

    r214 r216  
    1717    //for(vector<string>::iterator it = m_hat->getTheHeaderList().begin(); it != m_hat->getTheHeaderList().end(); it++) 
    1818        //setTheHeaderList("test push_back"); 
     19        MainWindow *fen1 = new MainWindow; //fen1->show(); 
     20         
    1921        npTest = false; 
    20     np = new NewProjectWindow; 
     22        np = new NewProjectWindow; 
    2123        np->hide(); 
    2224 //std::cout << /*np->getNewProjectName()*/"chaine in mainwindow controller." << std::endl; 
Note: See TracChangeset for help on using the changeset viewer.