Ignore:
Timestamp:
06/17/10 17:54:19 (14 years ago)
Author:
yerima
Message:

Adding for the constantwindow.ui file in the directory ui.

File:
1 edited

Legend:

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

    r341 r344  
    319319        connect(m_ConstantCopy, SIGNAL(rowIsAdded()), this, SLOT(hatUpdate())); 
    320320        connect(m_ConstantCopy, SIGNAL(rowIsDeleted(QString )), this, SLOT(hatUpdate(QString ))); 
    321         connect(m_ConstantCopy, SIGNAL(windowIsClosed(int )), this, SLOT(initializeWindow(int ))); 
     321        connect(m_ConstantCopy, SIGNAL(windowIsClosed(int )), this, SLOT(initializeWindow(int )));// The signal is in the ConstantWindow.hpp file. 
    322322 
    323323} 
     
    332332        } 
    333333 
    334         connect(m_hatCopy, SIGNAL(hatWindowIsClosed(int)), this, SLOT(initializeWindow(int))); 
     334        connect(m_hatCopy, SIGNAL(hatWindowIsClosed(int)), this, SLOT(initializeWindow(int)));// The signal is in the HatNameWindow.hpp file. 
    335335} 
    336336/********************************************* Implementation of the method createContextWindow() *************************************************/ 
     
    344344        } 
    345345 
    346         //connect(m_ContextCopy, SIGNAL(contextWindowIsClosed(int)), this, SLOT(initializeWindow(int))); 
     346        connect(m_ContextCopy, SIGNAL(contextWindowIsClosed(int)), this, SLOT(initializeWindow(int))); 
    347347} 
    348348/********************************************* Implementation of the method createTrajectoryWindow() ************************************************/ 
     
    355355        m_trajCopy->show();  
    356356 
    357         m_trajCopy = NULL; 
     357        //m_trajCopy = NULL; 
    358358        } 
    359359 
    360         //connect(m_ContextCopy, SIGNAL(contextWindowIsClosed(int)), this, SLOT(initializeWindow(int))); 
     360        connect(m_trajCopy, SIGNAL(trajectoryWindowIsClosed(int)), this, SLOT(initializeWindow(int))); 
    361361} 
    362362/********************************************* Implementation of the method createSpaceWindow() ************************************************/ 
     
    419419                case 6: {  
    420420                                m_operaCopy = NULL;  
    421                                 break; 
    422                         } 
    423                 case 7: {  
     421                        }       break; 
     422                case 7: {                
    424423                                m_netwardCopy = NULL;  
    425424                                break; 
     
    741740 } 
    742741/********************************************* Implementation of the method setWindowTitle(const QString &title) ***********************************/ 
    743 //void MainWindow::setWindowTitle(const QString &title) { 
    744  
    745 //      QWidget::setWindowTitle(title); 
    746 //} 
     742void MainWindow::setActiveProject(const bool aBool) { 
     743 
     744        m_activeProject = aBool; 
     745} 
     746/********************************************* Implementation of the method setWindowTitle(const QString &title) ***********************************/ 
     747 bool MainWindow::isActiveProject() { 
     748 
     749        return m_activeProject;  
     750} 
    747751 /************************************** Implementation of the method createFile(string data, string extension) ************************************/ 
    748752void MainWindow::createFile(string data, string extension) { 
Note: See TracChangeset for help on using the changeset viewer.