--- /dev/null
+#ifndef __VENDORCLASSDIALOG_H__
+#define __VENDORCLASSDIALOG_H__
+
+#include <QtGui>
+#include <vector>
+
+struct VendorType
+{
+ int key;
+ int seqNo;
+ bool isHeader;
+ QString description;
+};
+
+
+class VendorClassDialog: public QDialog
+{
+ Q_OBJECT
+
+ public:
+ VendorClassDialog(QWidget * parent = 0);
+ ~VendorClassDialog();
+
+ private slots:
+ void AddItem(void);
+ void DeleteItem(void);
+ void MoveItemUp(void);
+ void MoveItemDown(void);
+ void SetHeaderStateOnItem(void);
+ void CurrentRowChanged(int);
+
+ private:
+ void LoadList(void);
+ void SaveList(void);
+
+ private:
+ QDialogButtonBox * buttonBox;
+ QToolButton * addItem;
+ QToolButton * deleteItem;
+ QToolButton * moveItemUp;
+ QToolButton * moveItemDown;
+ QCheckBox * makeHeader;
+ std::vector<VendorType> oldList;
+ QFont * normalFont;
+ QFont * boldFont;
+
+ public:
+ QListWidget * list;
+// QSqlDatabase & dbRef;
+};
+
+#endif // __VENDORCLASSDIALOG_H__