-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmainwindow.h
More file actions
77 lines (62 loc) · 1.62 KB
/
Copy pathmainwindow.h
File metadata and controls
77 lines (62 loc) · 1.62 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "luaengine.h"
#include <QAction>
#include <QComboBox>
#include <QDockWidget>
#include <QFileSystemWatcher>
#include <QLabel>
#include <QList>
#include <QMainWindow>
#include <QMenu>
#include <QMenuBar>
#include <QSettings>
#include <QStatusBar>
#include <QToolBar>
class LuaValueEdit;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
protected:
void closeEvent(QCloseEvent *);
private:
QSettings m_settings;
QString m_appname;
void setupUI();
void saveConfigFile();
void updateUI();
void createFnToolBar();
int m_fn_count;
QList<QAction *> m_fn_actions;
QList<QString> getScriptFileNames();
QComboBox *m_cbx_scripts;
bool m_is_pause;
bool m_is_running;
void createScriptToolBar();
QList<QAction *> m_script_tool_actions;
QAction *m_run_action, *m_paush_action, *m_edit_action, *m_stop_media_action;
void createMenu();
void createToolsMenu();
LuaValueEdit *m_value_edit;
QLabel *m_lbl_script_state;
QList<QDockWidget *> m_docks;
QList<QToolBar *> m_tool_bars;
QFileSystemWatcher m_fs_watcher;
public slots:
void onLuaEvent(LuaEvent event);
void onLuaStateChange(QString, bool isRunning);
void onLuaScriptError(QString msg);
void onFnClick();
void onScriptRunClick();
void onScriptPauseClick();
void onScriptEditClick();
void onToolActionClick();
void onScriptChanged();
void onFontBigClick();
void onFontMidClick();
void onFontNormalClick();
void onStopMediaClick();
};
#endif // MAINWINDOW_H