Vuo 2.4.4
Loading...
Searching...
No Matches
VuoEditorUtilities.hh
Go to the documentation of this file.
1
10#pragma once
11
12class VuoEditorWindow;
13class VuoNodeClass;
15
19class VuoEditorUtilities : public QObject
20{
21 Q_OBJECT
22
23public:
24 static QPixmap vuoLogoForDialogs();
25 Q_INVOKABLE static QString getHTMLForSVG(QString svgPath, int pointsWide, int pointsHigh);
26
27 static void openUserModulesFolder();
28 static void openSystemModulesFolder();
29
30 static bool optionKeyPressedForEvent(QEvent *event);
31
32 static bool isNodeClassEditable(VuoNodeClass *nodeClass, QString &editLabel, QString &sourcePath);
33 static bool isNodeClassSuccessorTo(QString oldNodeClass, QString newNodeClass);
34
35 static QList<QMainWindow *> getOpenEditingWindows();
36 static QList<VuoEditorWindow *> getOpenCompositionEditingWindows();
37 static QList<QMainWindow *> getOpenEditingWindowsStacked();
38 static QMainWindow * existingWindowWithFile(const QString &filename);
39
40 static QAction * getRaiseDocumentActionForWindow(QMainWindow *window);
41 static VuoRecentFileMenu * getRecentFileMenuForWindow(QMainWindow *window);
42 static QMenu * getFileMenuForWindow(QMainWindow *window);
43 static void setWindowAsActiveWindow(QMainWindow *window);
44 static void setWindowOpacity(QMainWindow *window, int opacity);
45};