13 #ifndef MAGICSMOKE_ORDERSTAB_H
14 #define MAGICSMOKE_ORDERSTAB_H
19 #include <MOOrderInfo>
29 class QStandardItemModel;
59 void orderByCustomer();
63 void orderSinceDate();
76 void addOrderToModel(
const MOOrderInfo&,
const QList<MOCustomerInfo>&);
80 enum OrderTimeStampMode{
89 qint64 oldestOrderStamp(OrderTimeStampMode mode,
int age=-1);
94 QTableView*ordertable;
95 QStandardItemModel*ordermodel;
97 QList<MOOrderInfo>m_orders;
104 MOrdersByUserDlg(
int oldestdefault, QWidget* parent, Qt::WindowFlags f = 0);
112 QComboBox*m_uname,*m_incall;
121 explicit MOrdersReport(
const QList<MOOrderInfo>&orders,QWidget* parent = 0, Qt::WindowFlags f = 0);
126 QStandardItemModel*sum,*byord,*byday,*audit=
nullptr;
127 QTableView*stable,*otable,*dtable,*atable=
nullptr;
128 const QList<MOOrderInfo>orders;
130 void drawAllOrders();
131 void drawDayOrders();
132 void drawOrderSums();
bool includeAll() const
Definition: orderstab.cpp:494
Definition: customerinfo.h:22
Definition: orderinfo.h:24
MOrdersReport(const QList< MOOrderInfo > &orders, QWidget *parent=0, Qt::WindowFlags f=0)
Definition: orderstab.cpp:516
Main Overview Window: order list tab.
Definition: orderstab.h:38
qint64 oldest() const
Definition: orderstab.cpp:509
MOrdersTab(QString)
construct the window with QSettings-key for current profile
Definition: orderstab.cpp:63
bool mySelfOnly() const
Definition: orderstab.cpp:499
QString userName() const
Definition: orderstab.cpp:504
MOrdersByUserDlg(int oldestdefault, QWidget *parent, Qt::WindowFlags f=0)
Definition: orderstab.cpp:442
Definition: orderstab.h:117
QList< QMenu * > menu()
create menu for this tab
Definition: orderstab.cpp:128
the MagicSmoke specific interface class - enhances the basic interface by some functionality needed i...
Definition: msinterface.h:29
Definition: orderstab.h:100
void selectEventIds(QList< int > &)
needs to be connected to the event tab