-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenubarwid.h
61 lines (49 loc) · 1.24 KB
/
menubarwid.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
#ifndef MENUBARWID_H
#define MENUBARWID_H
#include <QWidget>
#include <QLabel>
#include <QButtonGroup>
#include <QHBoxLayout>
#include <QDebug>
#include <QProgressBar>
#include "pushbutton.h"
#include "toolbutton.h"
class MenuBarWid : public QWidget
{
Q_OBJECT
public:
explicit MenuBarWid(QWidget *parent = nullptr);
void setupUi();
~MenuBarWid();
void Init();
void translateLanguage();
void setFirBtnChecked();
signals:
void CurSelectPage(int);
void showMin();
void showMax();
void closeWidget();
public slots:
void slot_btnGroupClicked(int btnNum);
void slotSetTotleNum();
void rec_TotleNum(int num);
void ReInit();
private:
QWidget *widget=new QWidget(this);
PushButton *m_pMin_button; //最小化
PushButton *m_pMax_button; //最大化
PushButton *m_pClose_button; //关闭
QLabel *m_pVersion_title; //标题
QButtonGroup *pushButtonGroup;
QLabel* m_lbMode;
QPushButton* m_btn_Mode;
QHBoxLayout *modebtn_layout;
QLabel* m_lbModeCircle;
QLabel* lb_currentModeTitle;
bool m_bMode;
QLabel* m_lbTotleNum;
QLabel* lb_TotleNum;
int m_ItotleNum;
QProgressBar *ProgressBar;
};
#endif // MENUBARWID_H