]> Shamusworld >> Repos - schematic/blob - src/scmwidget.h
Hooked up buttons to implementation functions.
[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
45         public:
46                 QTreeView * purchaseOrders;
47                 QLabel * vendorName;
48                 QLabel * ndaSigned;
49                 QTabWidget * vendorAddress;
50                 QTabWidget * vendorContact;
51                 QListWidget * vendorClass;
52                 QLabel * username;
53                 VendorLevelWidget * vendorLevel;
54                 QListWidget * alerts;
55                 QListWidget * notes;
56                 AddressWidget * vaw1;
57                 ContactWidget * vcw1;
58
59 //      private:
60                 QToolButton * nextVendorButton;
61                 QToolButton * previousVendorButton;
62                 QPushButton * editVendor;
63                 QPushButton * addVendor;
64                 QPushButton * addLocation;
65                 QPushButton * addContact;
66                 QPushButton * createAlert;
67                 QPushButton * createNote;
68                 QPushButton * showOpen;
69                 QPushButton * showClosed;
70                 QPushButton * showAll;
71                 QPushButton * createPO;
72                 QCheckBox * vendorRelated;
73
74         private:
75                 std::vector<int> vendorID;
76                 int vidCursor;
77 };
78
79 #endif  // __SCMWIDGET_H__