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