forked from bobrnor/ontolis
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathOntolisWindow.h
91 lines (64 loc) · 2.24 KB
/
OntolisWindow.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
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#ifndef ONTOLISWINDOW_H
#define ONTOLISWINDOW_H
#include <QMainWindow>
#include "widgets/Shared/OLSOntologyDataController.h"
#include "widgets/OntologyGraph/OLSOntologyGraphWidget.h"
#include "widgets/OntologyTree/OLSOntologyTreeViewController.h"
#include "widgets/OntologyPallete/OLSOntologyPalleteWidget.h"
#include "widgets/ProjectTree/OLSProjectTreeViewController.h"
#include "widgets/ProjectTree/OLSProject.h"
#include "ontoliscategorywidget.h"
namespace Ui {
class OntolisWindow;
}
class OntolisWindow : public QMainWindow {
Q_OBJECT
public:
explicit OntolisWindow(QWidget *parent = 0);
~OntolisWindow();
private:
Ui::OntolisWindow *ui;
OLSProject m_currentProject;
QList<OLSOntologyGraphWidget *> m_openOntologyWidgets;
QTreeView *m_logTreeView;
OLSOntologyPalleteWidget *m_palleteWidget;
OntolisCategoryWidget *m_categoryWidget;
OLSProjectTreeViewController *m_projectTreeViewController;
OLSOntologyTreeViewController *m_ontologyTreeViewController;
long m_currentSnapshotIndex;
QShortcut *m_zoomInShortcut;
QShortcut *m_zoomOutShortcut;
QShortcut *m_removeShortcut;
QMap<QString, QString> m_convertersMapping;
QMap<QString, QString> m_transformatorsMapping;
void setupMenu();
void setupConverters();
void setupTransformators();
OLSOntologyGraphWidget *createNewOntologyWidget(OLSProjectFile *file);
void clearConnections();
void updateOntologyTreeData();
void openFile(QString path);
private slots:
void importSourceFileSlot();
void createOntologyFileSlot();
void openOntologyFileSlot();
void saveOntologyFileSlot();
void saveOntologyAsFileSlot();
void openProjectSlot();
void saveProjectSlot();
void exportFileSlot();
void screenshotSlot();
void transformSlot();
void showOntologySlot();
void showSourceCodeSlot();
void moveToStartSlot();
void moveForwardSlot();
void moveBackwardSlot();
void moveToEndSlot();
void currentTabChangedSlot(int index);
void currentFileChangedSlot(const QString &fileName);
void categorySelectedSlot(const QString &fileName, const QString &categoryName);
signals:
void itemsSelectedSignal(const QSet<long> ids);
};
#endif // ONTOLISWINDOW_H