MagicSmoke  $VERSION$
overview.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-2016
8 //
9 // Copyright: See README/COPYING.GPL files that come with this distribution
10 //
11 //
12 
13 #ifndef MAGICSMOKE_OVERVIEW_H
14 #define MAGICSMOKE_OVERVIEW_H
15 
16 #include <QDateTime>
17 #include <QDialog>
18 #include <QItemDelegate>
19 #include <QMainWindow>
20 #include <QTimer>
21 
22 #include "tabwin.h"
23 
24 class QAction;
25 class QCheckBox;
26 class QComboBox;
27 class QLabel;
28 class QLineEdit;
29 class QPushButton;
30 class QSpinBox;
31 class QStandardItemModel;
32 class QTabWidget;
33 class QTableView;
34 
35 class MSInterface;
36 
37 class MEventsTab;
38 class MCartTab;
39 class MOrdersTab;
40 class MEntranceTab;
41 class MUserTab;
42 class MHostTab;
43 
45 class MOverview:public MTabWin
46 {
47  Q_OBJECT
48  public:
50  MOverview(QString);
51  ~MOverview();
52  protected:
54  void closeEvent(QCloseEvent*) override;
55 
56  private slots:
58  void relogin();
59 
61  void tabChanged(int);
62 
64  void setRefresh();
65 
67  void webSettings(bool dlg=true);
68 
70  void setMyPassword();
71 
73  void displaySettings();
75  void backupSettings();
77  void labelSettings();
79  void openOfficeSettings();
81  void barcodeSettings();
83  void changeLang();
84 
86  void orderAudit();
88  void ticketAudit();
90  void voucherAudit();
92  void userAudit();
93 
94  public slots:
96  void showRestored();
97 
99  void customerMgmt();
100 
102  void editShipping();
104  void editPayment();
105 
107  void ticketReturn();
109  void deductVoucher();
111  void emptyVoucher();
112 
114  void refreshData();
115 
117  void doBackup();
118 
120  void switchToCartTab();
121 
123  void aclWindow();
124 
126  void editTemplates();
127  void editOdfTemplate();
128 
129  private:
130  friend class MWizard;
131  //the profile associated with this session
132  //widgets
133  MEventsTab*eventtab;
134  MCartTab*carttab;
135  MOrdersTab*ordertab;
136  MEntranceTab*entrancetab;
137  //refresh timers
138  QTimer rtimer,baktimer;
139 };
140 
141 #endif
Main Overview Window: cart tab.
Definition: carttab.h:47
void aclWindow()
open ACL/user admin window
Definition: overview.cpp:652
Main Overview Window.
Definition: overview.h:45
void customerMgmt()
manage customers
Definition: overview.cpp:256
void ticketReturn()
return a ticket or voucher
Definition: overview.cpp:284
void switchToCartTab()
switch to the cart tab
Definition: overview.cpp:233
host admin tab
Definition: acltabs.h:68
Main Overview Window: order list tab.
Definition: orderstab.h:38
void closeEvent(QCloseEvent *) override
handle closing the window: close the session too
Definition: overview.cpp:205
MOverview(QString)
construct the window with web-request/session handler and QSettings-key for current profile ...
Definition: overview.cpp:69
void showRestored()
restore the window
Definition: overview.cpp:216
user admin tab
Definition: acltabs.h:34
Main Overview Window.
Definition: entrancetab.h:29
friend class MWizard
Definition: overview.h:130
void editOdfTemplate()
Definition: overview.cpp:663
Main Overview Window: Event List Tab.
Definition: eventstab.h:37
Main Overview Window.
Definition: tabwin.h:29
void editShipping()
edit shipping options
Definition: overview.cpp:262
~MOverview()
Definition: overview.cpp:226
void refreshData()
refresh data that we can refresh
Definition: overview.cpp:378
void doBackup()
do a backup now
Definition: overview.cpp:576
void editPayment()
edit payment options
Definition: overview.cpp:269
void emptyVoucher()
empty/invalidate voucher
Definition: overview.cpp:343
void deductVoucher()
deduct some money from a voucher (to pay outside the system)
Definition: overview.cpp:297
the MagicSmoke specific interface class - enhances the basic interface by some functionality needed i...
Definition: msinterface.h:29
void editTemplates()
open template editor
Definition: overview.cpp:657