]> Shamusworld >> Repos - schematic/blob - src/scmwidget.h
d29e5ad4cfc819777eb80dafe79c398345dd3b78
[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
31         public:
32                 void GetVendorIDs(void);
33                 void GetVendor(int);
34
35         public:
36                 QTreeView * purchaseOrders;
37                 QLabel * vendorName;
38                 QLabel * ndaSigned;
39                 QTabWidget * vendorAddress;
40                 QTabWidget * vendorContact;
41                 QListWidget * vendorClass;
42                 QLabel * username;
43                 VendorLevelWidget * vendorLevel;
44                 QListWidget * alerts;
45                 QListWidget * notes;
46                 AddressWidget * vaw1;
47                 ContactWidget * vcw1;
48
49 //      private:
50                 QToolButton * nextVendorButton;
51                 QToolButton * previousVendorButton;
52                 QPushButton * editVendor;
53                 QPushButton * addVendor;
54                 QPushButton * addLocation;
55                 QPushButton * addContact;
56                 QPushButton * createAlert;
57                 QPushButton * createNote;
58                 QPushButton * showOpen;
59                 QPushButton * showClosed;
60                 QPushButton * showAll;
61                 QPushButton * createPO;
62                 QCheckBox * vendorRelated;
63
64         private:
65                 std::vector<int> vendorID;
66                 int vidCursor;
67 };
68
69 #endif  // __SCMWIDGET_H__