]> Shamusworld >> Repos - schematic/blob - src/scmwidget.h
Move DB access to NoteDialog class, new AlertDialog class.
[schematic] / src / scmwidget.h
1 //
2 // scmwidget.h: Main widget page container
3 //
4 // by James Hammons
5 // (C) 2012 Underground Software
6 //
7
8 #ifndef __SCMWIDGET_H__
9 #define __SCMWIDGET_H__
10
11 #include <QtGui>
12 #include <vector>
13 #include "vendorlevelwidget.h"
14
15 class AddressWidget;
16 class ContactWidget;
17
18 class SCMWidget: public QWidget
19 {
20         Q_OBJECT
21
22         public:
23                 SCMWidget(QWidget * parent = 0);
24
25 //      protected:
26 //              void keyPressEvent(QKeyEvent *);
27         protected slots:
28                 void GetNextVendor(void);
29                 void GetPreviousVendor(void);
30                 void CreateNote(void);
31                 void CreateAlert(void);
32                 void CreatePurchaseOrder(void);
33                 void ShowOpenPOs(void);
34                 void ShowClosedPOs(void);
35                 void ShowAllPOs(void);
36                 void AddVendor(void);
37                 void AddLocation(void);
38                 void AddContact(void);
39                 void EditVendor(void);
40
41         public:
42                 void GetVendorIDs(void);
43                 void GetVendor(int);
44                 void UpdateNotes(void);
45                 void UpdateAlerts(void);
46
47         public:
48                 QTreeView * purchaseOrders;
49                 QLabel * vendorName;
50                 QLabel * ndaSigned;
51                 QTabWidget * vendorAddress;
52                 QTabWidget * vendorContact;
53                 QListWidget * vendorClass;
54                 QLabel * username;
55                 VendorLevelWidget * vendorLevel;
56                 QListWidget * alerts;
57                 QListWidget * notes;
58                 AddressWidget * vaw1;
59                 ContactWidget * vcw1;
60
61 //      private:
62                 QToolButton * nextVendorButton;
63                 QToolButton * previousVendorButton;
64                 QPushButton * editVendor;
65                 QPushButton * addVendor;
66                 QPushButton * addLocation;
67                 QPushButton * addContact;
68                 QPushButton * createAlert;
69                 QPushButton * createNote;
70                 QPushButton * showOpen;
71                 QPushButton * showClosed;
72                 QPushButton * showAll;
73                 QPushButton * createPO;
74                 QCheckBox * vendorRelated;
75
76                 int currentUID;
77
78         private:
79                 std::vector<int> vendorID;
80                 int vidCursor;
81 };
82
83 #endif  // __SCMWIDGET_H__