Changeset 212


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

Some modifications in basic window.

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

Legend:

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

    r205 r212  
    190190                //QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8")); 
    191191        QMessageBox msgBox; 
    192                 msgBox.setText("Le document a été modifié."); 
    193                 msgBox.setInformativeText("Voulez-vous sauvegarder les modifications apportées?"); 
     192                msgBox.setText("Aucune information n'a été saisie!"); 
     193                msgBox.setInformativeText("Etes-vous sûr de vouloir quitter?"); 
    194194                msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::Cancel); 
    195195                msgBox.setDefaultButton(QMessageBox::Yes); 
  • trunk/yao/src/interface/src/HatNameWindow.cpp

    r201 r212  
    6868        connect(m_supHatName, SIGNAL(clicked()), this, SLOT(deleteHatRow())); 
    6969        connect(m_boutonouvrir , SIGNAL(clicked()), this, SLOT(ouvrirProjetExistant())); 
    70         connect(m_quitHatName, SIGNAL(clicked()), this, SLOT(ecrireFichier())); 
     70        //connect(m_quitHatName, SIGNAL(clicked()), this, SLOT(ecrireFichier())); 
    7171        //connect(m_enregHatName, SIGNAL(clicked()), this, SLOT(appelEnregistrer())); 
    7272        connect(m_boutonAjouter, SIGNAL(clicked()), this, SLOT(addHatRow())); 
     
    8080//! \fn void setNomFichierHat(QString nomFichierHat) 
    8181 
    82 void HatNameWindow::setNomFichierHat(QString nomFichierHat) { 
    83  
    84 } 
     82//void HatNameWindow::setNomFichierHat(QString nomFichierHat) { 
     83 
     84//} 
    8585 
    8686/************************************* Impémentation de la méthode getNomFichierHat() *************************************/ 
     
    123123testContenu(compteur); 
    124124 
    125 for(int i=0; i < hatFile.size(); i++) { 
     125for(unsigned int i=0; i < hatFile.size(); i++) { 
    126126    // stringLiteral of the YAO grammar: 
    127127    // (' ' | '\t')* ( 'a'..'z' | 'A'..'Z' | '/' | '_' | '-' | '.'| '0'..'9' )+ (' ' | '\t')* 
     
    225225void HatNameWindow::setTheHeaderList(vector<string> theHeaderList) { 
    226226 
    227  
    228  
    229  } 
     227        hatHeaderList = theHeaderList; 
     228} 
    230229 
    231230/****************************************************************************************/ 
     
    257256                m_supHatName->setEnabled(true); 
    258257                m_enregHatName->setEnabled(true); 
     258                 
     259                return true; 
    259260        } 
    260261        else 
     
    262263                m_supHatName->setDisabled(true); 
    263264                m_enregHatName->setDisabled(true); 
     265                 
     266                return false; 
    264267        } 
    265 } 
    266  
    267  
     268 
     269} 
     270 
     271 
  • trunk/yao/src/interface/src/InsertFCTWindow.cpp

    r190 r212  
    163163                m_enreg->setEnabled(true); 
    164164                m_suppfct->setEnabled(true); 
     165                 
     166                return true; 
    165167        } 
    166168        else                     
     
    169171                m_enreg->setDisabled(true); 
    170172                m_suppfct->setDisabled(true); 
     173         
     174                return false;    
    171175        } 
    172176         
  • trunk/yao/src/interface/src/MainWindow.cpp

    r205 r212  
    127127        actionOuvrirProjet->setShortcut(tr("Ctrl+O")); 
    128128        actionOuvrirProjet->setStatusTip("Ouvrir un projet existant"); 
    129         connect(actionOuvrirProjet, SIGNAL(triggered()), this, SLOT(ouvrirProjet())); 
     129        //connect(actionOuvrirProjet, SIGNAL(triggered()), this, SLOT(ouvrirProjet())); 
    130130        //connect(actionOuvrirProjet, SIGNAL(triggered()), this, SLOT(montrerActionCompilation())); 
    131131    actionOuvrirProjetsRecents = new QAction(tr("Ouvrir projets recents"), this); 
     
    257257        connect(m_defvalButton, SIGNAL(clicked()), m_defvalCopy, SLOT(show())); 
    258258        connect(m_defvalButton, SIGNAL(clicked()), this, SLOT(changeColorDefvalButton())); 
    259         connect(espace, SIGNAL(windowActivated(m_defvalButton)), espace, SLOT(setActiveWindow(m_defvalButton))); 
     259        //connect(espace, SIGNAL(windowActivated(m_defvalButton)), espace, SLOT(setActiveWindow(m_defvalButton))); 
    260260        //connect(m_defvalButton, SIGNAL(clicked()), espace, SLOT(activeWindow())); 
    261261 
     
    589589      if (espace->activeWindow()) { 
    590590            int ret = QMessageBox::warning(this, tr("Application"), 
    591                         tr("The document has been modified.\n" 
    592                         "Do you want to save your changes?"), 
     591                        tr("Aucun projet n'a été lancé!\n" 
     592                        "Êtes-vous sûr de vouloir quitter?"), 
    593593                        QMessageBox::Yes | QMessageBox::Default, 
    594                         QMessageBox::No, 
     594                        //QMessageBox::No, 
    595595                        QMessageBox::Cancel | QMessageBox::Escape); 
    596596            if (ret == QMessageBox::Yes) 
  • trunk/yao/src/interface/src/MainWindowController.cpp

    r201 r212  
    2020    np = new NewProjectWindow; 
    2121        np->hide(); 
    22  std::cout << /*np->getNewProjectName()*/"chaine in mainwindow controller." << std::endl; 
     22 //std::cout << /*np->getNewProjectName()*/"chaine in mainwindow controller." << std::endl; 
    2323 //   if (npTest)  
    2424//      setProjectNameInMWC(np->getNewProjectName()); 
  • trunk/yao/src/interface/src/OperaWindow.cpp

    r192 r212  
    101101                m_deleteOperaButton->setEnabled(true); 
    102102                m_enregOpera->setEnabled(true); 
     103                 
     104                return true; 
    103105        } 
    104106        else 
     
    106108                m_deleteOperaButton->setDisabled(true); 
    107109                m_enregOpera->setDisabled(true); 
     110                 
     111                return false; 
    108112        } 
    109113} 
  • trunk/yao/src/interface/src/OptionWindow.cpp

    r191 r212  
    162162                m_optionDeleteButton->setEnabled(true); 
    163163                m_enregOption->setEnabled(true); 
     164 
     165                return true; 
     166 
    164167        } 
    165168        else 
     
    167170                m_optionDeleteButton->setDisabled(true); 
    168171                m_enregOption->setDisabled(true); 
     172 
     173                return false; 
    169174        } 
    170175} 
  • trunk/yao/src/interface/src/SpaceWindow.cpp

    r190 r212  
    2525    this->setWindowTitle("Directive Space.");                     /*!< To set the window's title. */ 
    2626    isCalled = false; 
    27         //QStringList localTrajData = trajData; 
     27        //QStringList *localTrajData = trajData; 
    2828        compteur                                = 0;     
    2929        m_spaceNameLabel                        = new QLabel("Nom de l'espace: ");           /*!< Label of the QLineEdit. */ 
     
    280280                m_spaceEnregButton->setEnabled(true); 
    281281                m_spaceDeleteButton->setEnabled(true); 
     282 
     283                return true; 
     284 
    282285        } 
    283286        else 
     
    285288                m_spaceEnregButton->setDisabled(true); 
    286289                m_spaceDeleteButton->setDisabled(true); 
    287         } 
    288 } 
    289  
     290 
     291                return false;    
     292        } 
     293} 
     294 
  • trunk/yao/src/interface/src/TrajWindow.cpp

    r192 r212  
    157157        
    158158                for(int k1 = 0; k1<line5.size(); k1++) 
    159               if(!((line5.at(k1) >= QChar('1')&& line5.at(k1) <= QChar('9')) || (line5.at(k1) == QChar('+')) || (line5.at(k1) == QChar('-')) 
    160        || (line5.at(k1) == QChar('E')) || (line5.at(k1) == QChar('e'))) && (line5.at(k1) >= QChar('10')&& line5.at(k1) <= QChar('10000'))) //-----------  
     159if(!((line5.at(k1) >= QChar('1')&& line5.at(k1) <= QChar('9')) || (line5.at(k1) == QChar('+')) || (line5.at(k1) == QChar('-')) || (line5.at(k1) == QChar('E')) || (line5.at(k1) == QChar('e'))) && (line5.at(k1) >= QChar('10')&& line5.at(k1) <= QChar('10000'))) 
    161160    { 
    162161        QMessageBox::critical(this, "Erreur", "Veuillez entrer une valeur Correcte de Dtime."); 
Note: See TracChangeset for help on using the changeset viewer.