- Timestamp:
- 06/20/10 12:05:03 (14 years ago)
- Location:
- trunk/yao/src/interface/src
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yao/src/interface/src/ConstantWindow.cpp
r345 r352 23 23 ConstantWindow::ConstantWindow(Table <Constant> *aConstantTable, vector <string> *aHeaderList, MainWindowController *mwc, QWidget *parent): QWidget(parent), m_localConstantTable(NULL), localHatWindow(NULL) { /*!< The constructor. */ 24 24 setupUi(this); 25 // setWindowTitle("Directive Constant."); /*!< To set the window's title. */26 25 m_localConstantTable = aConstantTable; 27 26 localHeaderList = aHeaderList; … … 29 28 //localConstantController = aConstantController; 30 29 31 // m_nameLabel = new QLabel("Nom constante: ", this); /*!< QLabel for Nom de la constante . */32 // m_valueLabel = new QLabel("Valeur constante: ", this); /*!< QLabel for Valeur de la constante. */33 34 // m_ligneNom = new QLineEdit(this) ; /*!< Name of the QLineEdit. */35 // m_ligneValeur = new QLineEdit(this) ; /*!< Value of the QLineEdit. */36 37 // m_addButton = new QPushButton("Ajouter", this); /*!< QPushButton for Ajout. */38 // m_helpButton = new QPushButton("Aide"); /*!< QPushButton for aide. */39 // m_helpButton->setMaximumSize(35, 25);40 // m_delButton = new QPushButton("Supprimer", this); /*!< QPushButton for Supprimer. */41 30 if(isConstantTableEmpty()) m_delButton ->setDisabled(true); /*!< setDisabled is true. */ 42 // m_quitButton = new QPushButton("Quitter", this); /*!< QPushButton for Quitter. */43 31 44 32 modele = new QStandardItemModel(0, 2);//Nombre de lignes et colonnes du modÚle. … … 50 38 modele->setItem(modele->rowCount()-1, 1, new QStandardItem(QString(it->getText().c_str())));//Apres le 1er ajout, la ligne vaut i+1 51 39 } 52 //modele = new QStandardItemModel(0, 2);//Nombre de lignes et colonnes du modÚle.53 // modele->setHorizontalHeaderLabels(QStringList() << "Constante(s)" << "Valeur(s)"); /*!< displays the QTableWidget */54 40 //if (mwc->isStringLiteral("malkj")) cout << "cest bon ça" << endl; else cout << "Oh dommage!" << endl; 55 // m_tableView = new QTableView; /*!< QTableWidget's in whitch the objects are listed for thue view. */56 41 m_tableView->setModel(modele); 57 42 m_tableView->setEditTriggers(QAbstractItemView::NoEditTriggers); /*!< this ligne give no edit mode*/ … … 59 44 m_tableView->setSelectionBehavior(QAbstractItemView::SelectRows); /*!< this ligne give a section of the ligne */ 60 45 m_tableView->resizeColumnsToContents(); 61 //QHeaderView *horiz = new QHeaderView(Qt::Horizontal);62 63 // m_layoutGrid = new QGridLayout; /*!< set QGridLayout m-layoutG */64 // m_layoutGrid->addWidget(m_nameLabel , 0, 2);65 // m_layoutGrid->addWidget(m_ligneNom , 0, 3, 1, 2);66 // m_layoutGrid->addWidget(m_valueLabel , 1, 2);67 // m_layoutGrid->addWidget(m_ligneValeur , 1, 3, 1, 2);68 // m_layoutGrid->addWidget(m_tableView , 2, 2, 7, 2); /*!< added m_m_tableView in the QGridLayout */69 // m_layoutGrid->addWidget(m_addButton , 3, 4); /*!< added m_addButton in the QGridLayout */70 // m_layoutGrid->addWidget(m_delButton , 4, 4); /*!< added m_delButton in the QGridLayout */71 // m_layoutGrid->addWidget(m_quitButton, 5, 4);72 // m_layoutGrid->addWidget(m_helpButton, 8, 4); /*!< m_ helpButton in the QGridLayout */73 74 // setLayout(m_layoutGrid); //Activation du gestionnaire principal.75 46 76 47 -
trunk/yao/src/interface/src/include/ModulWindow.hpp
r346 r352 2 2 #define MODULWINDOW_HPP 3 3 4 #include "Entete.hpp"5 4 #include "MainWindowController.hpp" 6 #include <QFormLayout>7 #include <QLineEdit>8 #include <QComboBox>9 5 #include <QString> 10 6 #include <QFileDialog> … … 24 20 25 21 public : 26 //ModulWindow(QWidget *parent = 0);27 22 ModulWindow(yao::Table <yao::Modul> *aModulTable, yao::Table <yao::Space> *aSpaceIdentifier, yao::Table <yao::Operator> *anOperatorTable, yao::Table <yao::Constant> *aConstantTable, MainWindowController *mwc, QWidget *parent=0); 28 23
Note: See TracChangeset
for help on using the changeset viewer.