Changeset 184
- Timestamp:
- 02/01/10 00:20:12 (14 years ago)
- Location:
- trunk/yao/src/interface/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yao/src/interface/src/HatNameWindow.cpp
r178 r184 18 18 19 19 setWindowTitle("Directive Hatname."); // Titre de la fenetre. 20 compteur = 0; 20 21 21 22 m_labelNom1HatName = new QLabel("Nom du fichier (.h): "); … … 69 70 //m_layoutGHatName->addWidget(m_quitHatName, 7, 2, Qt::AlignHCenter); 70 71 71 if (listeFichiers.isEmpty())72 m_supHatName->setDisabled(true);73 else74 m_supHatName->setEnabled(true);72 //if (listeFichiers.isEmpty()) 73 // m_supHatName->setDisabled(true); 74 //else 75 //m_supHatName->setEnabled(true); 75 76 76 77 connect(m_quitHatName, SIGNAL(clicked()), this, SLOT(close())); … … 134 135 135 136 hatFile = getNomFichierHat(); 137 compteur ++; 138 testContenu(compteur); 136 139 137 140 for(int i=0; i < hatFile.size(); i++) { … … 165 168 166 169 modeleFichiers->setStringList(listeFichiers); 167 testPresenceFichier();170 //testPresenceFichier(); 168 171 initialiserChamps(); 169 172 } … … 182 185 183 186 modeleFichiers->setStringList(listeFichiers); 184 testPresenceFichier(); 185 187 //testPresenceFichier(); 186 188 187 189 initialiserChamps(); … … 198 200 modeleFichiers->setStringList(listeFichiers); //On indique au modÚle la liste des éléments à afficher. 199 201 200 testPresenceFichier(); 202 -- compteur; 203 testContenu(compteur); 204 205 //testPresenceFichier(); 201 206 } 202 207 … … 260 265 261 266 } 262 267 /***************************************************************************************/ 268 269 bool HatNameWindow::testContenu(int anInt) { 270 271 if (anInt != 0) { 272 m_supHatName->setEnabled(true); 273 m_enregHatName->setEnabled(true); 274 } 275 else 276 { 277 m_supHatName->setDisabled(true); 278 m_enregHatName->setDisabled(true); 279 } 280 } 281 282 -
trunk/yao/src/interface/src/Include/HatNameWindow.hpp
r171 r184 48 48 std::string getNomFichierHat(); /*!< This function returns the fil's name */ 49 49 void testPresenceFichier(); 50 50 QStringList getHatName(); 51 51 void setLocalProjectName(std::string name); 52 52 std::string getLocalProjectName(); 53 bool testContenu(int anInt); 53 54 54 55 /*! … … 125 126 std::vector<std::string> hatHeaderList; 126 127 std::string localProjectName; 127 128 int compteur; 128 129 }; 129 130 #endif -
trunk/yao/src/interface/src/Include/OptionWindow.hpp
r171 r184 28 28 public : 29 29 OptionWindow(QWidget *parent=0); 30 QStringList getOptionData(); 30 QStringList getOptionData(); 31 bool testContenu(int anInt); 32 31 33 32 34 private slots: … … 35 37 void ouvrirProjetExistant3(); 36 38 void saveOptionData(); 37 void addOptionRow(); 38 void deleteOptionRow(); 39 void addOptionRow(); 40 void deleteOptionRow(); 41 int compteur; 39 42 40 43 private : 41 QLabel *m_labelName; 44 QLabel *m_labelName; 45 QComboBox *m_comboNomOption; 42 46 43 QComboBox *m_comboNomOption; 44 45 QPushButton *m_optionAddButton; 46 QPushButton *m_optionDeleteButton; 47 QPushButton *m_optionAddButton; 48 QPushButton *m_optionDeleteButton; 47 49 QPushButton *m_enregOption; 48 QPushButton *m_quitOption; 49 QPushButton *m_optionHelpButton; 50 50 QPushButton *m_quitOption; 51 QPushButton *m_optionHelpButton; 51 52 52 53 53 54 QFormLayout *m_optionLayout; 54 55 QHBoxLayout *m_optionLayoutH1; 55 QHBoxLayout *m_optionLayoutH2;56 QHBoxLayout *m_optionLayoutH2; 56 57 QVBoxLayout *m_optionLayoutV1; 57 QGridLayout *m_layoutGOption;58 QGridLayout *m_layoutGOption; 58 59 59 60 QFileDialog *projetOption; 60 61 61 QString m_cheminProjetOption;62 QString m_cheminProjetOption; 62 63 63 QStringList filesList; 64 65 QStringListModel *filesListModele; 66 67 QListView *m_optionListView; 64 QStringList filesList; 65 QStringListModel *filesListModele; 68 66 69 yao::Context *m_theContext; 70 std::vector<std::string> anVector; 67 QListView *m_optionListView; 68 69 yao::Context *m_theContext; 70 std::vector<std::string> anVector; 71 72 int compteur; 71 73 72 74 };
Note: See TracChangeset
for help on using the changeset viewer.