From: Shamus Hammons Date: Wed, 5 Dec 2012 15:48:40 +0000 (-0600) Subject: Hooked up buttons to implementation functions. X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=schematic;a=commitdiff_plain;h=4560acacef35db75a8bab4854d544d297f6c7cb9 Hooked up buttons to implementation functions. Buttons will now launch a message box to remind the programmer to actually write code that does something. :-) --- diff --git a/database-schema.txt b/database-schema.txt index 7bfb709..ec3e0d6 100644 --- a/database-schema.txt +++ b/database-schema.txt @@ -56,8 +56,8 @@ DTID (P-key) | Description CREATE TABLE DocumentType (dtid INT NOT NULL PRIMARY KEY AUTO_INCREMENT, description VARCHAR(100)) ENGINE=INNODB; Notes -NID (P-key) | POID | Note -CREATE TABLE Notes (nid INT NOT NULL PRIMARY KEY AUTO_INCREMENT, poid INT, note VARCHAR(200)) ENGINE=INNODB; +NID (P-key) | UID | POID | Note +CREATE TABLE Notes (nid INT NOT NULL PRIMARY KEY AUTO_INCREMENT, uid INT, poid INT, note VARCHAR(200)) ENGINE=INNODB; Alerts AID (P-key) | UID | NID | Date | Description diff --git a/src/scmwidget.cpp b/src/scmwidget.cpp index 07b9cd1..c9a175e 100644 --- a/src/scmwidget.cpp +++ b/src/scmwidget.cpp @@ -43,7 +43,7 @@ SCMWidget::SCMWidget(QWidget * parent/*= 0*/): QWidget(parent), showClosed(new QPushButton("Closed")), showAll(new QPushButton("All")), createPO(new QPushButton("Create")), - vendorRelated(new QCheckBox("Related to this Vendor")), + vendorRelated(new QCheckBox("Show POs for this Vendor only")), vidCursor(0) { // Create main page widgets & layout @@ -211,6 +211,16 @@ SCMWidget::SCMWidget(QWidget * parent/*= 0*/): QWidget(parent), connect(nextVendorButton, SIGNAL(clicked()), this, SLOT(GetNextVendor())); connect(previousVendorButton, SIGNAL(clicked()), this, SLOT(GetPreviousVendor())); + connect(createNote, SIGNAL(clicked()), this, SLOT(CreateNote())); + connect(createAlert, SIGNAL(clicked()), this, SLOT(CreateAlert())); + connect(createPO, SIGNAL(clicked()), this, SLOT(CreatePurchaseOrder())); + connect(showOpen, SIGNAL(clicked()), this, SLOT(ShowOpenPOs())); + connect(showClosed, SIGNAL(clicked()), this, SLOT(ShowClosedPOs())); + connect(showAll, SIGNAL(clicked()), this, SLOT(ShowAllPOs())); + connect(addVendor, SIGNAL(clicked()), this, SLOT(AddVendor())); + connect(addLocation, SIGNAL(clicked()), this, SLOT(AddLocation())); + connect(addContact, SIGNAL(clicked()), this, SLOT(AddContact())); + connect(editVendor, SIGNAL(clicked()), this, SLOT(EditVendor())); GetVendorIDs(); GetVendor(vendorID[vidCursor]); @@ -237,6 +247,66 @@ void SCMWidget::GetPreviousVendor(void) } +void SCMWidget::CreateNote(void) +{ + QMessageBox::warning(this, "Approaching Singularity!", "TODO: Implementation"); +} + + +void SCMWidget::CreateAlert(void) +{ + QMessageBox::warning(this, "Approaching Singularity!", "TODO: Implementation"); +} + + +void SCMWidget::CreatePurchaseOrder(void) +{ + QMessageBox::warning(this, "Approaching Singularity!", "TODO: Implementation"); +} + + +void SCMWidget::ShowOpenPOs(void) +{ + QMessageBox::warning(this, "Approaching Singularity!", "TODO: Implementation"); +} + + +void SCMWidget::ShowClosedPOs(void) +{ + QMessageBox::warning(this, "Approaching Singularity!", "TODO: Implementation"); +} + + +void SCMWidget::ShowAllPOs(void) +{ + QMessageBox::warning(this, "Approaching Singularity!", "TODO: Implementation"); +} + + +void SCMWidget::AddVendor(void) +{ + QMessageBox::warning(this, "Approaching Singularity!", "TODO: Implementation"); +} + + +void SCMWidget::AddLocation(void) +{ + QMessageBox::warning(this, "Approaching Singularity!", "TODO: Implementation"); +} + + +void SCMWidget::AddContact(void) +{ + QMessageBox::warning(this, "Approaching Singularity!", "TODO: Implementation"); +} + + +void SCMWidget::EditVendor(void) +{ + QMessageBox::warning(this, "Approaching Singularity!", "TODO: Implementation"); +} + + void SCMWidget::GetVendorIDs(void) { vendorID.clear(); diff --git a/src/scmwidget.h b/src/scmwidget.h index d29e5ad..a3aa7f5 100644 --- a/src/scmwidget.h +++ b/src/scmwidget.h @@ -27,6 +27,16 @@ class SCMWidget: public QWidget 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);