29 Q_DISABLE_COPY_MOVE(QDesignerDialogGuiInterface)
31 QDesignerDialogGuiInterface();
32 virtual ~QDesignerDialogGuiInterface();
34 enum Message { FormLoadFailureMessage, UiVersionMismatchMessage, ResourceLoadFailureMessage,
35 TopLevelSpacerMessage, PropertyEditorMessage, SignalSlotEditorMessage, FormEditorMessage,
36 PreviewFailureMessage, PromotionErrorMessage, ResourceEditorMessage,
37 ScriptDialogMessage, SignalSlotDialogMessage, OtherMessage, FileChangedMessage };
39 virtual QMessageBox::StandardButton
40 message(QWidget *parent, Message context, QMessageBox::Icon icon,
41 const QString &title,
const QString &text, QMessageBox::StandardButtons buttons = QMessageBox::Ok,
42 QMessageBox::StandardButton defaultButton = QMessageBox::NoButton) = 0;
44 virtual QMessageBox::StandardButton
45 message(QWidget *parent, Message context, QMessageBox::Icon icon,
46 const QString &title,
const QString &text,
const QString &informativeText,
47 QMessageBox::StandardButtons buttons = QMessageBox::Ok,
48 QMessageBox::StandardButton defaultButton = QMessageBox::NoButton) = 0;
50 virtual QMessageBox::StandardButton
51 message(QWidget *parent, Message context, QMessageBox::Icon icon,
52 const QString &title,
const QString &text,
const QString &informativeText,
const QString &detailedText,
53 QMessageBox::StandardButtons buttons = QMessageBox::Ok,
54 QMessageBox::StandardButton defaultButton = QMessageBox::NoButton) = 0;
56 virtual QString getExistingDirectory(QWidget *parent =
nullptr,
const QString &caption = QString(),
const QString &dir = QString(), QFileDialog::Options options = QFileDialog::ShowDirsOnly)= 0;
57 virtual QString getOpenFileName(QWidget *parent =
nullptr,
const QString &caption = QString(),
const QString &dir = QString(),
const QString &filter = QString(), QString *selectedFilter =
nullptr, QFileDialog::Options options = {})= 0;
58 virtual QString getOpenImageFileName(QWidget *parent =
nullptr,
const QString &caption = QString(),
const QString &dir = QString(),
const QString &filter = QString(), QString *selectedFilter =
nullptr, QFileDialog::Options options = {});
59 virtual QStringList getOpenFileNames(QWidget *parent =
nullptr,
const QString &caption = QString(),
const QString &dir = QString(),
const QString &filter = QString(), QString *selectedFilter =
nullptr, QFileDialog::Options options = {})= 0;
60 virtual QStringList getOpenImageFileNames(QWidget *parent =
nullptr,
const QString &caption = QString(),
const QString &dir = QString(),
const QString &filter = QString(), QString *selectedFilter =
nullptr, QFileDialog::Options options = {});
61 virtual QString getSaveFileName(QWidget *parent =
nullptr,
const QString &caption = QString(),
const QString &dir = QString(),
const QString &filter = QString(), QString *selectedFilter =
nullptr, QFileDialog::Options options = {})= 0;