Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
abstractdialoggui_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3// Qt-Security score:significant reason:default
4
5//
6// W A R N I N G
7// -------------
8//
9// This file is not part of the Qt API. It exists for the convenience
10// of Qt Designer. This header
11// file may change from version to version without notice, or even be removed.
12//
13// We mean it.
14//
15
16#ifndef ABSTRACTDIALOGGUI_H
17#define ABSTRACTDIALOGGUI_H
18
19#include <QtDesigner/sdk_global.h>
20#include <QtWidgets/qmessagebox.h>
21#include <QtWidgets/qfiledialog.h>
22
24
25class QWidget;
26
27class QDESIGNER_SDK_EXPORT QDesignerDialogGuiInterface
28{
29public:
30 Q_DISABLE_COPY_MOVE(QDesignerDialogGuiInterface)
31
32 QDesignerDialogGuiInterface();
33 virtual ~QDesignerDialogGuiInterface();
34
35 enum Message { FormLoadFailureMessage, UiVersionMismatchMessage, ResourceLoadFailureMessage,
36 TopLevelSpacerMessage, PropertyEditorMessage, SignalSlotEditorMessage, FormEditorMessage,
37 PreviewFailureMessage, PromotionErrorMessage, ResourceEditorMessage,
38 ScriptDialogMessage, SignalSlotDialogMessage, OtherMessage, FileChangedMessage };
39
40 virtual QMessageBox::StandardButton
41 message(QWidget *parent, Message context, QMessageBox::Icon icon,
42 const QString &title, const QString &text, QMessageBox::StandardButtons buttons = QMessageBox::Ok,
43 QMessageBox::StandardButton defaultButton = QMessageBox::NoButton) = 0;
44
45 virtual QMessageBox::StandardButton
46 message(QWidget *parent, Message context, QMessageBox::Icon icon,
47 const QString &title, const QString &text, const QString &informativeText,
48 QMessageBox::StandardButtons buttons = QMessageBox::Ok,
49 QMessageBox::StandardButton defaultButton = QMessageBox::NoButton) = 0;
50
51 virtual QMessageBox::StandardButton
52 message(QWidget *parent, Message context, QMessageBox::Icon icon,
53 const QString &title, const QString &text, const QString &informativeText, const QString &detailedText,
54 QMessageBox::StandardButtons buttons = QMessageBox::Ok,
55 QMessageBox::StandardButton defaultButton = QMessageBox::NoButton) = 0;
56
57 virtual QString getExistingDirectory(QWidget *parent = nullptr, const QString &caption = QString(), const QString &dir = QString(), QFileDialog::Options options = QFileDialog::ShowDirsOnly)= 0;
58 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;
59 virtual QString getOpenImageFileName(QWidget *parent = nullptr, const QString &caption = QString(), const QString &dir = QString(), const QString &filter = QString(), QString *selectedFilter = nullptr, QFileDialog::Options options = {});
60 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;
61 virtual QStringList getOpenImageFileNames(QWidget *parent = nullptr, const QString &caption = QString(), const QString &dir = QString(), const QString &filter = QString(), QString *selectedFilter = nullptr, QFileDialog::Options options = {});
62 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;
63};
64
65QT_END_NAMESPACE
66
67#endif // ABSTRACTDIALOGGUI_H
The QDesignerDialogGuiInterface allows integrations of \QD to replace the message boxes displayed by ...
friend class QWidget
Definition qpainter.h:432
bool showDialog(const QStringList &existingNames)
void setDeviceProfile(const DeviceProfile &s)
static constexpr auto profileExtensionC
static QString fileFilter()
static void populateNumericCombo(IntIterator i1, IntIterator i2, QComboBox *cb)
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.