-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanimaldialog.h
45 lines (40 loc) · 848 Bytes
/
animaldialog.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
#ifndef ANIMALDIALOG_H
#define ANIMALDIALOG_H
//#include<QWidget>
#include<QLineEdit>
#include<QComboBox>
#include<QPushButton>
#include<QDialog>
#include"owner.h"
#include"veterinaireinterface.h"
class Animal;
class AnimalDialog : public QDialog
{
Q_OBJECT
public:
AnimalDialog(VeterinaireInterface *parent);
public:
Owner *getPropri();
QString getMaladie() const;
QString getTreatment() const;
int getRace() const;
int getStatus () const;
private:
QLineEdit *name;
QLineEdit *propri;
QLineEdit *maladie;
QLineEdit *traitement;
QComboBox *race;
QComboBox *status;
Animal *animal;
private:
void clear() const;
private slots:
void confirm();
void rejet();
signals:
animalComplete();
sendAnimal(Animal* animal);
sendOwner(Owner *owner);
};
#endif // ANIMALDIALOG_H