-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPredictCustomConfig.h
More file actions
48 lines (47 loc) · 1.15 KB
/
PredictCustomConfig.h
File metadata and controls
48 lines (47 loc) · 1.15 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
#ifndef CONSOLE
#ifndef _PREDICTCUSTOMCONFIG_H
#define _PREDICTCUSTOMCONFIG_H
#pragma execution_character_set("utf-8")
#include <QWidget>
#include "ui_custom.h"
#include "HexString.h"
#include "DS_HashTable.h"
class PredictConfig;
class QtProperty;
class QtVariantPropertyManager;
class QtVariantEditorFactory;
class QtTreePropertyBrowser;
class QVariant;
class QtVariantProperty;
class PredictCustomConfig : public QWidget
{
Q_OBJECT
public:
PredictCustomConfig(QWidget* parent = 0);
~PredictCustomConfig();
void SetConfig(PredictConfig* config);
protected:
void closeEvent(QCloseEvent *event);
public slots:
void onSave();
void onCancel();
void onValueChanged(QtProperty* prop, const QVariant &var);
void onShowMore();
void onStatistic();
void onCalculate();
private:
void Refresh();
void CheckKey();
private:
Ui::CustomConfig* ui;
PredictConfig* mConfig;
bool mChanged;
private:
QtVariantPropertyManager* g_variantManager = 0;
QtVariantEditorFactory* g_variantFactory = 0;
QtTreePropertyBrowser* g_variantEditor = 0;
QtProperty* g_topItem = 0;
DataStructures::HashTable<DataStructures::HexString, QtVariantProperty *> g_variantsMap;
};
#endif
#endif