1 #ifndef QTMVVM_QQMLMVVMMESSAGE_H 2 #define QTMVVM_QQMLMVVMMESSAGE_H 4 #include <QtCore/QObject> 6 #include <QtQml/QQmlParserStatus> 7 #include <QtQml/QJSValue> 8 #include <QtQml/QJSEngine> 10 #include <QtMvvmCore/Messages> 26 class QQmlMvvmMessage :
public QObject 74 bool addQtVersion =
true,
85 const QVariantMap &viewProperties = {},
87 const QString &cancelText = {});
93 const QUrl &dir = {});
99 const QUrl &dir = {});
105 const QUrl &dir = {});
111 const QUrl &dir = {});
126 bool allowCancel =
true,
128 const QString &cancelText = {});
133 bool allowCancel =
true,
134 const QString &cancelText = {});
139 bool allowCancel =
true,
140 const QString &cancelText = {});
152 #endif // QTMVVM_QQMLMVVMMESSAGE_H static void getSaveFile(const QJSValue &onResult, const QString &title={}, const QStringList &supportedMimeTypes={}, const QUrl &dir={})
A QML version of the QtMvvm::getSaveFile method.
static void critical(const QString &title, const QString &text, const QJSValue &onResult={}, const QString &okText={})
A QML version of the QtMvvm::critical method.
static void warning(const QString &title, const QString &text, const QJSValue &onResult={}, const QString &okText={})
A QML version of the QtMvvm::warning method.
static QTMVVM_REVISION_1 void getColor(const QJSValue &onResult={}, const QString &title={}, const QColor &color={}, bool argb=false)
A QML version of the QtMvvm::getColor method.
The QML import for the QtMvvmCore QML module.
A Helper class to control a generic progress dialog.
static void getOpenFile(const QJSValue &onResult={}, const QString &title={}, const QStringList &supportedMimeTypes={}, const QUrl &dir={})
A QML version of the QtMvvm::getOpenFile method.
static void getOpenFiles(const QJSValue &onResult, const QString &title={}, const QStringList &supportedMimeTypes={}, const QUrl &dir={})
A QML version of the QtMvvm::getOpenFiles method.
A QML signelton to access the QtMvvm namespace methods for showing simple dialogs.
static QTMVVM_REVISION_1 QtMvvm::ProgressControl * showProgress(const QString &title={}, const QString &label={}, int maximum=100, int minimum=0, bool allowCancel=true, int value=0, const QString &cancelText={})
A QML version of the QtMvvm::showProgress method.
static void question(const QString &title, const QString &text, const QJSValue &onResult={}, const QString &yesText={}, const QString &noText={})
A QML version of the QtMvvm::question method.
static QTMVVM_REVISION_1 QtMvvm::ProgressControl * showIndeterminateProgress(const QString &title={}, const QString &label={}, bool allowCancel=true, const QString &cancelText={})
A QML version of the QtMvvm::showIndeterminateProgress method.
static void getInput(const QString &title, const QString &text, const QString &inputType, const QJSValue &onResult={}, const QVariant &defaultValue={}, const QVariantMap &viewProperties={}, const QString &okText={}, const QString &cancelText={})
A QML version of the QtMvvm::getInput method.
static void getExistingDirectory(const QJSValue &onResult={}, const QString &title={}, const QUrl &dir={})
A QML version of the QtMvvm::getExistingDirectory method.
static void about(const QString &description, const QUrl &websiteUrl=QUrl(), const QString &licenseName=QString(), const QUrl &licenseUrl=QUrl(), const QString &companyName=QString(), bool addQtVersion=true, const QStringList &extraTopInfos=QStringList(), const QString &extraBottomInfos=QString())
A QML version of the QtMvvm::about method.
static void information(const QString &title, const QString &text, const QJSValue &onResult={}, const QString &okText={})
A QML version of the QtMvvm::information method.
The primary namespace of the QtMvvm library.
static QTMVVM_REVISION_1 QtMvvm::ProgressControl * showBusy(const QString &title={}, const QString &label={}, bool allowCancel=true, const QString &cancelText={})
A QML version of the QtMvvm::showBusy method.