2 // scmwidget.h: Main widget page container
5 // (C) 2012 Underground Software
8 #ifndef __SCMWIDGET_H__
9 #define __SCMWIDGET_H__
13 #include "vendorlevelwidget.h"
18 class SCMWidget: public QWidget
23 SCMWidget(QWidget * parent = 0);
26 // void keyPressEvent(QKeyEvent *);
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);
37 void AddLocation(void);
38 void AddContact(void);
39 void EditVendor(void);
42 void GetVendorIDs(void);
44 void UpdateNotes(void);
45 void UpdateAlerts(void);
48 QTreeView * purchaseOrders;
51 QTabWidget * vendorAddress;
52 QTabWidget * vendorContact;
53 QListWidget * vendorClass;
55 VendorLevelWidget * vendorLevel;
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;
79 std::vector<int> vendorID;
83 #endif // __SCMWIDGET_H__