18 #ifndef QMLAPPLICATION_H
19 #define QMLAPPLICATION_H
31 class QmlApplication :
public QObject
34 Q_PROPERTY(Qt::WindowModality dialogModality READ dialogModality CONSTANT);
35 Q_PROPERTY(QPoint mousePos READ mousePos);
36 Q_PROPERTY(QColor toolTipBaseColor READ toolTipBaseColor NOTIFY paletteChanged)
37 Q_PROPERTY(QColor toolTipTextColor READ toolTipTextColor NOTIFY paletteChanged)
38 Q_PROPERTY(QString OS READ OS CONSTANT)
39 Q_PROPERTY(QRect mainWinRect READ mainWinRect);
40 Q_PROPERTY(
bool hasFiltersOnClipboard READ hasFiltersOnClipboard NOTIFY filtersCopied)
41 Q_PROPERTY(qreal devicePixelRatio READ devicePixelRatio CONSTANT)
42 Q_PROPERTY(
int maxTextureSize READ maxTextureSize CONSTANT)
45 static QmlApplication& singleton();
46 static Qt::WindowModality dialogModality();
47 static QPoint mousePos();
48 static QColor toolTipBaseColor();
49 static QColor toolTipTextColor();
51 static QRect mainWinRect();
52 static bool hasFiltersOnClipboard();
53 Q_INVOKABLE
static void copyFilters();
54 Q_INVOKABLE
static void pasteFilters();
55 Q_INVOKABLE
static QString timecode(
int frames);
56 Q_INVOKABLE
static int audioChannels();
57 Q_INVOKABLE
static QString getNextProjectFile(
const QString& filename);
58 Q_INVOKABLE
static bool isProjectFolder();
59 static qreal devicePixelRatio();
60 Q_INVOKABLE
void showStatusMessage(
const QString& message,
int timeoutSeconds = 5);
61 static int maxTextureSize();
62 Q_INVOKABLE
static bool confirmOutputFilter();
65 void paletteChanged();
67 void filtersPasted(Mlt::Producer*);
70 explicit QmlApplication();
71 QmlApplication(QmlApplication
const&);
72 void operator=(QmlApplication
const&);
75 #endif // QMLAPPLICATION_H