order list tab design
authorkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sun, 16 Mar 2008 10:31:20 +0000 (10:31 +0000)
committerkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sun, 16 Mar 2008 10:31:20 +0000 (10:31 +0000)
git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@120 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33

src/overview.cpp
src/overview.h

index 4283f53..56296b4 100644 (file)
@@ -36,6 +36,7 @@
 #include <QSpinBox>
 #include <QDomDocument>
 #include <QDomElement>
+#include <QComboBox>
 
 MOverview::MOverview(MWebRequest*mw,QString pk)
 {
@@ -72,6 +73,8 @@ MOverview::MOverview(MWebRequest*mw,QString pk)
        
        //tabs
        setCentralWidget(tab=new QTabWidget);
+       
+       //Event tab
        tab->addTab(eventtab=new QWidget,tr("Events"));
        QVBoxLayout*vl;QHBoxLayout*hl;
        eventtab->setLayout(hl=new QHBoxLayout);
@@ -94,6 +97,7 @@ MOverview::MOverview(MWebRequest*mw,QString pk)
        p->setEnabled(req->hasRole("createorder"));
        vl->addStretch(10);
        
+       //Shopping Cart Tab
        tab->addTab(carttab=new QWidget,tr("Shopping Cart"));
        carttab->setLayout(vl=new QVBoxLayout);
        vl->addLayout(hl=new QHBoxLayout);
@@ -142,6 +146,27 @@ MOverview::MOverview(MWebRequest*mw,QString pk)
        hl->addWidget(p=new QPushButton(tr("Clear")));
        connect(p,SIGNAL(clicked()),this,SLOT(initCart()));
        
+       //Order List Tab
+       tab->addTab(ordertab=new QWidget,tr("Order List"));
+       ordertab->setLayout(hl=new QHBoxLayout);
+       hl->addLayout(vl=new QVBoxLayout,10);
+       vl->addWidget(ordermode=new QComboBox,0);
+       ordermode->addItem(tr("-select mode-"));
+       ordermode->addItem(tr("All Orders"));
+       ordermode->addItem(tr("Open Orders"));
+       ordermode->addItem(tr("Outstanding Payments"));
+       ordermode->addItem(tr("Outstanding Refunds"));
+       vl->addWidget(new QTableView);
+       hl->addLayout(vl=new QVBoxLayout,0);
+       vl->addWidget(new QPushButton(tr("Details...")),0);
+       vl->addSpacing(10);
+       vl->addWidget(new QPushButton(tr("Payment")),0);
+       vl->addWidget(new QPushButton(tr("Refund")),0);
+       vl->addSpacing(10);
+       vl->addWidget(new QPushButton(tr("Print Tickets")),0);
+       vl->addWidget(new QPushButton(tr("Print Bill")),0);
+       vl->addStretch(10);
+       
        //user tab
        tab->addTab(usertab=new QWidget,tr("Users"));
        usertab->setLayout(hl=new QHBoxLayout);
index c407fd7..246b1e4 100644 (file)
@@ -27,6 +27,7 @@ class QStandardItemModel;
 class QPushButton;
 class QLineEdit;
 class QLabel;
+class QComboBox;
 
 /**Main Overview Window*/
 class MOverview:public QMainWindow
@@ -109,12 +110,13 @@ class MOverview:public QMainWindow
                QString profilekey;
                //widgets
                QTabWidget*tab;
-               QWidget*eventtab,*carttab,*usertab,*hosttab;
+               QWidget*eventtab,*carttab,*usertab,*hosttab,*ordertab;
                QTableView*eventtable,*usertable,*hosttable,*carttable;
                QStandardItemModel*eventmodel,*usermodel,*hostmodel,*cartmodel;
                QPushButton*thishostbutton;
                QLabel*cartcustomer;
                QTextEdit *cartaddr,*cartcomment;
+               QComboBox*ordermode;
                //cart
                MCustomer customer;
 };