Changeset 268


Ignore:
Timestamp:
03/07/10 18:07:00 (14 years ago)
Author:
yerima
Message:

In the MainWindowController?'s class.

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

Legend:

Unmodified
Added
Removed
  • trunk/yao/src/interface/src/Include/MainWindow.hpp

    r266 r268  
    5757                    void setProjectPath(string aPath); 
    5858                    std::string getProjectPath();  
    59  
     59                    void directivesManager(); 
    6060                   // void creerRepertoire(); 
    6161                   // void genererConstant(); 
  • trunk/yao/src/interface/src/Include/MainWindowController.hpp

    r266 r268  
    3030 
    3131                //static MainWindowController(std::string as="") & getInstance(); 
    32                 MainWindowController(std::string as=""); 
     32                MainWindowController(); 
    3333                ConstantWindow *getConstant(); 
    3434                void setConstant(); 
  • trunk/yao/src/interface/src/MainWindow.cpp

    r267 r268  
    249249 
    250250    m_hatNameButton   = new QPushButton(tr("Hatname"), this); 
    251         string m = getProjectName() ; 
    252251        //cout << "Dans la methode actionBarreOutils" + getProjectName() << endl; 
    253252        //m_hatCopy->setLocalProjectName(copynp->getm_newProjectName()); 
     
    313312     desactiveBoutonsBarreOutils(); // Désactive tous les boutons de la barre d'outils 
    314313} 
     314/***********************************************************************************************************/ 
     315void MainWindow::directivesManager() { 
     316 
     317        m_hatCopy = new HatNameWindow(getProjectName() + ".h");//getProjectName());//mwc.getHatName(); 
     318        espace->addWindow(m_hatCopy); 
     319        m_hatCopy->hide(); 
     320        connect(m_hatNameButton, SIGNAL(clicked()), m_hatCopy, SLOT(show())); 
     321        connect(m_hatNameButton, SIGNAL(clicked()), this, SLOT(changeColorHatButton())); 
     322  
     323 
     324} 
    315325/*********************************** Implémentation de la methode activeBoutonsBarreOutils() *********************************/ 
    316326 
     
    482492/************************************ createProjectDirectory() ******************************************************/ 
    483493void MainWindow::createProjectDirectory() { 
    484   
    485      setProjectName(ligneNomRep->text().toStdString()); //Fonction permettant d'initialiser le nom du projet. 
    486         m_hatCopy = new HatNameWindow(getProjectName());//getProjectName());//mwc.getHatName(); 
    487         espace->addWindow(m_hatCopy); 
    488         m_hatCopy->hide(); 
    489         connect(m_hatNameButton, SIGNAL(clicked()), m_hatCopy, SLOT(show())); 
    490         connect(m_hatNameButton, SIGNAL(clicked()), this, SLOT(changeColorHatButton())); 
    491   
    492         if (ligneNomRep->text().isEmpty()) //ContrÃŽle à faire si le champ réservé au nom du projet est délaissé vide. 
    493                 { 
     494         
     495        setProjectName(ligneNomRep->text().toStdString()); //Fonction permettant d'initialiser le nom du projet. 
     496        directivesManager(); 
     497                if (ligneNomRep->text().isEmpty()) //ContrÃŽle à faire si le champ réservé au nom du projet est délaissé vide. 
     498                        { 
    494499                        QMessageBox::critical(this, "Erreur", "Le nom du projet n'est pas spécifié! Réessayez en remplissant correctement le champ correspondant. "); 
    495500                        return; // Arrêt de la méthode 
  • trunk/yao/src/interface/src/MainWindowController.cpp

    r266 r268  
    1313 
    1414/****************************************************************************************************************************************/ 
    15 MainWindowController::MainWindowController(string as) { 
     15MainWindowController::MainWindowController() { 
    1616 
    1717    //for(vector<string>::iterator it = m_hat->getTheHeaderList().begin(); it != m_hat->getTheHeaderList().end(); it++) 
Note: See TracChangeset for help on using the changeset viewer.