#include <QSpinBox>
#include <QDomDocument>
#include <QDomElement>
+#include <QComboBox>
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);
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);
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);
class QPushButton;
class QLineEdit;
class QLabel;
+class QComboBox;
/**Main Overview Window*/
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;
};