Changeset 191


Ignore:
Timestamp:
02/05/10 17:40:48 (14 years ago)
Author:
yerima
Message:

Help button's link on option window is valid. Visual yao

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

Legend:

Unmodified
Added
Removed
  • trunk/yao/src/interface/src/Include/OptionWindow.hpp

    r185 r191  
    1515#include <QString> 
    1616#include <QLabel> 
     17#include <QMessageBox> 
    1718#include <QFileDialog> 
    1819#include <QPushButton> 
     
    2526 
    2627class OptionWindow : public QWidget { 
     28 
    2729    Q_OBJECT 
     30 
    2831    public : 
    2932                OptionWindow(QWidget *parent=0); 
    30                                 QStringList getOptionData(); 
    31                                 bool testContenu(int anInt); 
    32  
     33                QStringList getOptionData(); 
     34                bool testContenu(int anInt); 
    3335 
    3436    private slots: 
     
    3739                void ouvrirProjetExistant3(); 
    3840                void saveOptionData(); 
    39                                 void addOptionRow(); 
    40                                 void deleteOptionRow(); 
    41                  
     41                void addOptionRow(); 
     42                void deleteOptionRow(); 
     43                void callOptionHelp();           
    4244    private : 
    43                                 QLabel *m_labelName;             
     45                QLabel *m_labelName;             
    4446                QComboBox  *m_comboNomOption; 
    4547 
    46                                 QPushButton *m_optionAddButton; 
    47                                 QPushButton *m_optionDeleteButton; 
     48                QPushButton *m_optionAddButton; 
     49                QPushButton *m_optionDeleteButton; 
    4850                QPushButton *m_enregOption; 
    49                         QPushButton *m_quitOption; 
    50                                 QPushButton *m_optionHelpButton; 
     51                QPushButton *m_quitOption; 
     52                QPushButton *m_optionHelpButton; 
    5153 
    5254 
    5355                QFormLayout *m_optionLayout; 
    5456                QHBoxLayout *m_optionLayoutH1; 
    55                                 QHBoxLayout *m_optionLayoutH2; 
     57                QHBoxLayout *m_optionLayoutH2; 
    5658                QVBoxLayout *m_optionLayoutV1; 
    57                                 QGridLayout *m_layoutGOption; 
     59                QGridLayout *m_layoutGOption; 
    5860 
    5961                QFileDialog *projetOption; 
    6062 
    61                                 QString m_cheminProjetOption; 
     63                QString m_cheminProjetOption; 
    6264                 
    63                                 QStringList filesList;   
    64                                 QStringListModel *filesListModele; 
     65                QStringList filesList;   
     66                QStringListModel *filesListModele; 
    6567 
    66                                 QListView *m_optionListView; 
     68                QListView *m_optionListView; 
    6769 
    68                                 yao::Context *m_theContext; 
    69                                 std::vector<std::string> anVector; 
     70                yao::Context *m_theContext; 
     71                std::vector<std::string> anVector; 
    7072 
    71                                 int compteur; 
     73                int compteur; 
    7274                 
    7375}; 
  • trunk/yao/src/interface/src/OptionWindow.cpp

    r190 r191  
    8383        connect(m_optionAddButton, SIGNAL(clicked()), this, SLOT(addOptionRow())); 
    8484        connect(m_optionDeleteButton, SIGNAL(clicked()), this, SLOT(deleteOptionRow())); 
     85        connect(m_optionHelpButton, SIGNAL(clicked()), this, SLOT(callOptionHelp())); 
    8586         
    8687        this->setFixedWidth(baseSize().width() + 450); 
     
    169170} 
    170171/****************************************************************************************************************************/ 
     172void OptionWindow::callOptionHelp() { 
    171173 
     174        QMessageBox::about(this, tr("Aide sur la directive option."),("<p> Permet d’indiquer les options de génération de code à appliquer, le but étant de limiter ponctuellement la taille du code généré. <p><u>Exemple:</u> option o_m1qn3 <p> Pour plus d'informations sur la directive option, <a href=\"help/option_aide.html\">cliquez ici.</a>")); 
     175 
     176} 
Note: See TracChangeset for help on using the changeset viewer.