forked from vedderb/vesc_tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqmleditor.h
executable file
·48 lines (37 loc) · 1019 Bytes
/
qmleditor.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
#ifndef QMLEDITOR_H
#define QMLEDITOR_H
#include <QWidget>
#include <QCodeEditor>
namespace Ui {
class QmlEditor;
}
class QmlEditor : public QWidget
{
Q_OBJECT
public:
explicit QmlEditor(QWidget *parent = nullptr);
~QmlEditor();
QCodeEditor *editor();
QString fileNow();
void setFileNow(QString fileName);
protected:
void keyPressEvent(QKeyEvent *event);
signals:
void fileOpened(QString fileName);
void fileSaved(QString fileName);
void fileNameChanged(QString newName);
private slots:
void on_openFileButton_clicked();
void on_saveButton_clicked();
void on_saveAsButton_clicked();
void on_searchEdit_textChanged(const QString &arg1);
void on_searchPrevButton_clicked();
void on_searchNextButton_clicked();
void on_replaceThisButton_clicked();
void on_replaceAllButton_clicked();
void on_searchHideButton_clicked();
void on_searchCaseSensitiveBox_toggled(bool checked);
private:
Ui::QmlEditor *ui;
};
#endif // QMLEDITOR_H