Changeset 188
- Timestamp:
- 02/02/10 13:08:41 (14 years ago)
- Location:
- trunk/yao/src/interface/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yao/src/interface/src/Include/DefvalWindow.hpp
r178 r188 39 39 40 40 DefvalWindow(QWidget *parent=0); /*!< This function returns the constante's data. */ 41 41 void addNameInTable(int ligne, int colonne, QString nomDefval); 42 42 void addValueInTable(int ligne, int colonne, QString valeurDefval); 43 44 45 43 void addRow(); 44 bool testContenu(int anInt); 45 QStringList getDataDefval(); 46 46 47 48 49 50 47 public slots : /*!< Functions called after a click. */ 51 48 52 49 void addDefvalRow(); /*!< This function is called to add row in the visual window model. */ 53 50 void deleteDefvalRow(); /*!< This function is called to delete row from the Yao model. */ 54 51 void initialiserChamps(); 55 52 void callDefvalHelp(); 56 53 void ouvrirProjetExistant(); 57 54 void saveDefvalData(); /*!< This function is called to add data in the Yao model. */ 58 55 //void fermerEnrDef(); 59 56 … … 62 59 63 60 QLabel *m_labelNomDefval; /*!< QLabel for the Constante Name. */ 64 61 QLabel *m_labelValeurDefval; /*!< QLabel for the Constante value. */ 65 62 66 63 QLineEdit *m_ligneNomDefval; /*!< QLineEdit for the Constante Name. */ 67 64 QLineEdit *m_ligneValeurDefval; /*!< QLineEdit for the Constante Name. */ 68 65 69 66 QPushButton *m_ajoutDefval; /*!< The button "add". */ 70 67 QPushButton *m_supDefval; /*!< The button "delete". */ 71 72 68 QPushButton *m_saveDefvalButton; /*!< The button "save". */ 69 QPushButton *m_quitDefval; /*!< The button "close window". */ 73 70 QPushButton *m_DefvalHelpButton; /*!< The button "Help". */ 74 71 75 72 QGridLayout *m_layoutGDefval; //!< QGridLayout for m_layoutGDefval 76 73 QHBoxLayout *m_layoutH1Defval; //!< QHBoxLayout m_layoutH1Defval 77 74 78 75 QStandardItemModel *modeleDefval; 79 76 QTableWidget *vueDefval; /*!< Name of the QTableWidget's object in whitch the objects are listed for the viewer. */ 80 77 -
trunk/yao/src/interface/src/Include/SpaceWindow.hpp
r171 r188 9 9 #ifndef SPACEWINDOW_HPP 10 10 #define SPACEWINDOW_HPP 11 11 12 #include "src/Include/Entete.hpp" 12 13 #include "TrajWindow.hpp" … … 48 49 void addRow(); /*!< This function is called to add row in the visual window model. */ 49 50 void testPresenceLigne(); 50 51 bool testContenu(int anInt); 52 51 53 52 54 public slots: /*!< Functions called after a click. */ … … 84 86 QHBoxLayout *m_spaceLayout2H; /*!< The 2nd horizontal Layout's name. */ 85 87 QVBoxLayout *m_spaceLayout1V; 86 88 QGridLayout *m_spaceLayoutG; 87 89 88 90 … … 95 97 //SpaceController m_spc; 96 98 bool isCalled; 99 int compteur; 100 97 101 }; 98 102 #endif // SPACEWINDOW_HPP -
trunk/yao/src/interface/src/SpaceWindow.cpp
r178 r188 26 26 isCalled = false; 27 27 //QStringList localTrajData = trajData; 28 28 compteur = 0; 29 29 m_spaceNameLabel = new QLabel("Nom de l'espace: "); /*!< Label of the QLineEdit. */ 30 30 m_spaceTypeLabel = new QLabel("Type de l'espace: "); /*!< The QComboBox's type label. */ … … 111 111 112 112 addRow(); 113 testContenu(compteur); 113 114 114 115 //static int i = 1; … … 180 181 int row = m_spaceTableView->rowCount(); 181 182 m_spaceTableView->insertRow(row); 182 183 compteur ++; 183 184 184 185 } … … 189 190 m_spaceTableView->removeRow(m_spaceTableView->currentRow()); 190 191 //testPresenceLigne(); 192 191 193 isCalled = true; 192 194 -- compteur; 195 testContenu(compteur); 193 196 } 194 197 … … 271 274 } 272 275 } 276 /**************************************************************************/ 277 bool SpaceWindow::testContenu(int anInt) { 278 279 if (anInt != 0) { 280 m_spaceEnregButton->setEnabled(true); 281 m_spaceDeleteButton->setEnabled(true); 282 } 283 else 284 { 285 m_spaceEnregButton->setDisabled(true); 286 m_spaceDeleteButton->setDisabled(true); 287 } 288 } 289
Note: See TracChangeset
for help on using the changeset viewer.