FactDev  0.1
addprojectdialog.h
1 #ifndef ADDPROJECTDIALOG_H
2 #define ADDPROJECTDIALOG_H
3 
4 #include <QDialog>
5 #include "database/customerdatabase.h"
6 
7 #include "models/project.h"
8 #include "models/customer.h"
9 
10 #include "gui/mainwindow/mainwindow.h"
11 #include "gui/utils/windowsettings.h"
12 
13 namespace Ui {
14 class AddProjectDialog;
15 }
16 namespace Gui {
17 namespace Dialogs {
18 
24 class AddProjectDialog : public QDialog
25 {
26  Q_OBJECT
27 
28 public:
36  explicit AddProjectDialog(int idProject=0, int noRowCustomer=0,
37  QWidget *parent = 0);
39 
40 
45  void accept();
46 
51  void reject();
52 
59  void fillFields();
60 
61 public slots:
65  void checkFields();
66 
67 private:
68 
69  Project _project;
70  Ui::AddProjectDialog *ui;
71 };
72 }
73 }
74 #endif // ADDPROJECTDIALOG_H
The AddProjectDialog class Windows to add a new Project.
Definition: addprojectdialog.h:24
The Project class : Project linked to a Customer.
Definition: project.h:17
void reject()
AddProjectDialog::reject Cancel the operation and close the windows.
Definition: addprojectdialog.cpp:49
void checkFields()
AddProjectDialog::checkFields Check if fields are valid.
Definition: addprojectdialog.cpp:64
void fillFields()
AddProjectDialog::fillFields Fill the differents fields of the current windows according the Project ...
Definition: addprojectdialog.cpp:54
AddProjectDialog(int idProject=0, int noRowCustomer=0, QWidget *parent=0)
AddProjectDialogAddProjectDialog Construct a windows according an idCustomer and, optionnaly...
Definition: addprojectdialog.cpp:7
void accept()
AddProjectDialog::accept Valid data inputed by user and add these data in Database.
Definition: addprojectdialog.cpp:33