FactDev  0.1
addquotedialog.h
1 #ifndef ADDQUOTEDIALOG_H
2 #define ADDQUOTEDIALOG_H
3 
4 #include <QDialog>
5 #include "models/billing.h"
6 #include "database/billingdatabase.h"
7 
8 #include "gui/widgets/contributorieswidget.h"
9 #include "gui/utils/windowsettings.h"
10 
11 using namespace Models;
12 
13 namespace Ui {
14 class AddQuoteDialog;
15 }
16 namespace Gui {
17 namespace Dialogs {
18 
23 class AddQuoteDialog : public QDialog
24 {
25  Q_OBJECT
26 
27 public:
36  explicit AddQuoteDialog(bool isBilling, int idCustomer = 0, int id = 0,
37  bool copy = false, QWidget *parent = 0);
38  ~AddQuoteDialog();
39 
43  void fillFields();
48  int getNumber();
53  void accept();
59  bool getCopy() const;
66  void setCopy(bool copy);
72  int getIdCustomer() const;
73 
79  void fillQuoteBilling(bool isBilling);
84  void fillQuoteBillingCopy(bool isBilling);
85 
93  void setQuoteIdNumber(int id, int idCustomer, bool isBilling);
94 
95 public slots:
96  void updateBtn(void);
97  void changeDocType();
98 private:
99  Billing *_quote;
100  Ui::AddQuoteDialog *ui;
101  bool _copy;
102  int _idCustomer;
103 };
104 }
105 }
106 #endif // ADDQUOTEDIALOG_H
The Billing class : Billing or Quote of a Customer.
Definition: billing.h:28
The AddQuoteDialog class Window to add or modify a Quote.
Definition: addquotedialog.h:23