-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainwindow.h
More file actions
44 lines (36 loc) · 891 Bytes
/
mainwindow.h
File metadata and controls
44 lines (36 loc) · 891 Bytes
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
#ifndef _MAINWINDOW_H
#define _MAINWINDOW_H
#include "filebrowser.h"
#include <QtGui>
class MainWindow : public QMainWindow
{
Q_OBJECT;
public:
MainWindow(QWidget *parent=NULL);
private slots:
void fileNew();
void fileOpen();
bool fileSave();
bool fileSaveAs();
void closeTab();
void switchTab();
void modified(bool changed);
void testSlot();
void loadFromBrowser(QListWidgetItem *item);
private:
bool load(const QString &fileName);
void refreshFileBrowser();
QAction *actionSave;
QAction *actionUndo;
QAction *actionRedo;
QAction *actionCut;
QAction *actionCopy;
QAction *actionPaste;
QSplitter *splitter;
FileBrowser *fileBrowser;
QTabWidget *tabArea;
QHash<QString, int> opened;
int tabinc;
bool testbool;
};
#endif /* _MAINWINDOW_H */