-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwindowcreerrelation.h
67 lines (51 loc) · 1.62 KB
/
windowcreerrelation.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*!
* \file windowcreerrelation.h
* \class WindowCreerRelation windowcreerrelation.h
* \brief Définit la classe WindowCreerRelation : Emplacement pour créer une relation
* \details Hérite de QWidget
* \brief title: Formulaire titre de la relation
* \brief desc : Formulaire description de la relation
* \brief orientee : Formulaire orientation de la relation
*\brief valider : Bouton valider
*\brief annuler : Bouton annuler
*/
#ifndef WINDOWCREERRELATION_H
#define WINDOWCREERRELATION_H
#include <QObject>
#include <QWidget>
#include<QComboBox>
#include<QLabel>
#include<QPushButton>
#include<QHBoxLayout>
#include <QFormLayout>
#include <QLineEdit>
#include "relation.h"
class WindowCreerRelation :public QWidget
{
Q_OBJECT
QVBoxLayout *V_window; /*!< Emplacemet vertical de la fenetre*/
// ID
QHBoxLayout *H_title; /*!< emplacement horizontal de l'id*/
QLabel *lbl_title; /*!< label pour le champ id*/
QLineEdit *title; /*!< champ id */
QHBoxLayout *H_desc;
QLabel *lbl_desc;
QLineEdit *desc;
QHBoxLayout *H_orientee;
QLabel *lbl_orientee;
QComboBox *orientee; //combo list : "orientee" "non orientee"
QHBoxLayout *H_buttons;
QPushButton *valider;
QPushButton *annuler;
public:
WindowCreerRelation(QWidget *parent=0);
QComboBox* getComboType() {return orientee;}
QPushButton* getBoutonValider() {return valider;}
QString getTitle() const { return title->text() ;}
QString getDesc() const { return desc->text();}
QString getOrientation() const { return orientee->currentText();}
signals:
private slots:
public slots:
};
#endif // WINDOWCREERRELATION_H