- Timestamp:
- 09/01/10 17:34:35 (14 years ago)
- Location:
- trunk/yao/src/interface/src
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yao/src/interface/src/ConnectionWindow.cpp
r391 r419 1 1 //! \file ConnectionWindow.cpp 2 2 //! \brief Implementation of the Ctin window. 3 //! \version 2010/0 7/06(yyyy/mm/dd)3 //! \version 2010/09/01 (yyyy/mm/dd) 4 4 //! \author MAYAKI Abdouramane. 5 5 … … 48 48 49 49 m_ctinModulInCombo->insertItem(1, QString(it->getName().c_str())); 50 //m_ctinModulOutCombo->insertItem(1, QString(it->getName().c_str()));50 m_ctinModulOutCombo->insertItem(1, QString(it->getName().c_str())); 51 51 //m_ctinModel->setItem(row, 0, new QStandardItem(QString(it->getName().c_str()))); /*!< Gets the name.*/ 52 52 //m_ctinModel->setItem(row, 1, new QStandardItem(QString(it->getSpaceOrOperator().c_str()))); -
trunk/yao/src/interface/src/ConstantWindow.cpp
r391 r419 1 1 //! \file ConstantWindow.cpp 2 2 //! \brief Implementation of the Constant window for visual_YAO. 3 //! \version 2010/0 7/30(yyyy/mm/dd)3 //! \version 2010/09/01 (yyyy/mm/dd) 4 4 //! \author MAYAKI Abdouramane & MAYOMBO Alexis. 5 5 -
trunk/yao/src/interface/src/ContextWindow.cpp
r382 r419 1 1 //! \file ContextWindow.cpp 2 2 //! \brief Implementation of the Context window for visual_YAO. 3 //! \version 2010/0 6/30(yyyy/mm/dd)3 //! \version 2010/09/01 (yyyy/mm/dd) 4 4 //! \author MAYAKI Abdouramane. 5 5 -
trunk/yao/src/interface/src/HatNameWindow.cpp
r389 r419 1 1 //! \brief Implementation of the HatName window for visual_YAO. 2 //! \version 20 09/11/09(yyyy/mm/dd)2 //! \version 2010/09/01 (yyyy/mm/dd) 3 3 //! \author MAYAKI Abdouramane & MAYOMBO Alexis. 4 4 -
trunk/yao/src/interface/src/InsertFCTWindow.cpp
r370 r419 1 1 //! \file InsertFCTWindow.cpp 2 2 //! \brief Implementation of the Defval window for visual_YAO. 3 //! \version 2010/0 6/30(yyyy/mm/dd)3 //! \version 2010/09/01 (yyyy/mm/dd) 4 4 //! \author MAYAKI Abdouramane. 5 5 -
trunk/yao/src/interface/src/MainWindow.cpp
r400 r419 75 75 } 76 76 77 /*************************************** **** Implementation of the method setTitle() *****************************************************************/77 /*************************************** Implementation of the contructor MainWindow(Table <Constant> aConstant) *********************************/ 78 78 MainWindow::MainWindow(Table <Constant> aConstantTable): theConstantTablePt(aConstantTable) 79 79 { … … 165 165 actionSaveProject->setEnabled(false); // Option désactivée par défaut. 166 166 actionSaveProject->setStatusTip("Pour sauvegarder le projet en cours"); 167 connect(actionSaveProject, SIGNAL(triggered()), this, SLOT(save())); 167 168 168 169 actionSaveAsProject = new QAction(tr("Enregistrer sous"), this); … … 210 211 211 212 connect(actionGenerationD, SIGNAL(triggered()), this, SLOT(generateDFile())); 213 //connect(actionGenerationD, SIGNAL(triggered()), this, SLOT(information())); 212 214 213 215 actionCompilation = new QAction(tr("Compilation"), this); … … 516 518 517 519 } 518 520 /**************************************** Implementation of the method save() (SLOT) *******************************************************/ 521 void MainWindow::save() { 522 523 generateDFile(); 524 setWindowModified(false); 525 526 } 519 527 /**************************************** Implementation of the method saveAs() (SLOT) *******************************************************/ 520 528 void MainWindow::saveAs() { … … 522 530 523 531 m_newProjectWindow = new NewProjectWindow ; 524 m_newProjectWindow->setWindowTitle("testhj");532 //m_newProjectWindow->setWindowTitle("testhj"); 525 533 m_newProjectName = m_newProjectWindow->getProjectName(); 526 534 m_projectPath = m_newProjectWindow->getProjectPath(); … … 536 544 //QString cheminFichier = dialog->getExistingDirectory(this, tr("Enregistrement d'un projet."), "."); 537 545 //m_newProjectName = cheminFichier.toStdString(); 538 //generateDFile(cheminFichier.toStdString()+ "/");546 generateDFile(m_projectPath + "/"); 539 547 //cout << cheminFichier.toStdString() << endl; 540 548 … … 546 554 547 555 QString cheminFichier = dialogue->getOpenFileName(this, tr("Ouverture d'un project existant."), QDir::homePath(), tr("*.d *.i *.txt")); //Retourne le chemin du fichier. 548 549 QProcess builder; 556 FilePath localName(cheminFichier.toStdString()); 557 setProjectName(localName.getTitle()); 558 setProjectPath(localName.getLocation()); 559 setTitle(); 560 QProcess builder;//To lanch an external command. Example: "ls -l" 550 561 QString test(""); 551 562 builder.setProcessChannelMode(QProcess::MergedChannels); 552 builder.start("Yao9Generator " + cheminFichier);// , QStringList()563 builder.start("Yao9Generator " + cheminFichier);//Will execute the linux command 553 564 if (!builder.waitForFinished()) 554 565 qDebug() << "Make failed:" << builder.errorString(); 555 566 else { 556 test = builder.readAll(); 557 istringstream iss(test.toStdString()); 567 test = builder.readAll();//the results are saved in a string format. 568 istringstream iss(test.toStdString()); //To have each word that compose the string. 558 569 FilePath aString, theShape, name, parent, aType, boot, offset, step, size; 559 570 vector <int> theShapeVector; 560 571 561 while ( getline(iss, aString, '\n' ) ) 572 while ( getline(iss, aString, '\n' ) ) // Here we notified that the words in the string are separated by "\n" 562 573 { 563 if (aString.getExtension() == ".def1") 574 if (aString.getExtension() == ".def1")// 564 575 { 565 576 //cout << aString.getTitle() << endl; … … 782 793 //} 783 794 if (!theTrajectoryTable.empty()) { 784 description << "#TRAJ ECTOIRESname type uptime offtime dtime steptime ------------------------------------------" << endl;795 description << "#TRAJ name type uptime offtime dtime steptime ------------------------------------------" << endl; 785 796 for (Table<Trajectory>::iterator it = theTrajectoryTable.begin(); it != theTrajectoryTable.end(); it++) 786 797 description << "traj " << it->getName() << " " << it->getType() << " " << it->getBoot() << " " << it->getOffset() << " " << it->getStep() << " " << it->getSize()<< " " << endl; … … 790 801 description << "#SPACE name type dim1 [[dim2]---[dim3]] traj ---------------------------------------------------" << endl; 791 802 for (Table<Space>::iterator it = theSpaceTable.begin(); it != theSpaceTable.end(); it++) 792 description << "space " << it->getProperty(0) << " " << it->getProperty(1) << " " << it->getProperty(2) << endl;803 description << "space " << it->getProperty(0) << " M " << it->getProperty(1) << " " << it->getProperty(2) << endl; 793 804 description << endl; 794 805 } … … 830 841 831 842 description.close(); 832 QMessageBox::about(this, "Avis", "Un fichier de description portant le nom du projet en cours vient d'être généré.");843 //QMessageBox::about(this, "Avis", "Un fichier de description portant le nom du projet en cours vient d'être généré."); 833 844 } 834 845 -
trunk/yao/src/interface/src/ModulWindow.cpp
r391 r419 1 1 //! \file ModulWindow.cpp 2 2 //! \brief Implementation of the Modul window for visual_YAO. 3 //! \version 2010/0 7/30(yyyy/mm/dd)3 //! \version 2010/09/01 (yyyy/mm/dd) 4 4 //! \author MAYAKI Abdouramane. 5 5 -
trunk/yao/src/interface/src/NetwardWindow.cpp
r370 r419 1 1 //! \file NetwardWindow.cpp 2 2 //! \brief Implementation of the Netward window for visual_YAO. 3 //! \version 2010/0 6/30(yyyy/mm/dd)3 //! \version 2010/09/01 (yyyy/mm/dd) 4 4 //! \author MAYAKI Abdouramane. 5 5 -
trunk/yao/src/interface/src/OperaWindow.cpp
r381 r419 1 1 //! \file OperaWindow.cpp 2 2 //! \brief Implementation of the Operator window. 3 //! \version 2010/0 6/24(yyyy/mm/dd)3 //! \version 2010/09/01 (yyyy/mm/dd) 4 4 //! \author MAYAKI Abdouramane. 5 5 /* -
trunk/yao/src/interface/src/OrderWindow.cpp
r400 r419 1 1 //! \file OrderWindow.cpp 2 2 //! \brief Implementation of the OrderWindow window for visual_YAO. 3 //! \version 2010/0 6/22(yyyy/mm/dd)3 //! \version 2010/09/01 (yyyy/mm/dd) 4 4 //! \author MAYAKI Abdouramane. 5 5 … … 30 30 31 31 setFixedWidth(baseSize().width() + 765); 32 m_comboTrajName->insertItem(0, ""); 32 33 34 for (Table<Trajectory>::iterator it = m_trajectoryTable->begin(); it != m_trajectoryTable->end(); it++) { 35 m_comboTrajName->insertItem(1, QString(it->getName().c_str())); 36 } 37 38 for (Table<Space>::iterator it = m_spaceTable->begin(); it != m_spaceTable->end(); it++) { 39 40 m_comboSpaceOrOperaName->insertItem(1, QString(it->getName().c_str())); 41 m_comboSpaceName->insertItem(1, QString(it->getName().c_str())); 42 } 33 43 m_orderModel = new QStandardItemModel(0, 5); 44 45 34 46 } 35 47 -
trunk/yao/src/interface/src/SpaceWindow.cpp
r399 r419 1 1 //! \file SpaceWindow.cpp 2 2 //! \brief Implementation of the Ctin window. 3 //! \version 2010/0 6/23(yyyy/mm/dd)3 //! \version 2010/09/01 (yyyy/mm/dd) 4 4 //! \author MAYAKI Abdouramane. 5 5 /* -
trunk/yao/src/interface/src/TrajectoryWindow.cpp
r397 r419 2 2 * \file TrajectoryWindow.cpp 3 3 * \brief Traj class for visual_YAO. 4 * \version 2010/0 6/18(yyyy/mm/dd)4 * \version 2010/09/01 (yyyy/mm/dd) 5 5 * \author MAYAKI Abdouramane. 6 6 */ -
trunk/yao/src/interface/src/include/MainWindow.hpp
r397 r419 141 141 void mainWindowIsModified(); 142 142 void saveAs(); 143 void save(); 143 144 144 145 signals : -
trunk/yao/src/interface/src/ui_/orderwindow.ui
r400 r419 8 8 <y>0</y> 9 9 <width>757</width> 10 <height>5 37</height>10 <height>547</height> 11 11 </rect> 12 12 </property> … … 20 20 <y>310</y> 21 21 <width>741</width> 22 <height>2 21</height>22 <height>231</height> 23 23 </rect> 24 24 </property> … … 47 47 <bool>false</bool> 48 48 </property> 49 <widget class="QComboBox" name=" comboBox_5">49 <widget class="QComboBox" name="m_comboSpaceName"> 50 50 <property name="geometry"> 51 51 <rect> 52 52 <x>10</x> 53 53 <y>70</y> 54 <width> 78</width>54 <width>101</width> 55 55 <height>27</height> 56 56 </rect> … … 154 154 <property name="geometry"> 155 155 <rect> 156 <x> 20</x>156 <x>3</x> 157 157 <y>30</y> 158 <width>1 48</width>158 <width>181</width> 159 159 <height>29</height> 160 160 </rect> … … 167 167 </property> 168 168 </widget> 169 </item> 170 <item> 171 <spacer name="horizontalSpacer_2"> 172 <property name="orientation"> 173 <enum>Qt::Horizontal</enum> 174 </property> 175 <property name="sizeHint" stdset="0"> 176 <size> 177 <width>40</width> 178 <height>20</height> 179 </size> 180 </property> 181 </spacer> 169 182 </item> 170 183 <item> … … 193 206 <property name="geometry"> 194 207 <rect> 195 <x> 20</x>196 <y> 20</y>197 <width>7 31</width>198 <height>2 91</height>208 <x>10</x> 209 <y>10</y> 210 <width>741</width> 211 <height>271</height> 199 212 </rect> 200 213 </property> … … 208 221 <property name="geometry"> 209 222 <rect> 210 <x> 20</x>211 <y> 190</y>223 <x>10</x> 224 <y>200</y> 212 225 <width>151</width> 213 226 <height>71</height> … … 228 241 <property name="geometry"> 229 242 <rect> 230 <x>2 00</x>243 <x>210</x> 231 244 <y>10</y> 232 <width>2 81</width>245 <width>271</width> 233 246 <height>141</height> 234 247 </rect> … … 238 251 <property name="geometry"> 239 252 <rect> 240 <x> 20</x>241 <y> 60</y>242 <width> 87</width>243 <height>12 8</height>253 <x>10</x> 254 <y>70</y> 255 <width>91</width> 256 <height>121</height> 244 257 </rect> 245 258 </property> … … 307 320 <rect> 308 321 <x>10</x> 309 <y> 20</y>310 <width>1 69</width>322 <y>30</y> 323 <width>191</width> 311 324 <height>29</height> 312 325 </rect> … … 322 335 <item> 323 336 <widget class="QComboBox" name="m_comboSpaceOrOperaName"/> 337 </item> 338 <item> 339 <spacer name="horizontalSpacer"> 340 <property name="orientation"> 341 <enum>Qt::Horizontal</enum> 342 </property> 343 <property name="sizeHint" stdset="0"> 344 <size> 345 <width>20</width> 346 <height>20</height> 347 </size> 348 </property> 349 </spacer> 324 350 </item> 325 351 </layout> … … 408 434 <tabstop>groupSpaceIntraj</tabstop> 409 435 <tabstop>m_comboTrajName</tabstop> 410 <tabstop> comboBox_5</tabstop>436 <tabstop>m_comboSpaceName</tabstop> 411 437 <tabstop>listView</tabstop> 412 438 <tabstop>pushButton_5</tabstop>
Note: See TracChangeset
for help on using the changeset viewer.