-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathProjectWindowInterface.h
More file actions
81 lines (58 loc) · 2.55 KB
/
ProjectWindowInterface.h
File metadata and controls
81 lines (58 loc) · 2.55 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#ifndef DIFFSCOPE_COREPLUGIN_PROJECTWINDOWINTERFACE_H
#define DIFFSCOPE_COREPLUGIN_PROJECTWINDOWINTERFACE_H
#include <qqmlintegration.h>
#include <SVSCraftCore/SVSCraftNamespace.h>
#include <coreplugin/ActionWindowInterfaceBase.h>
#include <coreplugin/coreglobal.h>
namespace QAK {
class QuickActionContext;
}
class QAbstractItemModel;
class QJSValue;
namespace QDspx {
class Model;
}
namespace Core {
class NotificationMessage;
class ProjectTimeline;
class EditActionsHandlerRegistry;
class ProjectDocumentContext;
class ProjectWindowInterfacePrivate;
class CORE_EXPORT ProjectWindowInterface : public ActionWindowInterfaceBase {
Q_OBJECT
QML_ELEMENT
QML_UNCREATABLE("")
Q_PROPERTY(ProjectTimeline *projectTimeline READ projectTimeline CONSTANT)
Q_PROPERTY(ProjectDocumentContext *projectDocumentContext READ projectDocumentContext CONSTANT)
Q_PROPERTY(EditActionsHandlerRegistry *mainEditActionsHandlerRegistry READ mainEditActionsHandlerRegistry CONSTANT)
Q_DECLARE_PRIVATE(ProjectWindowInterface)
public:
ProjectTimeline *projectTimeline() const;
ProjectDocumentContext *projectDocumentContext() const;
EditActionsHandlerRegistry *mainEditActionsHandlerRegistry() const;
enum NotificationBubbleMode {
NormalBubble,
DoNotShowBubble,
AutoHide,
};
Q_ENUM(NotificationBubbleMode)
Q_INVOKABLE void sendNotification(NotificationMessage *message, NotificationBubbleMode mode = NormalBubble);
Q_INVOKABLE void sendNotification(SVS::SVSCraft::MessageBoxIcon icon, const QString &title, const QString &text, NotificationBubbleMode mode = NormalBubble);
Q_INVOKABLE bool save();
Q_INVOKABLE bool saveAs();
Q_INVOKABLE bool saveCopy();
protected:
QWindow *createWindow(QObject *parent) const override;
explicit ProjectWindowInterface(ProjectDocumentContext *projectDocumentContext, QObject *parent = nullptr);
explicit ProjectWindowInterface(ProjectWindowInterfacePrivate &d, QObject *parent = nullptr);
~ProjectWindowInterface() override;
friend class ExecutiveInterfaceRegistry<ProjectWindowInterface>;
private:
QScopedPointer<ProjectWindowInterfacePrivate> d_ptr;
};
class CORE_EXPORT ProjectWindowInterfaceRegistry : public ExecutiveInterfaceRegistry<ProjectWindowInterface> {
public:
static ProjectWindowInterfaceRegistry *instance();
};
}
#endif //DIFFSCOPE_COREPLUGIN_PROJECTWINDOWINTERFACE_H