forked from zhengran14/SwitchGamepad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
minitool.h
58 lines (43 loc) · 1.26 KB
/
minitool.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
#ifndef MINITOOL_H
#define MINITOOL_H
#include <QMainWindow>
namespace Ui {
class MiniTool;
}
class MiniTool : public QMainWindow
{
Q_OBJECT
public:
explicit MiniTool(QWidget *parent = nullptr);
~MiniTool();
void clearScriptList();
void AddScriptList(QStringList scripts);
void AddScript(QString script);
void InsertScript(int index, QString script);
void RefreshScriptList(QStringList scripts);
QLayout *GetVideoCaptionFrameLayout();
void setScriptRunEnabled(bool b);
void setScriptRunText(QString text);
void setScriptName(int index, QString name);
void setScriptListCurrentIndex(int index);
void adjustVideoCaptionFrameLayout();
void setScriptListEnabled(bool b);
protected:
bool eventFilter(QObject *target, QEvent *event);
void resizeEvent(QResizeEvent *event);
private slots:
void on_resize_clicked(bool checked);
void on_runScript_clicked();
void on_scriptList_currentIndexChanged(int index);
void on_showMainWindow_clicked();
void on_zoomIn_clicked();
void on_zoomOut_clicked();
void on_restore_clicked();
private:
Ui::MiniTool *ui;
QPoint lastPoint;
signals:
void runScriptClicked();
void scriptListCurrentIndexChanged(int index);
};
#endif // MINITOOL_H