Changeset 356 for trunk/yao


Ignore:
Timestamp:
06/21/10 19:19:39 (14 years ago)
Author:
yerima
Message:

Horizontal header + model declaration in the modul and the connection window. Visual Yao.

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

Legend:

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

    r351 r356  
    11//! \file    ConnectionWindow.cpp 
    22//! \brief   Implementation of the Ctin window. 
    3 //! \version 2010/06/16 (yyyy/mm/dd) 
     3//! \version 2010/06/21 (yyyy/mm/dd) 
    44//! \author  MAYAKI Abdouramane. 
    55 
     
    2020ConnectionWindow::ConnectionWindow(QWidget *parent) : QWidget(parent) { /*!< The constructor. */ 
    2121        setupUi(this); 
    22     QStringList horizontalHeaders; 
    23         horizontalHeaders << "Entree" << "Nbre Entrees" << "Sortie" << "Nbre Sorties" << "i" << "j" << "k" << "t"; /*!< added Nom Netward Entrees and sorties in table */ 
    2422     
     23        m_ctinModel     = new QStandardItemModel(0, 10);         
    2524         
     25        m_ctinModel->setHorizontalHeaderLabels(QStringList() << "Entree" << "Nbre Entrees" << "Sortie" << "Nbre Sorties" << "i" << "j" << "k" << "t"); 
     26 
     27        m_ctinTableView->setModel(m_ctinModel);  
     28        m_ctinTableView->setEditTriggers(QAbstractItemView::NoEditTriggers); 
     29        m_ctinTableView->setShowGrid(false); 
     30        m_ctinTableView->setSelectionBehavior(QAbstractItemView::SelectRows); 
     31        m_ctinTableView->resizeColumnsToContents(); 
     32 
    2633//      connect(pushButtonctin2, SIGNAL(clicked()), this, SLOT(appelSupp()));  /*!< slot  for the delete the object selected in the view*/ 
    2734//      connect(m_AjoutCtin, SIGNAL(clicked()), this, SLOT(appelAjoutCtin())); /*!< This slot add the object in the view */  
  • trunk/yao/src/interface/src/InsertFCTWindow.cpp

    r351 r356  
    11//! \file    InsertFCTWindow.cpp 
    22//! \brief   Implementation of the Defval window for visual_YAO. 
    3 //! \version 2010/06/18 (yyyy/mm/dd) 
     3//! \version 2010/06/21 (yyyy/mm/dd) 
    44//! \author  MAYAKI Abdouramane. 
    55 
     
    88InsertFCTWindow::InsertFCTWindow(QWidget *parent) : QWidget(parent) { /*!< The constructor. */ 
    99        setupUi(this); 
    10          
    11 //              compteur                                        = 0; 
    1210 
    13                  
    14  
    15 //              QStringList horizontalHeaders; 
    16 //              horizontalHeaders  << "Nom Fonction" << "Argument"; /*!< displays Nom Fonction and Argument in the QTableWidget */ 
     11        QStringList horizontalHeaders; 
     12                horizontalHeaders  << "Nom " << "Argument"; /*!< displays Nom Fonction and Argument in the QTableWidget */ 
    1713         
    1814//              tableWidgetfct->setEditTriggers(QAbstractItemView::NoEditTriggers); 
  • trunk/yao/src/interface/src/MainWindow.cpp

    r355 r356  
    77  Nom de classe: MainWindow 
    88  Role: Outre son role de fichier d'implémentation des méthodes, ce fichier gÚre toutes les fenêtres graphiques. 
    9   Nombre de methodes: 40 
    10   Nombre d'attributs: 
     9  Nombre de methodes: 50 
     10  Nombre d'attributs: 81 
    1111  */ 
    1212 
     
    6666        tabWidget->addTab(page2, "                 Exécution          "); 
    6767 
    68          
    6968 
    7069        connect(this, SIGNAL(WindowTitleChanged()), this, SLOT(setTitle())); 
     
    435434         
    436435} 
    437 /********************************************* Implementation of the method initializeWindow(int anInt) *********************************************/ 
    438 void MainWindow::initializeWindow(int anInt) { 
    439  
    440         switch (anInt) { 
    441          
    442                 case 1: {  
    443                                 m_constantWindow = NULL;  
    444                                 break; 
    445                         } 
    446                 case 2: {  
    447                                 m_hatnameWindow = NULL;  
    448                                 break; 
    449                         } 
    450                 case 3: {  
    451                                 m_contextWindow  = NULL;  
    452                                 break; 
    453                         } 
    454                 case 4: {  
    455                                 m_trajectoryWindow = NULL;  
    456                                 break; 
    457                         } 
    458                 case 5: {  
    459                                 m_spaceWindow = NULL;  
    460                                 break; 
    461                         } 
    462                 case 6: {  
    463                                 m_operaWindow = NULL;  
    464                         }       break; 
    465                 case 7: {                
    466                                 m_netwardWindow = NULL;  
    467                                 break; 
    468                         } 
    469                 case 8: {  
    470                                 m_modulWindow = NULL;  
    471                                 break; 
    472                         } 
    473                 case 9: {  
    474                                 m_ctinWindow = NULL;  
    475                                 break; 
    476                         } 
    477                 case 10: {  
    478                                 m_orderWindow = NULL;  
    479                                 break; 
    480                         } 
    481                 case 11: {  
    482                                 m_insertFCTWindow = NULL;  
    483                                 break; 
    484                         } 
    485                 default:  m_constantWindow = NULL;  m_hatnameWindow = NULL;  m_contextWindow  = NULL; m_trajectoryWindow = NULL;  m_spaceWindow = NULL;m_spaceWindow = NULL; m_operaWindow = NULL;  m_netwardWindow = NULL;   m_modulWindow = NULL;   m_ctinWindow = NULL;  m_orderWindow = NULL; m_insertFCTWindow = NULL;  
    486         } 
    487          
    488 } 
     436 
    489437/*********************************** Implementation of the method activateToolBarButtons() *********************************************************/ 
    490438 
     
    524472void MainWindow::createNewProjectWindow()       { // Affiche la fenetre nouveau projet lorsqu'elle est appelée. 
    525473 
    526     // Initilization of the lexer and lexing (wrapped from the object tokenizer) 
    527     //Tokenizer tokenizer("projects/test_00/test_00.d"); 
    528     // Initialization of the parser and parsing (wrapped from the object tokenizer) 
    529     //Translator translator(tokenizer); 
    530     // Code generation of the files Y1ProjectName.h and Y2ProjectName.h 
    531  //     translator.descriptionVisualYAO(); 
    532  
    533 //translator.theConstantTable 
    534 //for (Table<Constant>::iterator it = translator.theConstantTable.begin(); it != translator.theConstantTable.end(); it++) 
    535 //                       cout << "defval " << it->getName() << " " << it->getText() << endl; 
    536                 //cout << &m_constantWindow << endl; 
    537         //if (m_constantWindow != NULL) 
    538           //      { 
    539         //      cout << "--------------------" << endl; 
    540         //      cout << "Pointeur non Nul!" << endl; 
    541         //      cout << "--------------------" << endl; 
    542         //      m_constantWindow = NULL; 
    543         //      cout << "Pointeur initialisé à NULL!" << endl; 
    544         //      cout << "--------------------" << endl; 
    545         //      } 
    546         //if (m_constantWindow == NULL) 
    547         //      cout << "Pointeur Nul!" << endl; 
    548         //      cout << "--------------------" << endl; 
    549474        newProjectWindow = new QDialog(espace); // L'objet sera affiché dans "espace". 
    550475        newProjectWindow->setWindowTitle("Création d'un nouveau projet."); 
     
    561486        QFormLayout *m_layoutF                = new QFormLayout; 
    562487        QPushButton *m_buttonPath             = new QPushButton; 
    563                 //m_buttonPath->setMaximumSize(30, 25); // Permet de fixer les dimensions du bouton. 
    564488                m_buttonPath->setIcon(QIcon("Images/icons/openfile.png")); 
    565489        ligneInfos                 = new QTextEdit;              // Le champ de saisie des infos relatives à un projet. 
     
    811735     h_file.close(); 
    812736   } 
     737 
     738/**************************************** Implementation of the method generateDFile() (SLOT) ****************************************************/ 
     739void MainWindow::generateDFile() 
     740{ 
     741    filename = getProjectName(); 
     742    filepath = "projects/" + filename + "/" + filename + ".d"; //"projects/test/test.d"; 
     743    ofstream description(filepath.c_str(), ios::out | ios::binary | ios::trunc); 
     744        if(!description.is_open()) 
     745                throw ofstream::failure("couldn't create " + filename); 
     746//try { 
     747//      throw 8; 
     748//      } 
     749//catch (int &i)  
     750// { 
     751//      i++; 
     752//      throw; 
     753//} 
     754try { 
     755       description << "//DEFVAL name value -------------------------------------------------------" << endl; 
     756         for (Table<Constant>::iterator it = theConstantTable.begin(); it != theConstantTable.end(); it++) 
     757                         description << "defval " << it->getName() << " " << it->getText() << endl;///*<< dynamic_cast <string>(*it)*/ << endl; 
     758                         description << endl; 
     759 
     760       description << "//HATNAME  --------------------------------------------------------------------------" << endl; 
     761        for(vector <string>::iterator it = theHeaderList.begin(); it != theHeaderList.end(); it++) 
     762                description << "hat_name \"" << it->c_str() << "\"" << endl; 
     763         description << endl; 
     764        //description << "//Contexts  ----------------------------------------------------------------------" << endl; 
     765         
     766        //for(QStringList::iterator it = m_contextWindow->getContextData().begin(); it != m_contextWindow->getContextData().end(); it++) 
     767          //     description << "option " << it->toStdString() << endl; 
     768            //       description << endl; 
     769 
     770               description << "//TRAJECTOIRES name type uptime offtime dtime steptime -------------" << endl; 
     771 
     772/*      for(vector <string>::iterator it = m_contextWindow->getContextData().begin(); it != m_contextWindow->getContextData().end(); it++) 
     773               description << "option " << it->toStdString() << endl; 
     774                   description << endl; 
     775*/ 
     776  
     777       for (Table<Trajectory>::iterator it = theTrajectoryTable.begin(); it != theTrajectoryTable.end(); it++) 
     778           description << "traj " << it->getName() << " " << it->getType() << " " << it->getBoot() << " "  << it->getOffset() << " " << it->getStep() << " " << it->getSize()<< " " << endl; 
     779            description << endl; 
     780          description << "//SPACE name type dim1 [[dim2]---[dim3]] traj------------------" << endl;  
     781 
     782        for (Table<Space>::iterator it = theSpaceTable.begin(); it != theSpaceTable.end(); it++) 
     783           description << "space " << it->getProperty(0) << " " << it->getProperty(1) << " " << it->getProperty(2) << endl;//<< " " << it->getBoot() << " " << it->getSize() << " " << it->getStep() << " " << it->getOffset() << " " << it->getType() << endl; 
     784            description << endl; 
     785          description << "//DIMENSION ---------------------------------------------" << endl;  
     786 
     787 
     788      // for (QStringList::iterator it = m_spaceWindow->getData().begin(); it != m_spaceWindow->getData().end(); it++) 
     789        //    description << "space " << it->toStdString() << endl; 
     790          //  description << endl; 
     791            
     792        //description << "//NETWARD ---------------------------------------------------------------------------" << endl; 
     793 
     794       /*for (QStringList::iterator it = m_netwardWindow->getDataNetward().begin(); it != m_netwardWindow->getDataNetward().end(); it++) 
     795            description << "netward " << it->toStdString() << endl; 
     796            description << endl;*/ 
     797           // description << "//MODUL --------------------------------------------------------------------------" << endl; 
     798    
     799     /*  for (QStringList::iterator it = m_modulWindow->getDataModul().begin(); it != m_modulWindow->getDataModul().end(); it++) 
     800           description << "modul " << it->toStdString() << endl; 
     801           description << endl;*/ 
     802           //description << "//CONNECTIONS----------------------------------------------------------------------" << endl; 
     803 
     804      /* for (QStringList::iterator it = m_ctinWindow->getDataCtin().begin(); it != m_ctinWindow->getDataCtin().end(); it++) 
     805           description << "ctin " << it->toStdString() << endl; */ 
     806          // description << "//USER FUNCTIONS   ----------------------------------------------------------------" << endl; 
     807            //description << endl; 
     808 
     809   /*    for (QStringList::iterator it = m_insertFCTWindow->getDataFCT().begin(); it != m_insertFCTWindow->getDataFCT().end(); it++) 
     810           description << "insert_fct " << it->toStdString() << endl; 
     811            description << endl; 
     812    //genererConstant(); 
     813    //genererHat(); 
     814*/ 
     815        } 
     816 
     817        catch (...) { 
     818                 
     819                cout << "Sortie du programme!" << endl; 
     820                throw; 
     821                 
     822        } 
     823    description.close(); 
     824} 
     825 
    813826 
    814827/*************************************** Implementation of the method generateDefaultHFile() ******************************************************/ 
     
    885898 } 
    886899 
    887 /****************************************************************************************************************************/ 
    888 /*void MainWindow::callHatModel(){ 
    889         //mwc.setFileListController("wwww.h"); 
    890         MainWindowController & mwc2 = MainWindowController::getInstance();  
    891         m_hatnameWindow = mwc2.getHatName(); 
    892         espace->addWindow(m_hatnameWindow); 
    893  
    894         m_hatnameWindow->show(); 
    895  
    896 } 
    897  
    898 */ 
    899  
    900  
    901 /*********************************** Implementation of the method sauvegardeProjet() *****************************************/ 
    902  
    903 /*bool MainWindow::sauvegarderProjet() { 
    904  
    905  
    906     statusBar()->showMessage(tr("Projet sauvegarde"), 2000); 
    907     return true; 
    908  
    909 }*/ 
    910  
    911  
    912 /*********************************** Implementation of the method okToContinue() ********************************************/ 
    913  /*bool MainWindow::okToContinue() { 
    914   
    915          if (this->isWindowModified()) { 
    916                 int r = QMessageBox::warning(this, tr("Visual Yao"), tr("Le document a été modifié. \n " 
    917                                                 "Voulez-vous enregistrer les changements apportés?"), 
    918                                                 QMessageBox::Yes | QMessageBox::Default, 
    919                                                 QMessageBox::No, 
    920                                                 QMessageBox::Cancel | QMessageBox::Escape); 
    921                 if (r == QMessageBox::Yes)  
    922                         return true; 
    923                 else  
    924                         if (r == QMessageBox::Cancel) 
    925                                 return false;  
    926                 } 
    927          
    928         return true; 
    929  }*/ 
    930  
    931  
    932 /*************************************** Implementation of the method maybeSave() *******************************************************************/ 
    933 /*bool MainWindow::maybeSave() 
    934 { 
    935       if (espace->activeWindow()) { 
    936             int ret = QMessageBox::warning(this, tr("Application"), 
    937                         tr("Aucun projet n'a été lancé!\n" 
    938                         "Êtes-vous sûr de vouloir quitter?"), 
    939                         QMessageBox::Yes | QMessageBox::Default, 
    940                         //QMessageBox::No, 
    941                         QMessageBox::Cancel | QMessageBox::Escape); 
    942             if (ret == QMessageBox::Yes) 
    943               return true;//return save(); 
    944             else if (ret == QMessageBox::Cancel) 
    945             return false; 
    946       } 
    947       return true; 
    948 }*/      
     900/********************************************* Implementation of the method initializeWindow(int anInt) *********************************************/ 
     901void MainWindow::initializeWindow(int anInt) { 
     902 
     903        switch (anInt) { 
     904         
     905                case 1: {  
     906                                m_constantWindow = NULL;  
     907                                break; 
     908                        } 
     909                case 2: {  
     910                                m_hatnameWindow = NULL;  
     911                                break; 
     912                        } 
     913                case 3: {  
     914                                m_contextWindow  = NULL;  
     915                                break; 
     916                        } 
     917                case 4: {  
     918                                m_trajectoryWindow = NULL;  
     919                                break; 
     920                        } 
     921                case 5: {  
     922                                m_spaceWindow = NULL;  
     923                                break; 
     924                        } 
     925                case 6: {  
     926                                m_operaWindow = NULL;  
     927                        }       break; 
     928                case 7: {                
     929                                m_netwardWindow = NULL;  
     930                                break; 
     931                        } 
     932                case 8: {  
     933                                m_modulWindow = NULL;  
     934                                break; 
     935                        } 
     936                case 9: {  
     937                                m_ctinWindow = NULL;  
     938                                break; 
     939                        } 
     940                case 10: {  
     941                                m_orderWindow = NULL;  
     942                                break; 
     943                        } 
     944                case 11: {  
     945                                m_insertFCTWindow = NULL;  
     946                                break; 
     947                        } 
     948                default:  m_constantWindow = NULL;  m_hatnameWindow = NULL;  m_contextWindow  = NULL; m_trajectoryWindow = NULL;  m_spaceWindow = NULL;m_spaceWindow = NULL; m_operaWindow = NULL;  m_netwardWindow = NULL;   m_modulWindow = NULL;   m_ctinWindow = NULL;  m_orderWindow = NULL; m_insertFCTWindow = NULL;  
     949        } 
     950         
     951} 
    949952 
    950953/*********************************** Implementation of the method changeButtonColor() (SLOT) ********************************************************/ 
     
    10261029 
    10271030} 
    1028  
    1029 /**************************************** Implementation of the method generateDFile() (SLOT) ****************************************************/ 
    1030 void MainWindow::generateDFile() 
    1031 { 
    1032     filename = getProjectName(); 
    1033     filepath = "projects/" + filename + "/" + filename + ".d"; //"projects/test/test.d"; 
    1034     ofstream description(filepath.c_str(), ios::out | ios::binary | ios::trunc); 
    1035         if(!description.is_open()) 
    1036                 throw ofstream::failure("couldn't create " + filename); 
    1037 //try { 
    1038 //      throw 8; 
    1039 //      } 
    1040 //catch (int &i)  
    1041 // { 
    1042 //      i++; 
    1043 //      throw; 
    1044 //} 
    1045 try { 
    1046        description << "//DEFVAL name value -------------------------------------------------------" << endl; 
    1047          for (Table<Constant>::iterator it = theConstantTable.begin(); it != theConstantTable.end(); it++) 
    1048                          description << "defval " << it->getName() << " " << it->getText() << endl;///*<< dynamic_cast <string>(*it)*/ << endl; 
    1049                          description << endl; 
    1050  
    1051        description << "//HATNAME  --------------------------------------------------------------------------" << endl; 
    1052         for(vector <string>::iterator it = theHeaderList.begin(); it != theHeaderList.end(); it++) 
    1053                 description << "hat_name \"" << it->c_str() << "\"" << endl; 
    1054          description << endl; 
    1055         //description << "//Contexts  ----------------------------------------------------------------------" << endl; 
    1056          
    1057         //for(QStringList::iterator it = m_contextWindow->getContextData().begin(); it != m_contextWindow->getContextData().end(); it++) 
    1058           //     description << "option " << it->toStdString() << endl; 
    1059             //       description << endl; 
    1060  
    1061                description << "//TRAJECTOIRES name type uptime offtime dtime steptime -------------" << endl; 
    1062  
    1063 /*      for(vector <string>::iterator it = m_contextWindow->getContextData().begin(); it != m_contextWindow->getContextData().end(); it++) 
    1064                description << "option " << it->toStdString() << endl; 
    1065                    description << endl; 
    1066 */ 
    1067   
    1068        for (Table<Trajectory>::iterator it = theTrajectoryTable.begin(); it != theTrajectoryTable.end(); it++) 
    1069            description << "traj " << it->getName() << " " << it->getType() << " " << it->getBoot() << " "  << it->getOffset() << " " << it->getStep() << " " << it->getSize()<< " " << endl; 
    1070             description << endl; 
    1071           description << "//SPACE name type dim1 [[dim2]---[dim3]] traj------------------" << endl;  
    1072  
    1073         for (Table<Space>::iterator it = theSpaceTable.begin(); it != theSpaceTable.end(); it++) 
    1074            description << "space " << it->getProperty(0) << " " << it->getProperty(1) << " " << it->getProperty(2) << endl;//<< " " << it->getBoot() << " " << it->getSize() << " " << it->getStep() << " " << it->getOffset() << " " << it->getType() << endl; 
    1075             description << endl; 
    1076           description << "//DIMENSION ---------------------------------------------" << endl;  
    1077  
    1078  
    1079       // for (QStringList::iterator it = m_spaceWindow->getData().begin(); it != m_spaceWindow->getData().end(); it++) 
    1080         //    description << "space " << it->toStdString() << endl; 
    1081           //  description << endl; 
    1082             
    1083         //description << "//NETWARD ---------------------------------------------------------------------------" << endl; 
    1084  
    1085        /*for (QStringList::iterator it = m_netwardWindow->getDataNetward().begin(); it != m_netwardWindow->getDataNetward().end(); it++) 
    1086             description << "netward " << it->toStdString() << endl; 
    1087             description << endl;*/ 
    1088            // description << "//MODUL --------------------------------------------------------------------------" << endl; 
    1089     
    1090      /*  for (QStringList::iterator it = m_modulWindow->getDataModul().begin(); it != m_modulWindow->getDataModul().end(); it++) 
    1091            description << "modul " << it->toStdString() << endl; 
    1092            description << endl;*/ 
    1093            //description << "//CONNECTIONS----------------------------------------------------------------------" << endl; 
    1094  
    1095       /* for (QStringList::iterator it = m_ctinWindow->getDataCtin().begin(); it != m_ctinWindow->getDataCtin().end(); it++) 
    1096            description << "ctin " << it->toStdString() << endl; */ 
    1097           // description << "//USER FUNCTIONS   ----------------------------------------------------------------" << endl; 
    1098             //description << endl; 
    1099  
    1100    /*    for (QStringList::iterator it = m_insertFCTWindow->getDataFCT().begin(); it != m_insertFCTWindow->getDataFCT().end(); it++) 
    1101            description << "insert_fct " << it->toStdString() << endl; 
    1102             description << endl; 
    1103     //genererConstant(); 
    1104     //genererHat(); 
    1105 */ 
    1106         } 
    1107  
    1108         catch (...) { 
    1109                  
    1110                 cout << "Sortie du programme!" << endl; 
    1111                 throw; 
    1112                  
    1113         } 
    1114     description.close(); 
    1115 } 
    1116  
    11171031 
    11181032/*********************************** Implementation of the virtual method closeEvent() ************************************************************/ 
  • trunk/yao/src/interface/src/ModulWindow.cpp

    r355 r356  
    3434        m_comboModulTarget->insertItem(3, "alltime"); 
    3535 
     36        m_comboModulInter2->setDisabled(true); 
     37        m_comboModulInter3->setDisabled(true); 
     38        //m_checkBoxModulArray->setDisabled(true); 
    3639//      for (Table<Constant>::reverse_iterator it = localConstantTable->rbegin(); it != localConstantTable->rend(); it++)  { 
    3740//                              cout << it->getName().c_str() << endl; 
     
    4144//              m_comboModulLopera->insertItem(1, QString(it->getName().c_str()));  
    4245        //      } 
    43  
    44  
     46        ModulModele     = new QStandardItemModel(0, 11); 
     47                ModulModele->setHorizontalHeaderLabels(QStringList() << "Nom" << "space/opera" << "input" << "output" << "target" << "noward" << "autonet" << "netward" << "cout" << "lopera" << "tempo"); 
     48                         
     49                m_modulTableView->setModel(ModulModele); 
     50                m_modulTableView->setEditTriggers(QAbstractItemView::NoEditTriggers); 
     51                m_modulTableView->setShowGrid(false); 
     52                m_modulTableView->setSelectionBehavior(QAbstractItemView::SelectRows); 
     53                m_modulTableView->resizeColumnsToContents(); 
     54                //m_modulTableView-> 
     55 
     56        if (m_lineModulInput->text().isEmpty()) 
     57                m_checkBoxModulArray->setDisabled(true); 
     58                //cout << "vide! cooool" << endl;  
     59        //connect(m_lineModulInput, SIGNAL(textEdited(QString )), this, SLOT(close())); 
    4560         
    4661        connect(m_buttonModulQuit, SIGNAL(clicked()), this, SLOT(close())); 
  • trunk/yao/src/interface/src/OrderWindow.cpp

    r351 r356  
    1717//! \brief Implementation of the Order window for visual_YAO. 
    1818 
     19/***********************************************************************/ 
    1920OrderWindow::OrderWindow(QWidget *parent) : QWidget(parent) { 
    2021 
     
    2223        setFixedWidth(baseSize().width() + 765); 
    2324} 
     25 
    2426/***********************************************************************/ 
    2527void OrderWindow::closeEvent(QCloseEvent *event) { 
     
    2729        emit orderWindowIsClosed(10); 
    2830} 
     31 
     32/***********************************************************************/ 
  • trunk/yao/src/interface/src/TrajectoryWindow.cpp

    r348 r356  
    357357                                modeleTraj->setItem(row, 4, new QStandardItem(dTime));  
    358358                                modeleTraj->setItem(row, 5, new QStandardItem(stepTime));  
     359 
     360        emit trajRowIsAdded(); 
    359361                        } 
    360362 
  • trunk/yao/src/interface/src/include/ConnectionWindow.hpp

    r351 r356  
    22 * \file    ConnectionWindow.hpp 
    33 * \brief   Ctin class for visual_YAO. 
    4  * \version 2010/06/16 (yyyy/mm/dd) 
     4 * \version 2010/06/21 (yyyy/mm/dd) 
    55 * \author  MAYAKI Abdouramane. 
    66 */ 
     
    5454 
    5555                    QStringList CtinData; 
     56                QStandardItemModel *m_ctinModel; 
    5657                    
    5758                     
  • trunk/yao/src/interface/src/include/MainWindow.hpp

    r351 r356  
    8080                         }*/ 
    8181 
    82                         // void creerRepertoire(); 
    83                         // void genererConstant(); 
    84                         // void genererHat(); 
    85                         // void genererSpace(); 
    86                         // void genererCtin(); 
    87                         // bool okToContinue(); 
    88                         // bool maybeSave(); 
    8982                        // ~MainWindow(); 
    9083        protected : 
  • trunk/yao/src/interface/src/include/ModulWindow.hpp

    r352 r356  
    3434        signals: 
    3535                void modulWindowIsClosed(int anInt);  
     36         
     37        protected: 
     38                void closeEvent(QCloseEvent *event); 
    3639 
    3740        private: 
     
    4649                int compteur; 
    4750 
    48         protected: 
    49                 void closeEvent(QCloseEvent *event); 
    5051}; 
    5152 
  • trunk/yao/src/interface/src/include/TrajectoryWindow.hpp

    r345 r356  
    22 * \file    TrajWindow.hpp 
    33 * \brief   Traj class for visual_YAO. 
    4  * \version 2010/06/16 (yyyy/mm/dd) 
     4 * \version 2010/06/21 (yyyy/mm/dd) 
    55 * \author  MAYAKI Abdouramane. 
    66 */ 
     
    4444                const int toInt(const std::string& s); 
    4545                const double toDouble(const std::string& s); 
    46                 //QStringList getTrajName(); 
    47                 //void ajouterNomDansTableau(int ligne, int colonne, QString trajName); 
    48                 //void ajouterValeurDansTableau1(int ligne, int colonne, QString valeurTraj); 
    49                 //void writefile(); 
    50                 //QStringList getDataTraj();  /*!< This function returns the Trajectory's data. */ 
    51           
    5246 
    5347        private slots:    /*!< Functions called after a click. */ 
     
    5650                void deleteTrajRow();   /*!< This function is called to delete row from the Yao model. */ 
    5751                void callTrajHelp();  /*!< This function is called to an help window. */ 
    58                 //void ecrireFichierTraj(); 
    59                 //void enregistrerTraj(); 
    60                 //void ouvrirProjetExistantTraj(); 
    61                 //void ecrireFichier();  /*!< This function is called to add data in the Yao model. */ 
    62                 //void saveTrajData();  /*!< This function is called to add data in the Yao model. */ 
    63  
     52         
     53        signals: 
     54                void trajRowIsAdded(); 
    6455        private : 
    6556                 
    6657                int compteur;     
    67                 /*QLabel *m_nameLabel; 
    68                 QLabel *m_typeLabel; 
    69                 QLabel *m_labelTrajNbuptime; 
    70                 QLabel *m_labelTrajOfftime; 
    71                 QLabel *m_labelTrajNDtime; 
    72                 QLabel *m_labelTrajNbsteptime; 
    73  //      
    74                 QPushButton *m_quitTraj;         
    75                 QPushButton *m_addButton; 
    76                 QPushButton *m_helpButton; 
    77                 QPushButton *m_delButton; 
    78 */ 
    79                 //QLineEdit *m_lignetrajName;  /*!< Name of the QLineEdit. */ 
    80                 //QLineEdit *m_ligneTypeTraj;  /*!< Type of the QLineEdit. */ 
    81                 //QLineEdit *m_ligneValeurTraj;    /*!< value of the Trajectory. */ 
    82  
    83                 //QLineEdit *m_comboOfftimeTraj;     /*!< Offtime of the QComboBox. */ 
    84                 //QLineEdit *m_comboSteptimeTraj;  /*!< Nbsteptime of the QComboBox. */ 
    85  // 
    86              
    87                 //QComboBox *m_comboNbuptimeTraj; /*!< Nbuptime of the Trajectory. */ 
    88                 //QComboBox *m_comboDtimeTraj;    /*!< Dtime of the Trajectory. */ 
    89                 //QComboBox *m_comboSteptimeTraj;   /*!< Nbsteptime of the Trajectory. */ 
    90                 //QComboBox *m_comboOfftimeTraj;   /*!< m_ligneOffimetraj QComboBox. */ 
    91  
    92  
    93                 //QGridLayout *m_layoutGTraj;   /*!< The form Layout's name. */ 
    94                 //QHBoxLayout *m_layoutHTraj;   /*!< The horizontal Layout's name. */ 
    95              
    9658                QStandardItemModel *modeleTraj; 
    9759                QModelIndex index; 
    98                 //QTableView *vueTraj;   /*!< Name of the QTableWidget's object in whitch the objects are listed for the viewer. */ 
    9960                yao::Table <yao::Trajectory> *localTrajectoryTable; 
    10061                yao::Table <yao::Constant> *localConstantTable; 
    101                 //QFileDialog *projetTraj; 
    102                 //QString m_cheminProjetTraj; 
    10362 
    104                 //  QFileDialog *fd2; 
    10563                //QModelIndex index2; 
    10664                // QString lstF2; 
    10765 
    108                 //int boot; 
    109                 //int size; 
    110                 //double step; 
    111                 //double offset; 
    112                 //char type; 
    113                 //int compteur;          
    11466        protected:  
    11567                void closeEvent(QCloseEvent *event);  
  • trunk/yao/src/interface/src/ui_/connectionwindow.ui

    r350 r356  
    3232    <enum>QFrame::Raised</enum> 
    3333   </property> 
    34    <widget class="QTableView" name="tableView"> 
     34   <widget class="QTableView" name="m_ctinTableView"> 
    3535    <property name="geometry"> 
    3636     <rect> 
     
    5353    <layout class="QVBoxLayout" name="verticalLayout_6"> 
    5454     <item> 
    55       <widget class="QPushButton" name="pushButton"> 
     55      <widget class="QPushButton" name="m_ctinAddButton"> 
    5656       <property name="text"> 
    5757        <string>Ajouter</string> 
     
    6060     </item> 
    6161     <item> 
    62       <widget class="QPushButton" name="pushButton_2"> 
     62      <widget class="QPushButton" name="m_ctinDelButton"> 
    6363       <property name="text"> 
    6464        <string>Supprimer</string> 
     
    6767     </item> 
    6868     <item> 
    69       <widget class="QPushButton" name="pushButton_3"> 
     69      <widget class="QPushButton" name="m_ctinQuitButton"> 
    7070       <property name="text"> 
    7171        <string>Quitter</string> 
     
    7575    </layout> 
    7676   </widget> 
    77    <widget class="QPushButton" name="pushButton_4"> 
     77   <widget class="QPushButton" name="m_ctinHelpButton"> 
    7878    <property name="geometry"> 
    7979     <rect> 
     
    109109      <x>10</x> 
    110110      <y>10</y> 
    111       <width>581</width> 
     111      <width>571</width> 
    112112      <height>101</height> 
    113113     </rect> 
     
    137137        <layout class="QVBoxLayout" name="verticalLayout_2"> 
    138138         <item> 
    139           <widget class="QComboBox" name="comboBox"/> 
    140          </item> 
    141          <item> 
    142           <widget class="QComboBox" name="comboBox_2"/> 
     139          <widget class="QComboBox" name="m_ctinComboModulIn"/> 
     140         </item> 
     141         <item> 
     142          <widget class="QComboBox" name="m_ctinComboModulOut"/> 
    143143         </item> 
    144144        </layout> 
     
    519519 <connections> 
    520520  <connection> 
    521    <sender>pushButton_3</sender> 
     521   <sender>m_ctinQuitButton</sender> 
    522522   <signal>clicked()</signal> 
    523523   <receiver>ConnectionWindow</receiver> 
  • trunk/yao/src/interface/src/ui_/modulwindow.ui

    r354 r356  
    7272         </property> 
    7373         <property name="buddy"> 
    74           <cstring>lineModulInput</cstring> 
     74          <cstring>m_lineModulInput</cstring> 
    7575         </property> 
    7676        </widget> 
     
    9090       </item> 
    9191       <item> 
    92         <widget class="QLineEdit" name="lineModulInput"/> 
     92        <widget class="QLineEdit" name="m_lineModulInput"/> 
    9393       </item> 
    9494      </layout> 
     
    129129        <widget class="QLabel" name="label_4"> 
    130130         <property name="text"> 
    131           <string>Target</string> 
     131          <string>target</string> 
    132132         </property> 
    133133         <property name="buddy"> 
     
    143143    </layout> 
    144144   </widget> 
    145    <widget class="QCheckBox" name="checkBoxModulArray"> 
     145   <widget class="QCheckBox" name="m_checkBoxModulArray"> 
    146146    <property name="geometry"> 
    147147     <rect> 
     
    153153    </property> 
    154154    <property name="text"> 
    155      <string>Array</string> 
     155     <string>array</string> 
    156156    </property> 
    157157   </widget> 
     
    176176       <x>10</x> 
    177177       <y>10</y> 
    178        <width>111</width> 
     178       <width>113</width> 
    179179       <height>261</height> 
    180180      </rect> 
     
    264264        </property> 
    265265        <property name="buddy"> 
    266          <cstring>comboModulInter1</cstring> 
     266         <cstring>m_comboModulInter1</cstring> 
    267267        </property> 
    268268       </widget> 
     
    271271       <layout class="QHBoxLayout" name="horizontalLayout"> 
    272272        <item> 
    273          <widget class="QComboBox" name="comboModulInter1"/> 
     273         <widget class="QComboBox" name="m_comboModulInter1"/> 
    274274        </item> 
    275275        <item> 
    276          <widget class="QComboBox" name="comboModulInter2"/> 
     276         <widget class="QComboBox" name="m_comboModulInter2"/> 
    277277        </item> 
    278278        <item> 
    279          <widget class="QComboBox" name="comboModulInter3"/> 
     279         <widget class="QComboBox" name="m_comboModulInter3"/> 
    280280        </item> 
    281281       </layout> 
     
    465465    </widget> 
    466466   </widget> 
    467    <widget class="QWidget" name=""> 
     467   <widget class="QWidget" name="layoutWidget"> 
    468468    <property name="geometry"> 
    469469     <rect> 
     
    478478      <widget class="QRadioButton" name="m_spaceRadioButton"> 
    479479       <property name="text"> 
    480         <string>Space</string> 
     480        <string>space</string> 
    481481       </property> 
    482482       <property name="checked"> 
     
    491491      <widget class="QRadioButton" name="m_operaRadioButton"> 
    492492       <property name="text"> 
    493         <string>Opera</string> 
     493        <string>opera</string> 
    494494       </property> 
    495495      </widget> 
     
    580580  <tabstop>m_lineModulName</tabstop> 
    581581  <tabstop>m_operaRadioButton</tabstop> 
    582   <tabstop>lineModulInput</tabstop> 
    583   <tabstop>checkBoxModulArray</tabstop> 
     582  <tabstop>m_lineModulInput</tabstop> 
     583  <tabstop>m_checkBoxModulArray</tabstop> 
    584584  <tabstop>lineModulOutput</tabstop> 
    585585  <tabstop>m_comboModulTarget</tabstop> 
     
    591591  <tabstop>checkBoxModulHidjac</tabstop> 
    592592  <tabstop>checkBoxModulManage</tabstop> 
    593   <tabstop>comboModulInter1</tabstop> 
    594   <tabstop>comboModulInter2</tabstop> 
    595   <tabstop>comboModulInter3</tabstop> 
     593  <tabstop>m_comboModulInter1</tabstop> 
     594  <tabstop>m_comboModulInter2</tabstop> 
     595  <tabstop>m_comboModulInter3</tabstop> 
    596596  <tabstop>m_comboModulAutonet</tabstop> 
    597597  <tabstop>comboModulClonol</tabstop> 
Note: See TracChangeset for help on using the changeset viewer.