Changeset 452 for trunk/yao


Ignore:
Timestamp:
10/15/10 17:55:07 (14 years ago)
Author:
yerima
Message:

Correct version of the .i file generating.

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

Legend:

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

    r449 r452  
    2222 
    2323/*********************************************************************************************************************************/ 
    24 InstructionWindow::InstructionWindow(Table <Function> *aFunctionTable, QWidget *parent) : QWidget(parent), savedData(" ") { 
     24InstructionWindow::InstructionWindow(vector <string> *anInstructionData, Table <Function> *aFunctionTable, QWidget *parent) : QWidget(parent), savedData(" ") { 
    2525 
    2626        setupUi(this); 
    2727         
    2828        localFunctionTable      = aFunctionTable;        
     29        m_localInstructionData  = anInstructionData;     
    2930 
    3031        m_rightButton->setIcon(QIcon("Images/icons/rightarrow2.png")); 
     
    164165                                 
    165166                                //savedData.push_back(nom+" "+val); 
    166                                 savedData  << nom+" "+val;//=  (QStringList() << str1 << str2 << str3); 
     167                                m_localInstructionData->push_back(nom.toStdString()+" "+val.toStdString());//=  (QStringList() << str1 << str2 << str3); 
    167168                                 
    168169                                emit activeTheIAction(); 
  • trunk/yao/src/interface/src/MainWindow.cpp

    r451 r452  
    942942                        instruction << "#-------------------------------------------------------------------------------------------------" << endl; 
    943943                         
    944                         //if (!iw->getInstruction().isEmpty()) { 
     944                        if (!iw->getInstruction().isEmpty()) { 
    945945                         
    946                         //for (QStringList::iterator it = iw->getInstruction().begin(); it != iw->getInstruction().end(); it++) 
    947  
    948                         //      instruction << it->toStdString() << endl; 
     946                        for (vector <string>::iterator it = theInstructionData.begin(); it != theInstructionData.end(); it++) 
     947 
     948                                instruction << it->c_str() << endl; 
    949949                         
    950950                                instruction << endl; 
    951951                                 
    952952                                //emit activeTheIAction(); 
    953                         //} 
     953                        } 
    954954                        instruction.close(); 
    955955 
     
    970970 
    971971         
    972         iw = new InstructionWindow(&theFunctionTable) ; 
     972        iw = new InstructionWindow(&theInstructionData, &theFunctionTable) ; 
    973973        espace.addWindow(iw)->move(0, 0);  
    974974        iw->show();      
  • trunk/yao/src/interface/src/include/InstructionWindow.hpp

    r449 r452  
    2323 
    2424        public : 
    25                 InstructionWindow(yao::Table <yao::Function> *aFunctionTable, QWidget *parent=0); 
     25                InstructionWindow(std::vector <std::string> *anInstructionData, yao::Table <yao::Function> *aFunctionTable, QWidget *parent=0); 
    2626                QStringList getInstruction();  
    2727 
     
    4848                 
    4949                QStringList savedData; 
    50  
    51                 yao::Table <yao::Function>  *localFunctionTable; 
     50                std::vector <std::string> *m_localInstructionData; 
     51                yao::Table <yao::Function> *localFunctionTable; 
    5252                 //QStandardItemModel *m_orderModel; 
    5353}; 
  • trunk/yao/src/interface/src/include/MainWindow.hpp

    r449 r452  
    265265                        //yao::Table <yao::Order> theOrderTable; 
    266266                        yao::Table <yao::Function> theFunctionTable;     
     267 
     268                        std::vector <std::string> theInstructionData; 
     269 
    267270                        bool m_activeProject; 
    268271                                 
Note: See TracChangeset for help on using the changeset viewer.