This repository was archived by the owner on May 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathWinMain.h
More file actions
58 lines (46 loc) · 1.31 KB
/
WinMain.h
File metadata and controls
58 lines (46 loc) · 1.31 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
#ifndef WINMAIN_H
#define WINMAIN_H
#include <QDebug>
#include <QDesktopServices>
#include <QMainWindow>
#include <QContextMenuEvent>
#include <QDirIterator>
#include <QFileInfo>
#include <QMimeData>
#include <QStandardPaths>
#include <QTextCodec>
#include <QTextStream>
#include "OpenMWConfigInterface.h"
#include "SettingsInterface.h"
#include "TreeModModel.h"
#include "TreeModItem.h"
namespace Ui {
class WinMain;
}
class WinMain : public QMainWindow
{
Q_OBJECT
public:
explicit WinMain(QWidget *parent = 0);
~WinMain();
public slots:
void actAddData();
void actAddChildData();
void actDeleteData();
void actContextMenuDataTree(const QPoint& pos);
void actContextMenuDataTreeOpenFolder();
void actContextMenuDataTreeHeader(const QPoint& pos);
void actContextMenuDataTreeHeaderTriggered(QAction* action);
protected:
void dragEnterEvent(QDragEnterEvent* event) Q_DECL_OVERRIDE;
void dragMoveEvent(QDragMoveEvent* event) Q_DECL_OVERRIDE;
void dropEvent(QDropEvent* event) Q_DECL_OVERRIDE;
private:
/** Open a file-chooser to locate config folder manually. */
QString locateConfigFolder();
void addNewData(QAbstractItemModel* model, const QModelIndex& parent, int position, const QFileInfo& target);
Ui::WinMain *ui;
SettingsInterface* settings;
OpenMWConfigInterface* openMWConfig;
};
#endif // WINMAIN_H