-
Notifications
You must be signed in to change notification settings - Fork 2
/
settinghomeframe.h
78 lines (65 loc) · 1.58 KB
/
settinghomeframe.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#ifndef SETTINGHOMEFRAME_H
#define SETTINGHOMEFRAME_H
/**
pos系统设置相关的主页面
*/
#include <QFrame>
#include "gridlayoutex.h"
#include "estimateclearlyframe.h"
#include "reportsframe.h"
#include "ordersmanagerframe.h"
#include "cashboxsetframe.h"
#include "reducemenupriceframe.h"
#include "recommendationframe.h"
#include "printersframe.h"
#include "sysoptframe.h"
class SetPanel : public QFrame
{
public:
SetPanel(QWidget* parent = nullptr);
public:
void addFrame(QFrame* nfrm);
QFrame* showFrame(const QString& objName);
public:
void resizeEvent(QResizeEvent*) override;
void showEvent(QShowEvent*) override;
private:
QMap<QString, QFrame*> _frames;
};
class SettingHomeFrame : public QFrame
{
Q_OBJECT
public:
explicit SettingHomeFrame(QWidget *parent = nullptr);
~SettingHomeFrame() override;
public:
void resizeEvent(QResizeEvent*) override;
void showEvent(QShowEvent*) override;
void retranslateUI();
public slots:
void onKeyDown(const QString&);
private:
void init();
private:
GridLayoutEx* _layout;
GridLayoutEx* _nav;
//右侧面板
SetPanel* _panel;
//估清设置
EstimateClearlyFrame* _estiFrm;
//打印机设置
PrintersFrame* _printFrm;
//报表页面
ReportsFrame* _reportFrm;
//订单管理页面
OrdersManagerFrame* _ordersFrm;
//钱箱设置
CashBoxSetFrame* _cashFrm;
//特价菜设置
ReduceMenuPriceFrame* _reduceFrm;
//店长推荐
RecommendationFrame* _recomFrm;
//系统设置
SysOptFrame* _sysFrm;
};
#endif // SETTINGHOMEFRAME_H