- Timestamp:
- 10/15/10 17:55:07 (14 years ago)
- Location:
- trunk/yao/src/interface/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yao/src/interface/src/InstructionWindow.cpp
r449 r452 22 22 23 23 /*********************************************************************************************************************************/ 24 InstructionWindow::InstructionWindow( Table <Function> *aFunctionTable, QWidget *parent) : QWidget(parent), savedData(" ") {24 InstructionWindow::InstructionWindow(vector <string> *anInstructionData, Table <Function> *aFunctionTable, QWidget *parent) : QWidget(parent), savedData(" ") { 25 25 26 26 setupUi(this); 27 27 28 28 localFunctionTable = aFunctionTable; 29 m_localInstructionData = anInstructionData; 29 30 30 31 m_rightButton->setIcon(QIcon("Images/icons/rightarrow2.png")); … … 164 165 165 166 //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); 167 168 168 169 emit activeTheIAction(); -
trunk/yao/src/interface/src/MainWindow.cpp
r451 r452 942 942 instruction << "#-------------------------------------------------------------------------------------------------" << endl; 943 943 944 //if (!iw->getInstruction().isEmpty()) {944 if (!iw->getInstruction().isEmpty()) { 945 945 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; 949 949 950 950 instruction << endl; 951 951 952 952 //emit activeTheIAction(); 953 //}953 } 954 954 instruction.close(); 955 955 … … 970 970 971 971 972 iw = new InstructionWindow(&the FunctionTable) ;972 iw = new InstructionWindow(&theInstructionData, &theFunctionTable) ; 973 973 espace.addWindow(iw)->move(0, 0); 974 974 iw->show(); -
trunk/yao/src/interface/src/include/InstructionWindow.hpp
r449 r452 23 23 24 24 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); 26 26 QStringList getInstruction(); 27 27 … … 48 48 49 49 QStringList savedData; 50 51 yao::Table <yao::Function> 50 std::vector <std::string> *m_localInstructionData; 51 yao::Table <yao::Function> *localFunctionTable; 52 52 //QStandardItemModel *m_orderModel; 53 53 }; -
trunk/yao/src/interface/src/include/MainWindow.hpp
r449 r452 265 265 //yao::Table <yao::Order> theOrderTable; 266 266 yao::Table <yao::Function> theFunctionTable; 267 268 std::vector <std::string> theInstructionData; 269 267 270 bool m_activeProject; 268 271
Note: See TracChangeset
for help on using the changeset viewer.