-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathmainui.h
More file actions
56 lines (43 loc) · 1.23 KB
/
Copy pathmainui.h
File metadata and controls
56 lines (43 loc) · 1.23 KB
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
// SPDX-License-Identifier: MIT
// SPDX-FileCopyrightText: 2022-2025 XMuli
// SPDX-GitHub: https://github.com/XMuli/microsoft-defender-close
// SPDX-Author: XMuli <xmulitech@gmail.com>
#ifndef MAINUI_H
#define MAINUI_H
#include <QWidget>
class DWCtrl;
QT_BEGIN_NAMESPACE
class QAbstractButton;
namespace Ui { class MainUI; }
QT_END_NAMESPACE
class MainUI : public QWidget
{
Q_OBJECT
public:
enum WDValues {
WD_Stop,
WD_Start,
WD_Fore_enable
};
Q_ENUM(WDValues)
MainUI(QWidget *parent = nullptr);
~MainUI();
private:
void initUI();
QString toLocaleNameByKey(const QString& language);
QString toLocaleNameByVal(const QString& locale);
std::map<QString, QString> languageMap();
void loadTranslation(QString language = "en_us");
void setLabDescribeText(const WDValues &val);
void btnActivate_released(const WDValues &val);
bool setGroupPolicy(const WDValues& val);
public slots:
void on_cbbLanguage_currentTextChanged(const QString &arg1);
private slots:
void on_tbStop_released();
void on_tbStart_released();
void on_tbForceEnable_released();
private:
Ui::MainUI *ui;
};
#endif // MAINUI_H