Changeset 428 for trunk/yao


Ignore:
Timestamp:
09/15/10 18:04:16 (14 years ago)
Author:
yerima
Message:

little bug in the context's directive is solved.

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

Legend:

Unmodified
Added
Removed
  • trunk/yao/src/interface/Makefile

    r394 r428  
    11############################################################################# 
    22# Makefile for building: interface 
    3 # Generated by qmake (2.01a) (Qt 4.6.3) on: lun. août 2 08:22:43 2010 
     3# Generated by qmake (2.01a) (Qt 4.6.2) on: jeu. sept. 2 12:15:59 2010 
    44# Project:  interface.pro 
    55# Template: app 
     
    1212CXX           = g++ 
    1313DEFINES       = -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_0 
     14CFLAGS        = -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) 
     15CXXFLAGS      = -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) 
     16INCPATH       = -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. 
    1717LINK          = g++ 
    18 LFLAGS        = -Wl,-O1 
    19 LIBS          = $(SUBLIBS)  -L/usr/lib -lQtGui -lQtCore -lpthread  
     18LFLAGS        = -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,-O1 
     19LIBS          = $(SUBLIBS)  -L/usr/lib -lQtGui -L/usr/lib -lQtCore -lpthread  
    2020AR            = ar cqs 
    2121RANLIB        =  
     
    2727COPY_FILE     = $(COPY) 
    2828COPY_DIR      = $(COPY) -r 
    29 STRIP         = strip 
     29STRIP         =  
    3030INSTALL_FILE  = install -m 644 -p 
    3131INSTALL_DIR   = $(COPY_DIR) 
     
    111111                moc_SpaceWindow.o \ 
    112112                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 \ 
     113DIST          = /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 \ 
    132132                interface.pro 
    133133QMAKE_TARGET  = interface 
     
    162162        $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) 
    163163 
    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 \ 
     164Makefile: 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 \ 
    183183                /usr/lib/libQtGui.prl \ 
    184184                /usr/lib/libQtCore.prl 
    185185        $(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: 
    205205/usr/lib/libQtGui.prl: 
    206206/usr/lib/libQtCore.prl: 
     
    225225 
    226226 
    227 check: first 
    228  
    229227mocclean: compiler_moc_header_clean compiler_moc_source_clean 
    230228 
     
    250248                ../YAOObjects/Constant.hpp \ 
    251249                src/include/ConnectionWindow.hpp 
    252         /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) src/include/ConnectionWindow.hpp -o moc_ConnectionWindow.cpp 
     250        /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/ConnectionWindow.hpp -o moc_ConnectionWindow.cpp 
    253251 
    254252moc_ConstantWindow.cpp: src/include/HatNameWindow.hpp \ 
     
    290288                ui_constantwindow.h \ 
    291289                src/include/ConstantWindow.hpp 
    292         /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) src/include/ConstantWindow.hpp -o moc_ConstantWindow.cpp 
     290        /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/ConstantWindow.hpp -o moc_ConstantWindow.cpp 
    293291 
    294292moc_ContextWindow.cpp: ui_contextwindow.h \ 
     
    330328                ../YAOObjects/Order.hpp \ 
    331329                src/include/ContextWindow.hpp 
    332         /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) src/include/ContextWindow.hpp -o moc_ContextWindow.cpp 
     330        /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/ContextWindow.hpp -o moc_ContextWindow.cpp 
    333331 
    334332moc_FilesViewer.cpp: src/include/FilesViewer.hpp 
    335         /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) src/include/FilesViewer.hpp -o moc_FilesViewer.cpp 
     333        /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/FilesViewer.hpp -o moc_FilesViewer.cpp 
    336334 
    337335moc_HatNameWindow.cpp: ../help/FilePath.hpp \ 
     
    342340                ../YAOObjects/Table.hpp \ 
    343341                src/include/HatNameWindow.hpp 
    344         /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) src/include/HatNameWindow.hpp -o moc_HatNameWindow.cpp 
     342        /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/HatNameWindow.hpp -o moc_HatNameWindow.cpp 
    345343 
    346344moc_InsertFCTWindow.cpp: ui_insertfctwindow.h \ 
     
    351349                ../help/Enforcer.hpp \ 
    352350                src/include/InsertFCTWindow.hpp 
    353         /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) src/include/InsertFCTWindow.hpp -o moc_InsertFCTWindow.cpp 
     351        /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/InsertFCTWindow.hpp -o moc_InsertFCTWindow.cpp 
    354352 
    355353moc_MainWindow.cpp: ../YAOObjects/Modul.hpp \ 
     
    398396                ui_newprojectwindow.h \ 
    399397                src/include/MainWindow.hpp 
    400         /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) src/include/MainWindow.hpp -o moc_MainWindow.cpp 
     398        /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/MainWindow.hpp -o moc_MainWindow.cpp 
    401399 
    402400moc_ModulWindow.cpp: src/include/MainWindowController.hpp \ 
     
    438436                ui_modulwindow.h \ 
    439437                src/include/ModulWindow.hpp 
    440         /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) src/include/ModulWindow.hpp -o moc_ModulWindow.cpp 
     438        /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/ModulWindow.hpp -o moc_ModulWindow.cpp 
    441439 
    442440moc_NetwardWindow.cpp: ../YAOObjects/Constant.hpp \ 
     
    448446                ui_netwardwindow.h \ 
    449447                src/include/NetwardWindow.hpp 
    450         /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) src/include/NetwardWindow.hpp -o moc_NetwardWindow.cpp 
     448        /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/NetwardWindow.hpp -o moc_NetwardWindow.cpp 
    451449 
    452450moc_NewProjectWindow.cpp: ui_newprojectwindow.h \ 
    453451                src/include/NewProjectWindow.hpp 
    454         /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) src/include/NewProjectWindow.hpp -o moc_NewProjectWindow.cpp 
     452        /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/NewProjectWindow.hpp -o moc_NewProjectWindow.cpp 
    455453 
    456454moc_OperaWindow.cpp: ui_operawindow.h \ 
     
    466464                ../YAOObjects/Identifier.hpp \ 
    467465                src/include/OperaWindow.hpp 
    468         /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) src/include/OperaWindow.hpp -o moc_OperaWindow.cpp 
     466        /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/OperaWindow.hpp -o moc_OperaWindow.cpp 
    469467 
    470468moc_OrderWindow.cpp: ui_orderwindow.h \ 
    471469                ../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 \ 
    472477                ../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 \ 
    482480                ../YAOObjects/Context.hpp \ 
    483481                ../../include/Yaoopt.h \ 
    484482                ../YAOObjects/Connection.hpp \ 
    485483                src/include/OrderWindow.hpp 
    486         /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) src/include/OrderWindow.hpp -o moc_OrderWindow.cpp 
     484        /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/OrderWindow.hpp -o moc_OrderWindow.cpp 
    487485 
    488486moc_SpaceWindow.cpp: ui_spacewindow.h \ 
     
    498496                ../YAOObjects/Identifier.hpp \ 
    499497                src/include/SpaceWindow.hpp 
    500         /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) src/include/SpaceWindow.hpp -o moc_SpaceWindow.cpp 
     498        /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/SpaceWindow.hpp -o moc_SpaceWindow.cpp 
    501499 
    502500moc_TrajectoryWindow.cpp: ui_trajectorywindow.h \ 
     
    508506                ../YAOObjects/Constant.hpp \ 
    509507                src/include/TrajectoryWindow.hpp 
    510         /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) src/include/TrajectoryWindow.hpp -o moc_TrajectoryWindow.cpp 
     508        /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/TrajectoryWindow.hpp -o moc_TrajectoryWindow.cpp 
    511509 
    512510compiler_rcc_make_all: 
     
    521519        -$(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 
    522520ui_connectionwindow.h: src/ui_/connectionwindow.ui 
    523         /usr/bin/uic-qt4 src/ui_/connectionwindow.ui -o ui_connectionwindow.h 
     521        /usr/lib/qt4/bin/uic src/ui_/connectionwindow.ui -o ui_connectionwindow.h 
    524522 
    525523ui_constantwindow.h: src/ui_/constantwindow.ui 
    526         /usr/bin/uic-qt4 src/ui_/constantwindow.ui -o ui_constantwindow.h 
     524        /usr/lib/qt4/bin/uic src/ui_/constantwindow.ui -o ui_constantwindow.h 
    527525 
    528526ui_contextwindow.h: src/ui_/contextwindow.ui 
    529         /usr/bin/uic-qt4 src/ui_/contextwindow.ui -o ui_contextwindow.h 
     527        /usr/lib/qt4/bin/uic src/ui_/contextwindow.ui -o ui_contextwindow.h 
    530528 
    531529ui_insertfctwindow.h: src/ui_/insertfctwindow.ui 
    532         /usr/bin/uic-qt4 src/ui_/insertfctwindow.ui -o ui_insertfctwindow.h 
     530        /usr/lib/qt4/bin/uic src/ui_/insertfctwindow.ui -o ui_insertfctwindow.h 
    533531 
    534532ui_modulwindow.h: src/ui_/modulwindow.ui 
    535         /usr/bin/uic-qt4 src/ui_/modulwindow.ui -o ui_modulwindow.h 
     533        /usr/lib/qt4/bin/uic src/ui_/modulwindow.ui -o ui_modulwindow.h 
    536534 
    537535ui_netwardwindow.h: src/ui_/netwardwindow.ui 
    538         /usr/bin/uic-qt4 src/ui_/netwardwindow.ui -o ui_netwardwindow.h 
     536        /usr/lib/qt4/bin/uic src/ui_/netwardwindow.ui -o ui_netwardwindow.h 
    539537 
    540538ui_newprojectwindow.h: src/ui_/newprojectwindow.ui 
    541         /usr/bin/uic-qt4 src/ui_/newprojectwindow.ui -o ui_newprojectwindow.h 
     539        /usr/lib/qt4/bin/uic src/ui_/newprojectwindow.ui -o ui_newprojectwindow.h 
    542540 
    543541ui_operawindow.h: src/ui_/operawindow.ui 
    544         /usr/bin/uic-qt4 src/ui_/operawindow.ui -o ui_operawindow.h 
     542        /usr/lib/qt4/bin/uic src/ui_/operawindow.ui -o ui_operawindow.h 
    545543 
    546544ui_orderwindow.h: src/ui_/orderwindow.ui 
    547         /usr/bin/uic-qt4 src/ui_/orderwindow.ui -o ui_orderwindow.h 
     545        /usr/lib/qt4/bin/uic src/ui_/orderwindow.ui -o ui_orderwindow.h 
    548546 
    549547ui_spacewindow.h: src/ui_/spacewindow.ui 
    550         /usr/bin/uic-qt4 src/ui_/spacewindow.ui -o ui_spacewindow.h 
     548        /usr/lib/qt4/bin/uic src/ui_/spacewindow.ui -o ui_spacewindow.h 
    551549 
    552550ui_trajectorywindow.h: src/ui_/trajectorywindow.ui 
    553         /usr/bin/uic-qt4 src/ui_/trajectorywindow.ui -o ui_trajectorywindow.h 
     551        /usr/lib/qt4/bin/uic src/ui_/trajectorywindow.ui -o ui_trajectorywindow.h 
    554552 
    555553compiler_yacc_decl_make_all: 
     
    887885                ui_orderwindow.h \ 
    888886                ../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 \ 
    889894                ../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 \ 
    899897                ../YAOObjects/Context.hpp \ 
    900898                ../../include/Yaoopt.h \ 
  • trunk/yao/src/interface/src/ContextWindow.cpp

    r419 r428  
    1919//! \brief Implementation of the Context window for visual_YAO. 
    2020/******************************************************************************************************************************************************/ 
    21 ContextWindow::ContextWindow(Context *aContext, Table <Constant> *aConstantTable, MainWindowController *mwc, QWidget *parent) : QWidget(parent), localConstantTable(NULL), m_contextModel(NULL), O_EXTOBJModele(NULL) { 
     21ContextWindow::ContextWindow(Context *aContext, Table <Constant> *aConstantTable, QWidget *parent) : QWidget(parent), localConstantTable(NULL), m_contextModel(NULL), O_EXTOBJModele(NULL) { 
    2222 
    2323        setupUi(this); 
    24  
    2524        localConstantTable       = aConstantTable; 
    2625        m_localContext           = aContext; 
     
    4241 
    4342        for (Table<Constant>::reverse_iterator it = localConstantTable->rbegin(); it != localConstantTable->rend(); it++)  
    44                 { 
     43                {       //To full the some comboboxs. 
    4544                        m_comboContextO_PARALLEL->insertItem(2, QString(it->getName().c_str())); 
    4645                        m_comboContextO_NETWARD->insertItem(1, QString(it->getName().c_str())); 
     
    4847                } 
    4948 
    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.       
    5352 
    5453        for (vector <string>::reverse_iterator it = m_fileList.rbegin(); it != m_fileList.rend(); it++ )  
     
    7877                        /*      m_contextModel->setItem(row, 0, new QStandardItem());   
    7978                 
    80                         */                      m_contextParametersToString.clear(); 
     79                        */                       
     80                        m_contextParameters.clear(); 
     81 
    8182                        string option = "option "; 
    8283                        string o_real           = m_comboContextO_REAL->currentText().toStdString(), 
     
    149150                        for (vector <string>::reverse_iterator it = m_fileList.rbegin(); it != m_fileList.rend(); it++ ) 
    150151                                { 
    151                                         //string test.insert(""); 
    152152                                        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 
    157156                                } 
    158157 
    159158                        if (!o_real2.empty()) 
    160                                 m_contextParametersToString = o_real2 + "\n";  
     159                                m_contextParameters = "\n" + o_real2 ;  
    161160                        if (!o_mqn2.empty()) 
    162                                 m_contextParametersToString += o_mqn2 + "\n";  
     161                                m_contextParameters += "\n" + o_mqn2 ;  
    163162                        if (!o_parallel2.empty()) 
    164                                 m_contextParametersToString += o_parallel2 + "\n"; 
     163                                m_contextParameters +=  "\n" + o_parallel2 ; 
    165164                        if (!o_netward2.empty())  
    166                                 m_contextParametersToString += o_netward2 + "\n"; 
     165                                m_contextParameters += "\n" + o_netward2 ; 
    167166                        if (m_checkBoxO_GRADTEST->isChecked())   
    168                                 m_contextParametersToString += "option O_GRADTEST \n"; 
     167                                m_contextParameters += "\noption O_GRADTEST "; 
    169168                        if (m_checkBoxO_VARINCR->isChecked())   
    170                                 m_contextParametersToString += "option O_VARINCR \n"; 
     169                                m_contextParameters += "\noption O_VARINCR "; 
    171170                        if (m_checkBoxO_DBG_NANF->isChecked())   
    172                                 m_contextParametersToString += "option O_DBG_NANF \n"; 
     171                                m_contextParameters += "\noption O_DBG_NANF "; 
    173172                        if (m_checkBoxO_DBG_TING->isChecked())   
    174                                 m_contextParametersToString += "option O_DBG_TING \n"; 
     173                                m_contextParameters += "\noption O_DBG_TING "; 
    175174                        if (m_checkBoxO_DBG_BETA->isChecked())   
    176                                 m_contextParametersToString += "option O_DBG_BETA \n"; 
     175                                m_contextParameters += "\noption O_DBG_BETA "; 
    177176                        if (m_checkBoxO_DBG_TRC_FWARD->isChecked())   
    178                                 m_contextParametersToString += "option O_DBG_TRC_FWARD \n"; 
     177                                m_contextParameters += "\noption O_DBG_TRC_FWARD "; 
    179178                        if (m_checkBoxO_DBG_TRC_BWARD->isChecked())   
    180                                 m_contextParametersToString += "option O_DBG_TRC_BWARD \n"; 
     179                                m_contextParameters += "\noption O_DBG_TRC_BWARD "; 
    181180                        if (m_checkBoxO_DBG_TRC_LWARD->isChecked())   
    182                                 m_contextParametersToString += "option O_DBG_TRC_LWARD \n"; 
     181                                m_contextParameters += "\noption O_DBG_TRC_LWARD "; 
    183182                        if (m_checkBoxO_DBG_TRC_AWARD->isChecked())   
    184                                 m_contextParametersToString += "option O_DBG_TRC_AWARD \n"; 
     183                                m_contextParameters += "\noption O_DBG_TRC_AWARD "; 
    185184 
    186185                        m_localContext->addExternal(m_fileList); 
    187                         //cout << "voici les parametres: " << endl << m_contextParametersToString << endl;  
     186                        //cout << "voici les parametres: " << endl << m_contextParameters << endl;  
    188187                         
    189188                        eraseDataFromLineEdit();         
     
    234233string ContextWindow::getContextParameters() { 
    235234 
    236         return m_contextParametersToString; 
    237  
     235        //if (!m_contextParameters.empty()) 
     236                return m_contextParameters; 
     237        //else 
     238} 
     239/******************************** Implementation of the method isEmpty() *************************************************************************/ 
     240bool ContextWindow::isEmpty() { 
     241         
     242        if (m_contextParameters.empty()) 
     243                return true; 
     244        else 
     245                return false; 
     246         
    238247} 
    239248/*************************************** Implémentation de la méthode resetParameters ****************************************************************/ 
     
    257266/*****************************************************************************************************************************/ 
    258267/****************************************************************************************************************************/ 
    259 QStringList ContextWindow::getContextData() { 
    260  
    261         return filesList; 
    262 } 
     268//QStringList ContextWindow::getContextData() {// Get the context data saved. 
     269 
     270//      return filesList; 
     271//} 
    263272 
    264273/****************************************************************************************************************************/ 
  • trunk/yao/src/interface/src/MainWindow.cpp

    r419 r428  
    3434*/ 
    3535 
    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)     
     36MainWindow::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)     
    3737{ 
    3838         
     
    344344        if (m_contextWindow == NULL) { //to test if the object is already created. 
    345345 
    346                 m_contextWindow = new ContextWindow(&theContext, &theConstantTable, &the_mwc); //mwc.getContext(); 
     346                m_contextWindow = new ContextWindow(&theContext, &theConstantTable); //mwc.getContext(); 
    347347                espace.addWindow(m_contextWindow)->move(5, 0); 
    348348                m_contextWindow->show(); 
     349                contextTest = true; 
    349350        } 
    350351 
     
    550551/**************************************** Implementation of the method nouveauProjet (SLOT) *******************************************************/ 
    551552void 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 
    552566 
    553567        QFileDialog *dialogue = new QFileDialog(this); //Crée une boite de dialogue 
     
    695709                {  
    696710                        delete m_contextWindow ; 
    697                         m_contextWindow = new ContextWindow(&theContext, &theConstantTable, &the_mwc); //mwc.getContext(); 
     711                        m_contextWindow = new ContextWindow(&theContext, &theConstantTable); //mwc.getContext(); 
    698712                        espace.addWindow(m_contextWindow)->move(350, 0); 
    699713                        m_contextWindow->show(); 
     
    787801                                        description << endl; 
    788802                        } 
    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                        } 
    794809                        if (!theTrajectoryTable.empty()) { 
    795810                        description << "#TRAJ name type uptime offtime dtime steptime ------------------------------------------" << endl; 
     
    808823                                for (Table <Operator>::iterator it = theOperaTable.begin(); it != theOperaTable.end(); it++) 
    809824                                        description << "opera " << it->getProperty(0) << " " << it->getProperty(1) << " " << it->getProperty(2) << endl; 
     825                                        description << endl; 
    810826                        } 
    811827                        if (!theNeuronTable.empty()) { 
     
    823839                                        description << endl; 
    824840                        } 
    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++) 
    827843                        description << "ctin " << it->toStdString() << endl; */ 
     844                                        description << endl; 
    828845                        if (!theFunctionTable.empty()) { 
    829846                        description << "#USER FUNCTIONS  ( ARG )? name ----------------------------------------------------------------" << endl; 
  • trunk/yao/src/interface/src/include/ContextWindow.hpp

    r370 r428  
    3030 
    3131        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(); 
    3434                void eraseDataFromLineEdit();  
    3535                std::string getContextParameters(); 
     36                bool isEmpty(); 
    3637 
    3738        private slots: 
     
    5253        signals : 
    5354   
    54                   void contextWindowIsClosed(int anInt); 
     55                void contextWindowIsClosed(int anInt); 
    5556 
    5657        private : 
     
    6061                 
    6162                QStringList filesList;   
    62                 QStringListModel *filesListModele; 
     63                //QStringListModel *filesListModele; 
    6364 
    6465                QStandardItemModel *m_contextModel; 
     
    7273                yao::Context *m_localContext; 
    7374                std::vector <std::string> m_fileList; 
    74                 std::string m_contextParametersToString; 
     75                std::string m_contextParameters; 
    7576                yao::Table <yao::Constant> *localConstantTable; 
    7677                MainWindowController *localMwc; 
     78                bool test; 
    7779                int compteur; 
    7880                 
  • trunk/yao/src/interface/src/include/MainWindow.hpp

    r419 r428  
    7777                        void setActiveProject(const bool aBool); 
    7878                        bool isActiveProject(); 
     79                        bool contextTest; 
    7980                        /*template <class R, class S> void createDefvalWindow(R *directive, S *espace) { 
    8081           
Note: See TracChangeset for help on using the changeset viewer.