-
Notifications
You must be signed in to change notification settings - Fork 0
/
codebrowser.h
50 lines (42 loc) · 1.23 KB
/
codebrowser.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
#ifndef CODEBROWSER_H
#define CODEBROWSER_H
#include <QMainWindow>
#include <QTextEdit>
#include <QTableWidget>
#include <QFileSystemModel>
#include "datamanager.h"
namespace Ui {
class CodeBrowser;
}
class CodeBrowser : public QMainWindow
{
Q_OBJECT
public:
explicit CodeBrowser(QWidget *parent = 0);
~CodeBrowser();
private:
bool mainEvent;
Ui::CodeBrowser *ui;
QFileSystemModel *fileModel;
QList<QWidget*> tabList;
QList<QTextEdit*> cList;
QList<QTextEdit*> llvmList;
QList<QTableWidget*> llvmDataList;
QList<QTableWidget*> cDataList;
DataManager* dataMng;
void newTab(QString fileName, bool mode = true);
private slots:
void on_dockFileList_visibilityChanged(bool visible);
void on_listView_doubleClicked(QModelIndex index);
void on_actionClose_All_triggered();
void on_actionClose_triggered();
void on_actionOpen_File_triggered();
void on_llvmCode_selectionChanged();
void on_cCode_selectionChanged();
void on_actionFile_List_triggered(bool checked);
void on_actionC_triggered(bool checked);
void on_actionLlvm_triggered(bool checked);
void on_codeArea_currentChanged(int index);
void on_actionOpen_Project_triggered();
};
#endif // CODEBROWSER_H