MagicSmoke  $VERSION$
entrancetab.h
Go to the documentation of this file.
1 //
2 // C++ Interface: overview
3 //
4 // Description:
5 //
6 //
7 // Author: Konrad Rosenbaum <konrad@silmor.de>, (C) 2007-2011
8 //
9 // Copyright: See README/COPYING.GPL files that come with this distribution
10 //
11 //
12 
13 #ifndef MAGICSMOKE_ENTRANCETAB_H
14 #define MAGICSMOKE_ENTRANCETAB_H
15 
16 #include <QDateTime>
17 #include <QWidget>
18 
19 class QMenu;
20 class QComboBox;
21 class QLabel;
22 class QLineEdit;
23 class QPushButton;
24 class QStandardItemModel;
25 
26 class MSInterface;
27 
29 class MEntranceTab:public QWidget
30 {
31  Q_OBJECT
32  public:
34  MEntranceTab(QString);
35 
37  QList<QMenu*>menu()const;
38  public slots:
41  void initialize(bool force=true);
42  private slots:
44  void entranceValidate();
46  void resetLabel();
48  void openOrder();
50  void resetAmounts();
52  void configure();
54  void askForFocus();
55 
56  signals:
58  void askForFocus(QWidget*);
59  private:
60  friend class METUtility;
61  //the profile associated with this session
62  QString profilekey;
63  //widgets
64  QLabel*entrancelabel;
65  QComboBox*entranceevent;
66  QLineEdit*entrancescan;
67  QPushButton*orderbtn;
68  QLabel*amtotal,*amused,*amopen,*amreserved;
69  //barcode cache
70  QString lastbarcode;
71  QDateTime lastbcscan;
72  //event update timeout
73  QDateTime lasteventupdate;
74 };
75 
76 #endif
MEntranceTab(QString)
construct the window with web-request/session handler and QSettings-key for current profile ...
Definition: entrancetab.cpp:38
QList< QMenu * > menu() const
creates a menu for the entrance tab
Definition: entrancetab.cpp:97
while the object lives the tab handed to it is disabled, it automatically reenables when the disable ...
Definition: entrancetab.cpp:108
Main Overview Window.
Definition: entrancetab.h:29
void initialize(bool force=true)
initializes the tab
Definition: entrancetab.cpp:206
the MagicSmoke specific interface class - enhances the basic interface by some functionality needed i...
Definition: msinterface.h:29