]> Shamusworld >> Repos - schematic/blobdiff - src/scmwidget.h
Added some basic functionality to the program.
[schematic] / src / scmwidget.h
index 6081f7127a1bd85837b064480693ea8dbae08695..d29e5ad4cfc819777eb80dafe79c398345dd3b78 100644 (file)
@@ -9,15 +9,28 @@
 #define __SCMWIDGET_H__
 
 #include <QtGui>
+#include <vector>
 #include "vendorlevelwidget.h"
 
+class AddressWidget;
+class ContactWidget;
+
 class SCMWidget: public QWidget
 {
+       Q_OBJECT
+
        public:
                SCMWidget(QWidget * parent = 0);
 
 //     protected:
 //             void keyPressEvent(QKeyEvent *);
+       protected slots:
+               void GetNextVendor(void);
+               void GetPreviousVendor(void);
+
+       public:
+               void GetVendorIDs(void);
+               void GetVendor(int);
 
        public:
                QTreeView * purchaseOrders;
@@ -30,8 +43,10 @@ class SCMWidget: public QWidget
                VendorLevelWidget * vendorLevel;
                QListWidget * alerts;
                QListWidget * notes;
+               AddressWidget * vaw1;
+               ContactWidget * vcw1;
 
-       private:
+//     private:
                QToolButton * nextVendorButton;
                QToolButton * previousVendorButton;
                QPushButton * editVendor;
@@ -44,6 +59,11 @@ class SCMWidget: public QWidget
                QPushButton * showClosed;
                QPushButton * showAll;
                QPushButton * createPO;
+               QCheckBox * vendorRelated;
+
+       private:
+               std::vector<int> vendorID;
+               int vidCursor;
 };
 
 #endif // __SCMWIDGET_H__