Changeset 191
- Timestamp:
- 02/05/10 17:40:48 (14 years ago)
- Location:
- trunk/yao/src/interface/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yao/src/interface/src/Include/OptionWindow.hpp
r185 r191 15 15 #include <QString> 16 16 #include <QLabel> 17 #include <QMessageBox> 17 18 #include <QFileDialog> 18 19 #include <QPushButton> … … 25 26 26 27 class OptionWindow : public QWidget { 28 27 29 Q_OBJECT 30 28 31 public : 29 32 OptionWindow(QWidget *parent=0); 30 QStringList getOptionData(); 31 bool testContenu(int anInt); 32 33 QStringList getOptionData(); 34 bool testContenu(int anInt); 33 35 34 36 private slots: … … 37 39 void ouvrirProjetExistant3(); 38 40 void saveOptionData(); 39 40 41 41 void addOptionRow(); 42 void deleteOptionRow(); 43 void callOptionHelp(); 42 44 private : 43 45 QLabel *m_labelName; 44 46 QComboBox *m_comboNomOption; 45 47 46 47 48 QPushButton *m_optionAddButton; 49 QPushButton *m_optionDeleteButton; 48 50 QPushButton *m_enregOption; 49 50 51 QPushButton *m_quitOption; 52 QPushButton *m_optionHelpButton; 51 53 52 54 53 55 QFormLayout *m_optionLayout; 54 56 QHBoxLayout *m_optionLayoutH1; 55 57 QHBoxLayout *m_optionLayoutH2; 56 58 QVBoxLayout *m_optionLayoutV1; 57 59 QGridLayout *m_layoutGOption; 58 60 59 61 QFileDialog *projetOption; 60 62 61 63 QString m_cheminProjetOption; 62 64 63 64 65 QStringList filesList; 66 QStringListModel *filesListModele; 65 67 66 68 QListView *m_optionListView; 67 69 68 69 70 yao::Context *m_theContext; 71 std::vector<std::string> anVector; 70 72 71 73 int compteur; 72 74 73 75 }; -
trunk/yao/src/interface/src/OptionWindow.cpp
r190 r191 83 83 connect(m_optionAddButton, SIGNAL(clicked()), this, SLOT(addOptionRow())); 84 84 connect(m_optionDeleteButton, SIGNAL(clicked()), this, SLOT(deleteOptionRow())); 85 connect(m_optionHelpButton, SIGNAL(clicked()), this, SLOT(callOptionHelp())); 85 86 86 87 this->setFixedWidth(baseSize().width() + 450); … … 169 170 } 170 171 /****************************************************************************************************************************/ 172 void OptionWindow::callOptionHelp() { 171 173 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.