- Timestamp:
- 09/15/10 18:04:16 (14 years ago)
- Location:
- trunk/yao/src/interface
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yao/src/interface/Makefile
r394 r428 1 1 ############################################################################# 2 2 # Makefile for building: interface 3 # Generated by qmake (2.01a) (Qt 4.6. 3) on: lun. août 2 08:22:4320103 # Generated by qmake (2.01a) (Qt 4.6.2) on: jeu. sept. 2 12:15:59 2010 4 4 # Project: interface.pro 5 5 # Template: app … … 12 12 CXX = g++ 13 13 DEFINES = -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED 14 CFLAGS = -pipe -O2 - Wall -W -D_REENTRANT $(DEFINES)15 CXXFLAGS = -pipe -O2 - Wall -W -D_REENTRANT $(DEFINES)16 INCPATH = -I/usr/ share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -Isrc/include -I. -I../../share/boost_1_39_014 CFLAGS = -pipe -O2 -g -pipe #-Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -Wall -W -D_REENTRANT $(DEFINES) 15 CXXFLAGS = -pipe -O2 -g -pipe # -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -Wall -W -D_REENTRANT $(DEFINES) 16 INCPATH = -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include -I. -Isrc/include -I../../share/antlr-2.7.7/lib/cpp/ -I../../share/boost_1_39_0 -I. 17 17 LINK = g++ 18 LFLAGS = -Wl,- O119 LIBS = $(SUBLIBS) -L/usr/lib -lQtGui - lQtCore -lpthread18 LFLAGS = -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,-O1 19 LIBS = $(SUBLIBS) -L/usr/lib -lQtGui -L/usr/lib -lQtCore -lpthread 20 20 AR = ar cqs 21 21 RANLIB = … … 27 27 COPY_FILE = $(COPY) 28 28 COPY_DIR = $(COPY) -r 29 STRIP = strip29 STRIP = 30 30 INSTALL_FILE = install -m 644 -p 31 31 INSTALL_DIR = $(COPY_DIR) … … 111 111 moc_SpaceWindow.o \ 112 112 moc_TrajectoryWindow.o 113 DIST = /usr/ share/qt4/mkspecs/common/g++.conf \114 /usr/ share/qt4/mkspecs/common/unix.conf \115 /usr/ share/qt4/mkspecs/common/linux.conf \116 /usr/ share/qt4/mkspecs/qconfig.pri \117 /usr/ share/qt4/mkspecs/features/qt_functions.prf \118 /usr/ share/qt4/mkspecs/features/qt_config.prf \119 /usr/ share/qt4/mkspecs/features/exclusive_builds.prf \120 /usr/ share/qt4/mkspecs/features/default_pre.prf \121 /usr/ share/qt4/mkspecs/features/release.prf \122 /usr/ share/qt4/mkspecs/features/default_post.prf \123 /usr/ share/qt4/mkspecs/features/warn_on.prf \124 /usr/ share/qt4/mkspecs/features/qt.prf \125 /usr/ share/qt4/mkspecs/features/unix/thread.prf \126 /usr/ share/qt4/mkspecs/features/moc.prf \127 /usr/ share/qt4/mkspecs/features/resources.prf \128 /usr/ share/qt4/mkspecs/features/uic.prf \129 /usr/ share/qt4/mkspecs/features/yacc.prf \130 /usr/ share/qt4/mkspecs/features/lex.prf \131 /usr/ share/qt4/mkspecs/features/include_source_dir.prf \113 DIST = /usr/lib/qt4/mkspecs/common/g++.conf \ 114 /usr/lib/qt4/mkspecs/common/unix.conf \ 115 /usr/lib/qt4/mkspecs/common/linux.conf \ 116 /usr/lib/qt4/mkspecs/qconfig.pri \ 117 /usr/lib/qt4/mkspecs/features/qt_functions.prf \ 118 /usr/lib/qt4/mkspecs/features/qt_config.prf \ 119 /usr/lib/qt4/mkspecs/features/exclusive_builds.prf \ 120 /usr/lib/qt4/mkspecs/features/default_pre.prf \ 121 /usr/lib/qt4/mkspecs/features/release.prf \ 122 /usr/lib/qt4/mkspecs/features/default_post.prf \ 123 /usr/lib/qt4/mkspecs/features/warn_on.prf \ 124 /usr/lib/qt4/mkspecs/features/qt.prf \ 125 /usr/lib/qt4/mkspecs/features/unix/thread.prf \ 126 /usr/lib/qt4/mkspecs/features/moc.prf \ 127 /usr/lib/qt4/mkspecs/features/resources.prf \ 128 /usr/lib/qt4/mkspecs/features/uic.prf \ 129 /usr/lib/qt4/mkspecs/features/yacc.prf \ 130 /usr/lib/qt4/mkspecs/features/lex.prf \ 131 /usr/lib/qt4/mkspecs/features/include_source_dir.prf \ 132 132 interface.pro 133 133 QMAKE_TARGET = interface … … 162 162 $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) 163 163 164 Makefile: interface.pro /usr/ share/qt4/mkspecs/linux-g++/qmake.conf /usr/share/qt4/mkspecs/common/g++.conf \165 /usr/ share/qt4/mkspecs/common/unix.conf \166 /usr/ share/qt4/mkspecs/common/linux.conf \167 /usr/ share/qt4/mkspecs/qconfig.pri \168 /usr/ share/qt4/mkspecs/features/qt_functions.prf \169 /usr/ share/qt4/mkspecs/features/qt_config.prf \170 /usr/ share/qt4/mkspecs/features/exclusive_builds.prf \171 /usr/ share/qt4/mkspecs/features/default_pre.prf \172 /usr/ share/qt4/mkspecs/features/release.prf \173 /usr/ share/qt4/mkspecs/features/default_post.prf \174 /usr/ share/qt4/mkspecs/features/warn_on.prf \175 /usr/ share/qt4/mkspecs/features/qt.prf \176 /usr/ share/qt4/mkspecs/features/unix/thread.prf \177 /usr/ share/qt4/mkspecs/features/moc.prf \178 /usr/ share/qt4/mkspecs/features/resources.prf \179 /usr/ share/qt4/mkspecs/features/uic.prf \180 /usr/ share/qt4/mkspecs/features/yacc.prf \181 /usr/ share/qt4/mkspecs/features/lex.prf \182 /usr/ share/qt4/mkspecs/features/include_source_dir.prf \164 Makefile: interface.pro /usr/lib/qt4/mkspecs/linux-g++/qmake.conf /usr/lib/qt4/mkspecs/common/g++.conf \ 165 /usr/lib/qt4/mkspecs/common/unix.conf \ 166 /usr/lib/qt4/mkspecs/common/linux.conf \ 167 /usr/lib/qt4/mkspecs/qconfig.pri \ 168 /usr/lib/qt4/mkspecs/features/qt_functions.prf \ 169 /usr/lib/qt4/mkspecs/features/qt_config.prf \ 170 /usr/lib/qt4/mkspecs/features/exclusive_builds.prf \ 171 /usr/lib/qt4/mkspecs/features/default_pre.prf \ 172 /usr/lib/qt4/mkspecs/features/release.prf \ 173 /usr/lib/qt4/mkspecs/features/default_post.prf \ 174 /usr/lib/qt4/mkspecs/features/warn_on.prf \ 175 /usr/lib/qt4/mkspecs/features/qt.prf \ 176 /usr/lib/qt4/mkspecs/features/unix/thread.prf \ 177 /usr/lib/qt4/mkspecs/features/moc.prf \ 178 /usr/lib/qt4/mkspecs/features/resources.prf \ 179 /usr/lib/qt4/mkspecs/features/uic.prf \ 180 /usr/lib/qt4/mkspecs/features/yacc.prf \ 181 /usr/lib/qt4/mkspecs/features/lex.prf \ 182 /usr/lib/qt4/mkspecs/features/include_source_dir.prf \ 183 183 /usr/lib/libQtGui.prl \ 184 184 /usr/lib/libQtCore.prl 185 185 $(QMAKE) -unix -o Makefile interface.pro 186 /usr/ share/qt4/mkspecs/common/g++.conf:187 /usr/ share/qt4/mkspecs/common/unix.conf:188 /usr/ share/qt4/mkspecs/common/linux.conf:189 /usr/ share/qt4/mkspecs/qconfig.pri:190 /usr/ share/qt4/mkspecs/features/qt_functions.prf:191 /usr/ share/qt4/mkspecs/features/qt_config.prf:192 /usr/ share/qt4/mkspecs/features/exclusive_builds.prf:193 /usr/ share/qt4/mkspecs/features/default_pre.prf:194 /usr/ share/qt4/mkspecs/features/release.prf:195 /usr/ share/qt4/mkspecs/features/default_post.prf:196 /usr/ share/qt4/mkspecs/features/warn_on.prf:197 /usr/ share/qt4/mkspecs/features/qt.prf:198 /usr/ share/qt4/mkspecs/features/unix/thread.prf:199 /usr/ share/qt4/mkspecs/features/moc.prf:200 /usr/ share/qt4/mkspecs/features/resources.prf:201 /usr/ share/qt4/mkspecs/features/uic.prf:202 /usr/ share/qt4/mkspecs/features/yacc.prf:203 /usr/ share/qt4/mkspecs/features/lex.prf:204 /usr/ share/qt4/mkspecs/features/include_source_dir.prf:186 /usr/lib/qt4/mkspecs/common/g++.conf: 187 /usr/lib/qt4/mkspecs/common/unix.conf: 188 /usr/lib/qt4/mkspecs/common/linux.conf: 189 /usr/lib/qt4/mkspecs/qconfig.pri: 190 /usr/lib/qt4/mkspecs/features/qt_functions.prf: 191 /usr/lib/qt4/mkspecs/features/qt_config.prf: 192 /usr/lib/qt4/mkspecs/features/exclusive_builds.prf: 193 /usr/lib/qt4/mkspecs/features/default_pre.prf: 194 /usr/lib/qt4/mkspecs/features/release.prf: 195 /usr/lib/qt4/mkspecs/features/default_post.prf: 196 /usr/lib/qt4/mkspecs/features/warn_on.prf: 197 /usr/lib/qt4/mkspecs/features/qt.prf: 198 /usr/lib/qt4/mkspecs/features/unix/thread.prf: 199 /usr/lib/qt4/mkspecs/features/moc.prf: 200 /usr/lib/qt4/mkspecs/features/resources.prf: 201 /usr/lib/qt4/mkspecs/features/uic.prf: 202 /usr/lib/qt4/mkspecs/features/yacc.prf: 203 /usr/lib/qt4/mkspecs/features/lex.prf: 204 /usr/lib/qt4/mkspecs/features/include_source_dir.prf: 205 205 /usr/lib/libQtGui.prl: 206 206 /usr/lib/libQtCore.prl: … … 225 225 226 226 227 check: first228 229 227 mocclean: compiler_moc_header_clean compiler_moc_source_clean 230 228 … … 250 248 ../YAOObjects/Constant.hpp \ 251 249 src/include/ConnectionWindow.hpp 252 /usr/ bin/moc-qt4$(DEFINES) $(INCPATH) src/include/ConnectionWindow.hpp -o moc_ConnectionWindow.cpp250 /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/ConnectionWindow.hpp -o moc_ConnectionWindow.cpp 253 251 254 252 moc_ConstantWindow.cpp: src/include/HatNameWindow.hpp \ … … 290 288 ui_constantwindow.h \ 291 289 src/include/ConstantWindow.hpp 292 /usr/ bin/moc-qt4$(DEFINES) $(INCPATH) src/include/ConstantWindow.hpp -o moc_ConstantWindow.cpp290 /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/ConstantWindow.hpp -o moc_ConstantWindow.cpp 293 291 294 292 moc_ContextWindow.cpp: ui_contextwindow.h \ … … 330 328 ../YAOObjects/Order.hpp \ 331 329 src/include/ContextWindow.hpp 332 /usr/ bin/moc-qt4$(DEFINES) $(INCPATH) src/include/ContextWindow.hpp -o moc_ContextWindow.cpp330 /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/ContextWindow.hpp -o moc_ContextWindow.cpp 333 331 334 332 moc_FilesViewer.cpp: src/include/FilesViewer.hpp 335 /usr/ bin/moc-qt4$(DEFINES) $(INCPATH) src/include/FilesViewer.hpp -o moc_FilesViewer.cpp333 /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/FilesViewer.hpp -o moc_FilesViewer.cpp 336 334 337 335 moc_HatNameWindow.cpp: ../help/FilePath.hpp \ … … 342 340 ../YAOObjects/Table.hpp \ 343 341 src/include/HatNameWindow.hpp 344 /usr/ bin/moc-qt4$(DEFINES) $(INCPATH) src/include/HatNameWindow.hpp -o moc_HatNameWindow.cpp342 /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/HatNameWindow.hpp -o moc_HatNameWindow.cpp 345 343 346 344 moc_InsertFCTWindow.cpp: ui_insertfctwindow.h \ … … 351 349 ../help/Enforcer.hpp \ 352 350 src/include/InsertFCTWindow.hpp 353 /usr/ bin/moc-qt4$(DEFINES) $(INCPATH) src/include/InsertFCTWindow.hpp -o moc_InsertFCTWindow.cpp351 /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/InsertFCTWindow.hpp -o moc_InsertFCTWindow.cpp 354 352 355 353 moc_MainWindow.cpp: ../YAOObjects/Modul.hpp \ … … 398 396 ui_newprojectwindow.h \ 399 397 src/include/MainWindow.hpp 400 /usr/ bin/moc-qt4$(DEFINES) $(INCPATH) src/include/MainWindow.hpp -o moc_MainWindow.cpp398 /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/MainWindow.hpp -o moc_MainWindow.cpp 401 399 402 400 moc_ModulWindow.cpp: src/include/MainWindowController.hpp \ … … 438 436 ui_modulwindow.h \ 439 437 src/include/ModulWindow.hpp 440 /usr/ bin/moc-qt4$(DEFINES) $(INCPATH) src/include/ModulWindow.hpp -o moc_ModulWindow.cpp438 /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/ModulWindow.hpp -o moc_ModulWindow.cpp 441 439 442 440 moc_NetwardWindow.cpp: ../YAOObjects/Constant.hpp \ … … 448 446 ui_netwardwindow.h \ 449 447 src/include/NetwardWindow.hpp 450 /usr/ bin/moc-qt4$(DEFINES) $(INCPATH) src/include/NetwardWindow.hpp -o moc_NetwardWindow.cpp448 /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/NetwardWindow.hpp -o moc_NetwardWindow.cpp 451 449 452 450 moc_NewProjectWindow.cpp: ui_newprojectwindow.h \ 453 451 src/include/NewProjectWindow.hpp 454 /usr/ bin/moc-qt4$(DEFINES) $(INCPATH) src/include/NewProjectWindow.hpp -o moc_NewProjectWindow.cpp452 /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/NewProjectWindow.hpp -o moc_NewProjectWindow.cpp 455 453 456 454 moc_OperaWindow.cpp: ui_operawindow.h \ … … 466 464 ../YAOObjects/Identifier.hpp \ 467 465 src/include/OperaWindow.hpp 468 /usr/ bin/moc-qt4$(DEFINES) $(INCPATH) src/include/OperaWindow.hpp -o moc_OperaWindow.cpp466 /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/OperaWindow.hpp -o moc_OperaWindow.cpp 469 467 470 468 moc_OrderWindow.cpp: ui_orderwindow.h \ 471 469 ../YAOObjects/Table.hpp \ 470 ../YAOObjects/Operator.hpp \ 471 ../YAOObjects/Component.hpp \ 472 ../YAOObjects/Object.hpp \ 473 ../help/Helper.hpp \ 474 ../help/Enforcer.hpp \ 475 ../YAOObjects/SpaceExtent.hpp \ 476 ../YAOObjects/Trajectory.hpp \ 472 477 ../YAOObjects/Order.hpp \ 473 ../help/Helper.hpp \ 474 ../help/Enforcer.hpp \ 475 ../YAOObjects/Modul.hpp \ 476 ../YAOObjects/Neuron.hpp \ 477 ../YAOObjects/Object.hpp \ 478 ../YAOObjects/Component.hpp \ 479 ../YAOObjects/Operator.hpp \ 480 ../YAOObjects/SpaceExtent.hpp \ 481 ../YAOObjects/Trajectory.hpp \ 478 ../YAOObjects/Modul.hpp \ 479 ../YAOObjects/Neuron.hpp \ 482 480 ../YAOObjects/Context.hpp \ 483 481 ../../include/Yaoopt.h \ 484 482 ../YAOObjects/Connection.hpp \ 485 483 src/include/OrderWindow.hpp 486 /usr/ bin/moc-qt4$(DEFINES) $(INCPATH) src/include/OrderWindow.hpp -o moc_OrderWindow.cpp484 /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/OrderWindow.hpp -o moc_OrderWindow.cpp 487 485 488 486 moc_SpaceWindow.cpp: ui_spacewindow.h \ … … 498 496 ../YAOObjects/Identifier.hpp \ 499 497 src/include/SpaceWindow.hpp 500 /usr/ bin/moc-qt4$(DEFINES) $(INCPATH) src/include/SpaceWindow.hpp -o moc_SpaceWindow.cpp498 /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/SpaceWindow.hpp -o moc_SpaceWindow.cpp 501 499 502 500 moc_TrajectoryWindow.cpp: ui_trajectorywindow.h \ … … 508 506 ../YAOObjects/Constant.hpp \ 509 507 src/include/TrajectoryWindow.hpp 510 /usr/ bin/moc-qt4$(DEFINES) $(INCPATH) src/include/TrajectoryWindow.hpp -o moc_TrajectoryWindow.cpp508 /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/TrajectoryWindow.hpp -o moc_TrajectoryWindow.cpp 511 509 512 510 compiler_rcc_make_all: … … 521 519 -$(DEL_FILE) ui_connectionwindow.h ui_constantwindow.h ui_contextwindow.h ui_insertfctwindow.h ui_modulwindow.h ui_netwardwindow.h ui_newprojectwindow.h ui_operawindow.h ui_orderwindow.h ui_spacewindow.h ui_trajectorywindow.h 522 520 ui_connectionwindow.h: src/ui_/connectionwindow.ui 523 /usr/ bin/uic-qt4src/ui_/connectionwindow.ui -o ui_connectionwindow.h521 /usr/lib/qt4/bin/uic src/ui_/connectionwindow.ui -o ui_connectionwindow.h 524 522 525 523 ui_constantwindow.h: src/ui_/constantwindow.ui 526 /usr/ bin/uic-qt4src/ui_/constantwindow.ui -o ui_constantwindow.h524 /usr/lib/qt4/bin/uic src/ui_/constantwindow.ui -o ui_constantwindow.h 527 525 528 526 ui_contextwindow.h: src/ui_/contextwindow.ui 529 /usr/ bin/uic-qt4src/ui_/contextwindow.ui -o ui_contextwindow.h527 /usr/lib/qt4/bin/uic src/ui_/contextwindow.ui -o ui_contextwindow.h 530 528 531 529 ui_insertfctwindow.h: src/ui_/insertfctwindow.ui 532 /usr/ bin/uic-qt4src/ui_/insertfctwindow.ui -o ui_insertfctwindow.h530 /usr/lib/qt4/bin/uic src/ui_/insertfctwindow.ui -o ui_insertfctwindow.h 533 531 534 532 ui_modulwindow.h: src/ui_/modulwindow.ui 535 /usr/ bin/uic-qt4src/ui_/modulwindow.ui -o ui_modulwindow.h533 /usr/lib/qt4/bin/uic src/ui_/modulwindow.ui -o ui_modulwindow.h 536 534 537 535 ui_netwardwindow.h: src/ui_/netwardwindow.ui 538 /usr/ bin/uic-qt4src/ui_/netwardwindow.ui -o ui_netwardwindow.h536 /usr/lib/qt4/bin/uic src/ui_/netwardwindow.ui -o ui_netwardwindow.h 539 537 540 538 ui_newprojectwindow.h: src/ui_/newprojectwindow.ui 541 /usr/ bin/uic-qt4src/ui_/newprojectwindow.ui -o ui_newprojectwindow.h539 /usr/lib/qt4/bin/uic src/ui_/newprojectwindow.ui -o ui_newprojectwindow.h 542 540 543 541 ui_operawindow.h: src/ui_/operawindow.ui 544 /usr/ bin/uic-qt4src/ui_/operawindow.ui -o ui_operawindow.h542 /usr/lib/qt4/bin/uic src/ui_/operawindow.ui -o ui_operawindow.h 545 543 546 544 ui_orderwindow.h: src/ui_/orderwindow.ui 547 /usr/ bin/uic-qt4src/ui_/orderwindow.ui -o ui_orderwindow.h545 /usr/lib/qt4/bin/uic src/ui_/orderwindow.ui -o ui_orderwindow.h 548 546 549 547 ui_spacewindow.h: src/ui_/spacewindow.ui 550 /usr/ bin/uic-qt4src/ui_/spacewindow.ui -o ui_spacewindow.h548 /usr/lib/qt4/bin/uic src/ui_/spacewindow.ui -o ui_spacewindow.h 551 549 552 550 ui_trajectorywindow.h: src/ui_/trajectorywindow.ui 553 /usr/ bin/uic-qt4src/ui_/trajectorywindow.ui -o ui_trajectorywindow.h551 /usr/lib/qt4/bin/uic src/ui_/trajectorywindow.ui -o ui_trajectorywindow.h 554 552 555 553 compiler_yacc_decl_make_all: … … 887 885 ui_orderwindow.h \ 888 886 ../YAOObjects/Table.hpp \ 887 ../YAOObjects/Operator.hpp \ 888 ../YAOObjects/Component.hpp \ 889 ../YAOObjects/Object.hpp \ 890 ../help/Helper.hpp \ 891 ../help/Enforcer.hpp \ 892 ../YAOObjects/SpaceExtent.hpp \ 893 ../YAOObjects/Trajectory.hpp \ 889 894 ../YAOObjects/Order.hpp \ 890 ../help/Helper.hpp \ 891 ../help/Enforcer.hpp \ 892 ../YAOObjects/Modul.hpp \ 893 ../YAOObjects/Neuron.hpp \ 894 ../YAOObjects/Object.hpp \ 895 ../YAOObjects/Component.hpp \ 896 ../YAOObjects/Operator.hpp \ 897 ../YAOObjects/SpaceExtent.hpp \ 898 ../YAOObjects/Trajectory.hpp \ 895 ../YAOObjects/Modul.hpp \ 896 ../YAOObjects/Neuron.hpp \ 899 897 ../YAOObjects/Context.hpp \ 900 898 ../../include/Yaoopt.h \ -
trunk/yao/src/interface/src/ContextWindow.cpp
r419 r428 19 19 //! \brief Implementation of the Context window for visual_YAO. 20 20 /******************************************************************************************************************************************************/ 21 ContextWindow::ContextWindow(Context *aContext, Table <Constant> *aConstantTable, MainWindowController *mwc,QWidget *parent) : QWidget(parent), localConstantTable(NULL), m_contextModel(NULL), O_EXTOBJModele(NULL) {21 ContextWindow::ContextWindow(Context *aContext, Table <Constant> *aConstantTable, QWidget *parent) : QWidget(parent), localConstantTable(NULL), m_contextModel(NULL), O_EXTOBJModele(NULL) { 22 22 23 23 setupUi(this); 24 25 24 localConstantTable = aConstantTable; 26 25 m_localContext = aContext; … … 42 41 43 42 for (Table<Constant>::reverse_iterator it = localConstantTable->rbegin(); it != localConstantTable->rend(); it++) 44 { 43 { //To full the some comboboxs. 45 44 m_comboContextO_PARALLEL->insertItem(2, QString(it->getName().c_str())); 46 45 m_comboContextO_NETWARD->insertItem(1, QString(it->getName().c_str())); … … 48 47 } 49 48 50 filesListModele = new QStringListModel(filesList);51 52 O_EXTOBJModele = new QStandardItemModel(0, 1) ; 49 //filesListModele = new QStringListModel(filesList); 50 51 O_EXTOBJModele = new QStandardItemModel(0, 1) ;//To manage the O_EXTOBJ's case. This is the model. 53 52 54 53 for (vector <string>::reverse_iterator it = m_fileList.rbegin(); it != m_fileList.rend(); it++ ) … … 78 77 /* m_contextModel->setItem(row, 0, new QStandardItem()); 79 78 80 */ m_contextParametersToString.clear(); 79 */ 80 m_contextParameters.clear(); 81 81 82 string option = "option "; 82 83 string o_real = m_comboContextO_REAL->currentText().toStdString(), … … 149 150 for (vector <string>::reverse_iterator it = m_fileList.rbegin(); it != m_fileList.rend(); it++ ) 150 151 { 151 //string test.insert("");152 152 string test = "option "; 153 m_contextParametersToString.append(test.append(it->c_str()));// << endl; 154 m_contextParametersToString.append("\n"); 155 156 //cout << "coucou" << endl; 153 m_contextParameters.append(test.append(it->c_str()));// << endl; 154 m_contextParameters.append("\n"); 155 157 156 } 158 157 159 158 if (!o_real2.empty()) 160 m_contextParameters ToString = o_real2 + "\n";159 m_contextParameters = "\n" + o_real2 ; 161 160 if (!o_mqn2.empty()) 162 m_contextParameters ToString += o_mqn2 + "\n";161 m_contextParameters += "\n" + o_mqn2 ; 163 162 if (!o_parallel2.empty()) 164 m_contextParameters ToString += o_parallel2 + "\n";163 m_contextParameters += "\n" + o_parallel2 ; 165 164 if (!o_netward2.empty()) 166 m_contextParameters ToString += o_netward2 + "\n";165 m_contextParameters += "\n" + o_netward2 ; 167 166 if (m_checkBoxO_GRADTEST->isChecked()) 168 m_contextParameters ToString += "option O_GRADTEST \n";167 m_contextParameters += "\noption O_GRADTEST "; 169 168 if (m_checkBoxO_VARINCR->isChecked()) 170 m_contextParameters ToString += "option O_VARINCR \n";169 m_contextParameters += "\noption O_VARINCR "; 171 170 if (m_checkBoxO_DBG_NANF->isChecked()) 172 m_contextParameters ToString += "option O_DBG_NANF \n";171 m_contextParameters += "\noption O_DBG_NANF "; 173 172 if (m_checkBoxO_DBG_TING->isChecked()) 174 m_contextParameters ToString += "option O_DBG_TING \n";173 m_contextParameters += "\noption O_DBG_TING "; 175 174 if (m_checkBoxO_DBG_BETA->isChecked()) 176 m_contextParameters ToString += "option O_DBG_BETA \n";175 m_contextParameters += "\noption O_DBG_BETA "; 177 176 if (m_checkBoxO_DBG_TRC_FWARD->isChecked()) 178 m_contextParameters ToString += "option O_DBG_TRC_FWARD \n";177 m_contextParameters += "\noption O_DBG_TRC_FWARD "; 179 178 if (m_checkBoxO_DBG_TRC_BWARD->isChecked()) 180 m_contextParameters ToString += "option O_DBG_TRC_BWARD \n";179 m_contextParameters += "\noption O_DBG_TRC_BWARD "; 181 180 if (m_checkBoxO_DBG_TRC_LWARD->isChecked()) 182 m_contextParameters ToString += "option O_DBG_TRC_LWARD \n";181 m_contextParameters += "\noption O_DBG_TRC_LWARD "; 183 182 if (m_checkBoxO_DBG_TRC_AWARD->isChecked()) 184 m_contextParameters ToString += "option O_DBG_TRC_AWARD \n";183 m_contextParameters += "\noption O_DBG_TRC_AWARD "; 185 184 186 185 m_localContext->addExternal(m_fileList); 187 //cout << "voici les parametres: " << endl << m_contextParameters ToString<< endl;186 //cout << "voici les parametres: " << endl << m_contextParameters << endl; 188 187 189 188 eraseDataFromLineEdit(); … … 234 233 string ContextWindow::getContextParameters() { 235 234 236 return m_contextParametersToString; 237 235 //if (!m_contextParameters.empty()) 236 return m_contextParameters; 237 //else 238 } 239 /******************************** Implementation of the method isEmpty() *************************************************************************/ 240 bool ContextWindow::isEmpty() { 241 242 if (m_contextParameters.empty()) 243 return true; 244 else 245 return false; 246 238 247 } 239 248 /*************************************** Implémentation de la méthode resetParameters ****************************************************************/ … … 257 266 /*****************************************************************************************************************************/ 258 267 /****************************************************************************************************************************/ 259 QStringList ContextWindow::getContextData() { 260 261 return filesList;262 }268 //QStringList ContextWindow::getContextData() {// Get the context data saved. 269 270 // return filesList; 271 //} 263 272 264 273 /****************************************************************************************************************************/ -
trunk/yao/src/interface/src/MainWindow.cpp
r419 r428 34 34 */ 35 35 36 MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), m_constantWindow(NULL), m_hatnameWindow(NULL), m_contextWindow(NULL), m_trajectoryWindow(NULL), m_spaceWindow(NULL), m_operaWindow(NULL), m_netwardWindow(NULL), m_modulWindow(NULL), m_ctinWindow(NULL), m_orderWindow(NULL), m_insertFCTWindow(NULL), m_newProjectWindow(NULL), m_newProjectName(""), theConstantTablePt(theConstantTable) 36 MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), m_constantWindow(NULL), m_hatnameWindow(NULL), m_contextWindow(NULL), m_trajectoryWindow(NULL), m_spaceWindow(NULL), m_operaWindow(NULL), m_netwardWindow(NULL), m_modulWindow(NULL), m_ctinWindow(NULL), m_orderWindow(NULL), m_insertFCTWindow(NULL), m_newProjectWindow(NULL), m_newProjectName(""), theConstantTablePt(theConstantTable), contextTest(false) 37 37 { 38 38 … … 344 344 if (m_contextWindow == NULL) { //to test if the object is already created. 345 345 346 m_contextWindow = new ContextWindow(&theContext, &theConstantTable , &the_mwc); //mwc.getContext();346 m_contextWindow = new ContextWindow(&theContext, &theConstantTable); //mwc.getContext(); 347 347 espace.addWindow(m_contextWindow)->move(5, 0); 348 348 m_contextWindow->show(); 349 contextTest = true; 349 350 } 350 351 … … 550 551 /**************************************** Implementation of the method nouveauProjet (SLOT) *******************************************************/ 551 552 void MainWindow::openProject() { // Affiche la fenetre nouveau projet lorsqu'elle est appelée. 553 554 //filename += ".d"; 555 556 // Initilization of the lexer and lexing (wrapped from the object tokenizer) 557 // Tokenizer tokenizer("demo.d"); 558 // // Initialization of the parser and parsing (wrapped from the object tokenizer) 559 // Translator translator(tokenizer); 560 // // Code generation of the files Y1ProjectName.h and Y2ProjectName.h 561 // translator.generateCode(); 562 // exitStatus = EXIT_SUCCESS; 563 // //cout << "End application" << endl; 564 // 565 552 566 553 567 QFileDialog *dialogue = new QFileDialog(this); //Crée une boite de dialogue … … 695 709 { 696 710 delete m_contextWindow ; 697 m_contextWindow = new ContextWindow(&theContext, &theConstantTable , &the_mwc); //mwc.getContext();711 m_contextWindow = new ContextWindow(&theContext, &theConstantTable); //mwc.getContext(); 698 712 espace.addWindow(m_contextWindow)->move(350, 0); 699 713 m_contextWindow->show(); … … 787 801 description << endl; 788 802 } 789 //if (!m_contextWindow->getContextParameters().empty()) { 790 //description << "//Contexts ----------------------------------------------------------------------" << endl; 791 //description << m_contextWindow->getContextParameters() << endl; //"option " << it->toStdString() << endl; 792 // description << endl; 793 //} 803 if (contextTest) { 804 description << "#OPTION (optionAttribute)+ ---------------------------------------------------------------------" << endl; 805 description << m_contextWindow->getContextParameters() << endl; //"option " << it->toStdString() << endl; 806 // cout << m_contextWindow->getContextParameters() << endl; //"option " << it->toStdString() << endl; 807 description << endl; 808 } 794 809 if (!theTrajectoryTable.empty()) { 795 810 description << "#TRAJ name type uptime offtime dtime steptime ------------------------------------------" << endl; … … 808 823 for (Table <Operator>::iterator it = theOperaTable.begin(); it != theOperaTable.end(); it++) 809 824 description << "opera " << it->getProperty(0) << " " << it->getProperty(1) << " " << it->getProperty(2) << endl; 825 description << endl; 810 826 } 811 827 if (!theNeuronTable.empty()) { … … 823 839 description << endl; 824 840 } 825 description << "#CONNECTIONS name range[0] FROM! name range[1] range_i ( range_jkt )? -------------------------" << endl;826 /*for (QStringList::iterator it = m_ctinWindow->getDataCtin().begin(); it != m_ctinWindow->getDataCtin().end(); it++)841 /*description << "#CONNECTIONS name range[0] FROM! name range[1] range_i ( range_jkt )? -------------------------" << endl; 842 for (QStringList::iterator it = m_ctinWindow->getDataCtin().begin(); it != m_ctinWindow->getDataCtin().end(); it++) 827 843 description << "ctin " << it->toStdString() << endl; */ 844 description << endl; 828 845 if (!theFunctionTable.empty()) { 829 846 description << "#USER FUNCTIONS ( ARG )? name ----------------------------------------------------------------" << endl; -
trunk/yao/src/interface/src/include/ContextWindow.hpp
r370 r428 30 30 31 31 public : 32 ContextWindow(yao::Context *aContext, yao::Table <yao::Constant> *aConstantTable, MainWindowController *mwc,QWidget *parent=0);33 QStringList getContextData();32 ContextWindow(yao::Context *aContext, yao::Table <yao::Constant> *aConstantTable, QWidget *parent=0); 33 //QStringList getContextData(); 34 34 void eraseDataFromLineEdit(); 35 35 std::string getContextParameters(); 36 bool isEmpty(); 36 37 37 38 private slots: … … 52 53 signals : 53 54 54 55 void contextWindowIsClosed(int anInt); 55 56 56 57 private : … … 60 61 61 62 QStringList filesList; 62 QStringListModel *filesListModele;63 //QStringListModel *filesListModele; 63 64 64 65 QStandardItemModel *m_contextModel; … … 72 73 yao::Context *m_localContext; 73 74 std::vector <std::string> m_fileList; 74 std::string m_contextParameters ToString;75 std::string m_contextParameters; 75 76 yao::Table <yao::Constant> *localConstantTable; 76 77 MainWindowController *localMwc; 78 bool test; 77 79 int compteur; 78 80 -
trunk/yao/src/interface/src/include/MainWindow.hpp
r419 r428 77 77 void setActiveProject(const bool aBool); 78 78 bool isActiveProject(); 79 bool contextTest; 79 80 /*template <class R, class S> void createDefvalWindow(R *directive, S *espace) { 80 81
Note: See TracChangeset
for help on using the changeset viewer.