13 #ifndef MAGICSMOKE_CARTTAB_H 
   14 #define MAGICSMOKE_CARTTAB_H 
   18 #include <QItemDelegate> 
   19 #include <QMainWindow> 
   32 class QStandardItemModel;
 
   87                 void setDeliveryAddr();
 
   89                 void setInvoiceAddr();
 
   95                 void cartAddVoucher();
 
   99                 void cartRemoveItem();
 
  101                 void cartOrder(
bool isreserve=
false,
bool issale=
false);
 
  107                 void resetColor(
bool addronly=
false);
 
  111                 void changeVoucher(QString url);
 
  117                 QTableView*carttable;
 
  118                 QStandardItemModel*cartmodel;
 
  119                 QLabel*cartcustomer,*deliveryaddr,*invoiceaddr,*price,*coupon,*vouchers,*priceremain;
 
  120                 QTextEdit *cartcomment;
 
  124                 qint64 deliveryaddrid,invoiceaddrid;
 
  126                 QList<QPair<QString,int>> vouchersforpay;
 
  129                 bool canorder(
bool isreserve);
 
  137                 void verifyOrderTickets(
const QList<MOCartTicket>&);
 
  139                 void verifyOrderVouchers(
const QList<MOCartVoucher>&);
 
  141                 void verifyOrderItems(
const QList<MOCartItem>&);
 
  144                 void addTicketForEvent(qint64,qint64 prcid=-1);
 
  150                 void displayUsedVouchers(
const QList<MOVoucher>&,
int paidcash);
 
  159                 QWidget *
createEditor(QWidget *parent, 
const QStyleOptionViewItem &option,
 
  160                                       const QModelIndex &index) 
const;
 
  162                 void setEditorData(QWidget *editor, 
const QModelIndex &index) 
const;
 
  163                 void setModelData(QWidget *editor, QAbstractItemModel *model,
 
  164                                   const QModelIndex &index) 
const;
 
This class represents a coupon. 
Definition: srcMOCoupon.h:16
Definition: srcMOCartItem.h:14
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const 
Definition: carttab.cpp:1017
void setEditorData(QWidget *editor, const QModelIndex &index) const 
Definition: carttab.cpp:1030
Encapsulates tickets for a specific event in a specific price category as they are stored in the cart...
Definition: srcMOCartTicket.h:18
void requestFocus()
emitted when the cart tab wants focus because something important changed 
Definition: customer.h:24
QList< QMenu * > menu()
creates the menu for this tab 
Definition: carttab.cpp:165
Main Overview Window: cart tab. 
Definition: carttab.h:47
Encapsulates vouchers as they are stored in the cart. Used by the client to tell the server about new...
Definition: srcMOCartVoucher.h:15
MCartTableDelegate(QObject *parent=0)
Definition: carttab.cpp:1012
The cart as used from the remote (non-web) system, this is a transaction object, it has no equivalent...
Definition: srcMOCartOrder.h:18
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const 
Definition: carttab.cpp:1038
~MCartTab()
destructs the tab 
Definition: carttab.cpp:180
MCartTab(QString)
construct the window with QSettings-key for current profile 
Definition: carttab.cpp:52
void eventOrderTicket()
order ticket from event tab 
Definition: carttab.cpp:391
void getEventId(int &, bool &)
select an event 
this class represents a complete order 
Definition: order.h:27
void updateShipping()
update shipping info 
Definition: carttab.cpp:187
int currentEventId()
must be connected to the slot in the event tab: returns the currently selected event ID ...
QString currentEventStart()
must be connected to the slot in the event tab: returns the currently selected event start time (as s...
the MagicSmoke specific interface class - enhances the basic interface by some functionality needed i...
Definition: msinterface.h:29
QString currentEventTitle()
must be connected to the slot in the event tab: returns the currently selected event title ...
Helper class for shopping cart: allow editing amount, but nothing else. 
Definition: carttab.h:154