]> Shamusworld >> Repos - schematic/blobdiff - src/scmwidget.h
Move DB access to NoteDialog class, new AlertDialog class.
[schematic] / src / scmwidget.h
index 6081f7127a1bd85837b064480693ea8dbae08695..9dddfcf7b001d4eada9cf5f7dffb2d982d46c052 100644 (file)
@@ -9,15 +9,40 @@
 #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);
+               void CreateNote(void);
+               void CreateAlert(void);
+               void CreatePurchaseOrder(void);
+               void ShowOpenPOs(void);
+               void ShowClosedPOs(void);
+               void ShowAllPOs(void);
+               void AddVendor(void);
+               void AddLocation(void);
+               void AddContact(void);
+               void EditVendor(void);
+
+       public:
+               void GetVendorIDs(void);
+               void GetVendor(int);
+               void UpdateNotes(void);
+               void UpdateAlerts(void);
 
        public:
                QTreeView * purchaseOrders;
@@ -30,8 +55,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 +71,13 @@ class SCMWidget: public QWidget
                QPushButton * showClosed;
                QPushButton * showAll;
                QPushButton * createPO;
+               QCheckBox * vendorRelated;
+
+               int currentUID;
+
+       private:
+               std::vector<int> vendorID;
+               int vidCursor;
 };
 
 #endif // __SCMWIDGET_H__