Changeset 429 for trunk/yao


Ignore:
Timestamp:
09/27/10 02:15:14 (14 years ago)
Author:
yerima
Message:

Little bug in Option's directive.

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

Legend:

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

    r428 r429  
    11############################################################################# 
    22# Makefile for building: interface 
    3 # Generated by qmake (2.01a) (Qt 4.6.2) on: jeu. sept. 2 12:15:59 2010 
     3# Generated by qmake (2.01a) (Qt 4.6.2) on: sam. sept. 25 02:40:41 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 -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. 
     14CFLAGS        = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES) 
     15CXXFLAGS      = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES) 
     16INCPATH       = -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../../share/antlr-2.7.7/lib/cpp/  -I../../share/boost_1_39_0 -I. 
    1717LINK          = g++ 
    18 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  
     18LFLAGS        = -Wl,-O1 
     19LIBS          = $(SUBLIBS)  -L/usr/lib -lQtGui -lQtCore -lpthread  
    2020AR            = ar cqs 
    2121RANLIB        =  
     
    2727COPY_FILE     = $(COPY) 
    2828COPY_DIR      = $(COPY) -r 
    29 STRIP         =  
     29STRIP         = strip 
    3030INSTALL_FILE  = install -m 644 -p 
    3131INSTALL_DIR   = $(COPY_DIR) 
     
    111111                moc_SpaceWindow.o \ 
    112112                moc_TrajectoryWindow.o 
    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 \ 
     113DIST          = /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 \ 
    132132                interface.pro 
    133133QMAKE_TARGET  = interface 
     
    162162        $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) 
    163163 
    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 \ 
     164Makefile: 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 \ 
    183183                /usr/lib/libQtGui.prl \ 
    184184                /usr/lib/libQtCore.prl 
    185185        $(QMAKE) -unix -o Makefile interface.pro 
    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: 
     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: 
    205205/usr/lib/libQtGui.prl: 
    206206/usr/lib/libQtCore.prl: 
     
    248248                ../YAOObjects/Constant.hpp \ 
    249249                src/include/ConnectionWindow.hpp 
    250         /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/ConnectionWindow.hpp -o moc_ConnectionWindow.cpp 
     250        /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) src/include/ConnectionWindow.hpp -o moc_ConnectionWindow.cpp 
    251251 
    252252moc_ConstantWindow.cpp: src/include/HatNameWindow.hpp \ 
     
    288288                ui_constantwindow.h \ 
    289289                src/include/ConstantWindow.hpp 
    290         /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/ConstantWindow.hpp -o moc_ConstantWindow.cpp 
     290        /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) src/include/ConstantWindow.hpp -o moc_ConstantWindow.cpp 
    291291 
    292292moc_ContextWindow.cpp: ui_contextwindow.h \ 
     
    328328                ../YAOObjects/Order.hpp \ 
    329329                src/include/ContextWindow.hpp 
    330         /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/ContextWindow.hpp -o moc_ContextWindow.cpp 
     330        /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) src/include/ContextWindow.hpp -o moc_ContextWindow.cpp 
    331331 
    332332moc_FilesViewer.cpp: src/include/FilesViewer.hpp 
    333         /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/FilesViewer.hpp -o moc_FilesViewer.cpp 
     333        /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) src/include/FilesViewer.hpp -o moc_FilesViewer.cpp 
    334334 
    335335moc_HatNameWindow.cpp: ../help/FilePath.hpp \ 
     
    340340                ../YAOObjects/Table.hpp \ 
    341341                src/include/HatNameWindow.hpp 
    342         /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/HatNameWindow.hpp -o moc_HatNameWindow.cpp 
     342        /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) src/include/HatNameWindow.hpp -o moc_HatNameWindow.cpp 
    343343 
    344344moc_InsertFCTWindow.cpp: ui_insertfctwindow.h \ 
     
    349349                ../help/Enforcer.hpp \ 
    350350                src/include/InsertFCTWindow.hpp 
    351         /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/InsertFCTWindow.hpp -o moc_InsertFCTWindow.cpp 
     351        /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) src/include/InsertFCTWindow.hpp -o moc_InsertFCTWindow.cpp 
    352352 
    353353moc_MainWindow.cpp: ../YAOObjects/Modul.hpp \ 
     
    396396                ui_newprojectwindow.h \ 
    397397                src/include/MainWindow.hpp 
    398         /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/MainWindow.hpp -o moc_MainWindow.cpp 
     398        /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) src/include/MainWindow.hpp -o moc_MainWindow.cpp 
    399399 
    400400moc_ModulWindow.cpp: src/include/MainWindowController.hpp \ 
     
    436436                ui_modulwindow.h \ 
    437437                src/include/ModulWindow.hpp 
    438         /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/ModulWindow.hpp -o moc_ModulWindow.cpp 
     438        /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) src/include/ModulWindow.hpp -o moc_ModulWindow.cpp 
    439439 
    440440moc_NetwardWindow.cpp: ../YAOObjects/Constant.hpp \ 
     
    446446                ui_netwardwindow.h \ 
    447447                src/include/NetwardWindow.hpp 
    448         /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/NetwardWindow.hpp -o moc_NetwardWindow.cpp 
     448        /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) src/include/NetwardWindow.hpp -o moc_NetwardWindow.cpp 
    449449 
    450450moc_NewProjectWindow.cpp: ui_newprojectwindow.h \ 
    451451                src/include/NewProjectWindow.hpp 
    452         /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/NewProjectWindow.hpp -o moc_NewProjectWindow.cpp 
     452        /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) src/include/NewProjectWindow.hpp -o moc_NewProjectWindow.cpp 
    453453 
    454454moc_OperaWindow.cpp: ui_operawindow.h \ 
     
    464464                ../YAOObjects/Identifier.hpp \ 
    465465                src/include/OperaWindow.hpp 
    466         /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/OperaWindow.hpp -o moc_OperaWindow.cpp 
     466        /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) src/include/OperaWindow.hpp -o moc_OperaWindow.cpp 
    467467 
    468468moc_OrderWindow.cpp: ui_orderwindow.h \ 
     
    482482                ../YAOObjects/Connection.hpp \ 
    483483                src/include/OrderWindow.hpp 
    484         /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/OrderWindow.hpp -o moc_OrderWindow.cpp 
     484        /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) src/include/OrderWindow.hpp -o moc_OrderWindow.cpp 
    485485 
    486486moc_SpaceWindow.cpp: ui_spacewindow.h \ 
     
    496496                ../YAOObjects/Identifier.hpp \ 
    497497                src/include/SpaceWindow.hpp 
    498         /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/SpaceWindow.hpp -o moc_SpaceWindow.cpp 
     498        /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) src/include/SpaceWindow.hpp -o moc_SpaceWindow.cpp 
    499499 
    500500moc_TrajectoryWindow.cpp: ui_trajectorywindow.h \ 
     
    506506                ../YAOObjects/Constant.hpp \ 
    507507                src/include/TrajectoryWindow.hpp 
    508         /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) src/include/TrajectoryWindow.hpp -o moc_TrajectoryWindow.cpp 
     508        /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) src/include/TrajectoryWindow.hpp -o moc_TrajectoryWindow.cpp 
    509509 
    510510compiler_rcc_make_all: 
     
    519519        -$(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 
    520520ui_connectionwindow.h: src/ui_/connectionwindow.ui 
    521         /usr/lib/qt4/bin/uic src/ui_/connectionwindow.ui -o ui_connectionwindow.h 
     521        /usr/bin/uic-qt4 src/ui_/connectionwindow.ui -o ui_connectionwindow.h 
    522522 
    523523ui_constantwindow.h: src/ui_/constantwindow.ui 
    524         /usr/lib/qt4/bin/uic src/ui_/constantwindow.ui -o ui_constantwindow.h 
     524        /usr/bin/uic-qt4 src/ui_/constantwindow.ui -o ui_constantwindow.h 
    525525 
    526526ui_contextwindow.h: src/ui_/contextwindow.ui 
    527         /usr/lib/qt4/bin/uic src/ui_/contextwindow.ui -o ui_contextwindow.h 
     527        /usr/bin/uic-qt4 src/ui_/contextwindow.ui -o ui_contextwindow.h 
    528528 
    529529ui_insertfctwindow.h: src/ui_/insertfctwindow.ui 
    530         /usr/lib/qt4/bin/uic src/ui_/insertfctwindow.ui -o ui_insertfctwindow.h 
     530        /usr/bin/uic-qt4 src/ui_/insertfctwindow.ui -o ui_insertfctwindow.h 
    531531 
    532532ui_modulwindow.h: src/ui_/modulwindow.ui 
    533         /usr/lib/qt4/bin/uic src/ui_/modulwindow.ui -o ui_modulwindow.h 
     533        /usr/bin/uic-qt4 src/ui_/modulwindow.ui -o ui_modulwindow.h 
    534534 
    535535ui_netwardwindow.h: src/ui_/netwardwindow.ui 
    536         /usr/lib/qt4/bin/uic src/ui_/netwardwindow.ui -o ui_netwardwindow.h 
     536        /usr/bin/uic-qt4 src/ui_/netwardwindow.ui -o ui_netwardwindow.h 
    537537 
    538538ui_newprojectwindow.h: src/ui_/newprojectwindow.ui 
    539         /usr/lib/qt4/bin/uic src/ui_/newprojectwindow.ui -o ui_newprojectwindow.h 
     539        /usr/bin/uic-qt4 src/ui_/newprojectwindow.ui -o ui_newprojectwindow.h 
    540540 
    541541ui_operawindow.h: src/ui_/operawindow.ui 
    542         /usr/lib/qt4/bin/uic src/ui_/operawindow.ui -o ui_operawindow.h 
     542        /usr/bin/uic-qt4 src/ui_/operawindow.ui -o ui_operawindow.h 
    543543 
    544544ui_orderwindow.h: src/ui_/orderwindow.ui 
    545         /usr/lib/qt4/bin/uic src/ui_/orderwindow.ui -o ui_orderwindow.h 
     545        /usr/bin/uic-qt4 src/ui_/orderwindow.ui -o ui_orderwindow.h 
    546546 
    547547ui_spacewindow.h: src/ui_/spacewindow.ui 
    548         /usr/lib/qt4/bin/uic src/ui_/spacewindow.ui -o ui_spacewindow.h 
     548        /usr/bin/uic-qt4 src/ui_/spacewindow.ui -o ui_spacewindow.h 
    549549 
    550550ui_trajectorywindow.h: src/ui_/trajectorywindow.ui 
    551         /usr/lib/qt4/bin/uic src/ui_/trajectorywindow.ui -o ui_trajectorywindow.h 
     551        /usr/bin/uic-qt4 src/ui_/trajectorywindow.ui -o ui_trajectorywindow.h 
    552552 
    553553compiler_yacc_decl_make_all: 
  • trunk/yao/src/interface/src/ConstantWindow.cpp

    r419 r429  
    9292                        m_defvalModel->setItem(m_defvalModel->rowCount()-1, 1, new QStandardItem(m_ligneValeur->text()));//Apres le 1er ajout, la ligne vaut i+1 
    9393                                 
    94                         emit rowIsAdded(); // signal emis lorsqu'une a été correctement rajoutée dans le tableau.  
     94                        emit rowIsAdded(); // signal emis lorsqu'une ligne a été correctement rajoutée dans le tableau.  
    9595                                           // Il sera recupéré dans le mainwidow. 
    9696                } 
     
    144144                 
    145145                emit rowIsDeleted(element.toString()); // signal emis lorsqu'une ligne est retirée du tableau.  
     146                //cout << "voici le mot supprimé:" << element.toString().toStdString() << endl; 
    146147                if(isConstantTableEmpty()) m_delButton->setDisabled(true); 
    147148        } 
  • trunk/yao/src/interface/src/ContextWindow.cpp

    r428 r429  
    1919//! \brief Implementation of the Context window for visual_YAO. 
    2020/******************************************************************************************************************************************************/ 
    21 ContextWindow::ContextWindow(Context *aContext, Table <Constant> *aConstantTable, 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) { 
    2222 
    2323        setupUi(this); 
  • trunk/yao/src/interface/src/HatNameWindow.cpp

    r419 r429  
    189189                }        
    190190} 
     191 
     192/***********************************************  Implementation of the method deleteHatRow() ********************************************************/ 
     193void HatNameWindow::deleteARow(string aString) { 
     194 
     195                unsigned int i; 
     196                for (i = 0; i < localHeaderList->size(); i++) { 
     197        string test = aString + ".h";    
     198                if (localHeaderList->at(i) == test ) 
     199                                { 
     200                                m_hatnameModel->removeRows(hatView->currentIndex().row(), 1); 
     201                                localHeaderList->erase(localHeaderList->begin() + i); 
     202                                cout << "header: " << localHeaderList->at(i)  << " string: " << aString << " range: " << i << endl; 
     203                        //else   
     204                        //      cout << "cool2! " << i << endl; 
     205                        } 
     206                } 
     207                 
     208         
     209  } 
     210 
    191211/***********************************************  Implementation of the method deleteHatRow() ********************************************************/ 
    192212void HatNameWindow::deleteHatRow() { 
     
    197217        if (!index.isValid()) 
    198218          return; 
    199  
    200          QVariant element = m_hatnameModel->data(index, Qt::DisplayRole);//Récupération de la valeur de l'élément courant. 
    201          int r = index.row();// Récuperation de la ligne de l'élément courant. 
    202          if (selection->hasSelection()) // Evite certains effets indésirables: suppression de la derniere ligne aprÚs clic sur le vide. 
    203           { 
    204                  m_hatnameModel->removeRows(hatView->currentIndex().row(), 1);// Le 2Úme parametre indique le nombre de ligne à supprimer 
    205                  localHeaderList->erase(localHeaderList->begin() + r);//On met à jour la structure de données en supprimant aussi l'élement. 
    206                  //m_tableView->resizeRowToContents(c - 1); // columnCountChanged(c , c-1); 
    207                 if(isHeaderListEmpty()) m_delHatButton->setDisabled(true); 
    208          } 
    209  
    210         //cout << "In deleteRow method, my coodinate is " << x() << endl; 
     219//      if (!aString.empty()) { 
     220                QVariant element = m_hatnameModel->data(index, Qt::DisplayRole);//Récupération de la valeur de l'élément courant. 
     221                int r = index.row();// Récuperation de la ligne de l'élément courant. 
     222                if (selection->hasSelection()) // Evite certains effets indésirables: suppression de la derniere ligne aprÚs clic sur le vide. 
     223                {        
     224                        m_hatnameModel->removeRows(hatView->currentIndex().row(), 1);// Le 2Úme parametre indique le nombre de ligne à supprimer 
     225                        localHeaderList->erase(localHeaderList->begin() + r);//On met à jour la structure de données en supprimant aussi l'élement. 
     226                        //m_tableView->resizeRowToContents(c - 1); // columnCountChanged(c , c-1); 
     227                        if(isHeaderListEmpty()) m_delHatButton->setDisabled(true); 
     228                } 
     229        //} 
     230/*      else 
     231        { 
     232                unsigned int i; 
     233                for (i = 0; i < localHeaderList->size(); i++) { 
     234                 
     235                        if (localHeaderList->at(i) == aString) 
     236                                cout << "cool! " << i << endl; 
     237                } 
     238                 
     239        } 
     240        //cout << "In deleteRow method, my coodinate is " << x() << endl;*/ 
    211241  } 
    212242 
  • trunk/yao/src/interface/src/MainWindow.cpp

    r428 r429  
    320320        connect(m_constantWindow, SIGNAL(rowIsAdded()), this, SLOT(hatUpdate())); 
    321321        connect(m_constantWindow, SIGNAL(rowIsDeleted(QString )), this, SLOT(hatUpdate(QString ))); 
    322         connect(m_constantWindow, SIGNAL(rowIsAdded()), this, SLOT(contextUpdate())); 
     322        //connect(m_constantWindow, SIGNAL(rowIsAdded()), this, SLOT(trajUpdate())); 
     323        //connect(m_constantWindow, SIGNAL(rowIsAdded()), this, SLOT(contextUpdate())); 
    323324        connect(m_constantWindow, SIGNAL(rowIsAdded()), this, SLOT(mainWindowIsModified())); 
    324325        connect(m_constantWindow, SIGNAL(windowIsClosed(int )), this, SLOT(initializeWindow(int )));// The signal is in the ConstantWindow.hpp file. 
     
    500501void MainWindow::createNewProjectWindow()       { // Affiche la fenetre nouveau projet lorsqu'elle est appelée. 
    501502 
     503        clearAllStructures(); 
     504        espace.closeAllWindows();  
    502505        m_newProjectWindow = new NewProjectWindow(espace); 
    503506        m_newProjectName = m_newProjectWindow->getProjectName(); 
     
    511514} 
    512515 
     516/*************************************** Implementation of the method clearAllStrutures() *********************************************************/ 
     517void MainWindow::clearAllStructures() { 
     518 
     519 
     520        theConstantTable.clear(); 
     521        theHeaderList.clear(); 
     522        theTrajectoryTable.clear(); 
     523        theSpaceTable.clear(); 
     524        theOperaTable.clear(); 
     525        theNeuronTable.clear(); 
     526        theModulTable.clear(); 
     527        theConnectionTable.clear(); 
     528        theFunctionTable.clear();        
     529} 
    513530/**************************************** Implementation of the method mainWindowIsModified() (SLOT) ************************************************/ 
    514531void MainWindow::mainWindowIsModified() { 
     
    691708        if (m_hatnameWindow != NULL) //Teste si l'objet n'est pas déjà crée. 
    692709                {  
    693                         delete m_hatnameWindow; 
    694                         m_hatnameWindow = new HatNameWindow(&theHeaderList, &theConstantTable); //Crée un autre objet. 
    695                         espace.addWindow(m_hatnameWindow)->move(350, 0); 
    696                         m_hatnameWindow->show(); 
    697                         espace.setActiveWindow(m_constantWindow); 
    698  
    699                         connect(m_hatnameWindow, SIGNAL(hatWindowIsClosed(int)), this, SLOT(initializeWindow(int)));// The signal is in the HatNameWindow.hpp file. 
     710                        m_hatnameWindow->deleteARow(choix.toStdString());  
     711                        //delete m_hatnameWindow; 
     712                        //m_hatnameWindow = new HatNameWindow(&theHeaderList, &theConstantTable); //Crée un autre objet. 
     713                        //espace.addWindow(m_hatnameWindow)->move(350, 0); 
     714                        //m_hatnameWindow->show(); 
     715                        //espace.setActiveWindow(m_constantWindow); 
     716 
     717                        //connect(m_hatnameWindow, SIGNAL(hatWindowIsClosed(int)), this, SLOT(initializeWindow(int)));// The signal is in the HatNameWindow.hpp file. 
    700718                } 
    701719        else 
     
    704722 
    705723/******************************************* Implementation of the method contextUpdate(QString choix) ************************************************/ 
    706 void MainWindow::contextUpdate() { 
     724/*void MainWindow::contextUpdate() { 
    707725 
    708726        if (m_contextWindow != NULL) //Teste si l'objet n'est pas déjà crée. 
     
    720738        else 
    721739                return; 
    722 } 
    723  
     740}*/ 
     741 
     742/******************************************* Implementation of the method trajUpdate() **************************************************/ 
     743/*void MainWindow::trajUpdate() { 
     744 
     745        if (m_trajectoryWindow != NULL) //Teste si l'objet n'est pas déjà crée. 
     746                {  
     747                        delete m_hatnameWindow; 
     748                        m_hatnameWindow = new HatNameWindow(&theHeaderList, &theConstantTable); //Crée un autre objet. 
     749                        espace.addWindow(m_hatnameWindow)->move(350, 0); 
     750                        m_hatnameWindow->show(); 
     751                        espace.setActiveWindow(m_constantWindow); 
     752 
     753                        connect(m_hatnameWindow, SIGNAL(hatWindowIsClosed(int)), this, SLOT(initializeWindow(int)));// The signal is in the HatNameWindow.hpp file. 
     754                } 
     755        else 
     756                return; 
     757}*/ 
    724758/***************************************** Implementation of the method montrerActionGenererD() ****************************************************/ 
    725759void MainWindow::montrerActionGenererD() { 
     
    801835                                        description << endl; 
    802836                        } 
    803                         if (contextTest) { 
     837                        /*if (contextTest) { 
    804838                        description << "#OPTION (optionAttribute)+ ---------------------------------------------------------------------" << endl; 
    805839                        description << m_contextWindow->getContextParameters() << endl; //"option " << it->toStdString() << endl; 
    806840                //      cout << m_contextWindow->getContextParameters() << endl; //"option " << it->toStdString() << endl; 
    807841                                        description << endl; 
    808                         } 
     842                        }*/ 
    809843                        if (!theTrajectoryTable.empty()) { 
    810844                        description << "#TRAJ name type uptime offtime dtime steptime ------------------------------------------" << endl; 
  • trunk/yao/src/interface/src/include/HatNameWindow.hpp

    r366 r429  
    6363 
    6464                void addHatRow();               /*!< This function is called to insert data in the model. */ 
     65                void deleteARow(string aString = "");            /*!< This function is called to delete data from the model. */ 
    6566                void deleteHatRow();            /*!< This function is called to delete data from the model. */ 
    6667                void eraseDataFromLineEdit();       /*!< This function is called to initialize the lineEdit. */ 
  • trunk/yao/src/interface/src/include/MainWindow.hpp

    r428 r429  
    9595                        // ~MainWindow(); 
    9696        protected : 
     97                        void clearAllStructures();  
    9798                        //void closeEvent(QCloseEvent *event); 
    9899                        //void generateDefaultHFile(); 
     
    139140                        void hatUpdate(); 
    140141                        void hatUpdate(QString choix ); 
    141                         void contextUpdate(); 
     142                        //void contextUpdate(); 
    142143                        void mainWindowIsModified(); 
    143144                        void saveAs(); 
Note: See TracChangeset for help on using the changeset viewer.