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
4//
5// W A R N I N G
6// -------------
7//
8// This file is not part of the Qt API. It exists for the convenience
9// of Qt Designer. This header
10// file may change from version to version without notice, or even be removed.
11//
12// We mean it.
13//
14
15#ifndef ABSTRACTDIALOGGUI_H
16#define ABSTRACTDIALOGGUI_H
17
18#include <QtDesigner/sdk_global.h>
19#include <QtWidgets/qmessagebox.h>
20#include <QtWidgets/qfiledialog.h>
21
23
24class QWidget;
25
26class QDESIGNER_SDK_EXPORT QDesignerDialogGuiInterface
27{
28public:
29 Q_DISABLE_COPY_MOVE(QDesignerDialogGuiInterface)
30
31 QDesignerDialogGuiInterface();
32 virtual ~QDesignerDialogGuiInterface();
33
34 enum Message { FormLoadFailureMessage, UiVersionMismatchMessage, ResourceLoadFailureMessage,
35 TopLevelSpacerMessage, PropertyEditorMessage, SignalSlotEditorMessage, FormEditorMessage,
36 PreviewFailureMessage, PromotionErrorMessage, ResourceEditorMessage,
37 ScriptDialogMessage, SignalSlotDialogMessage, OtherMessage, FileChangedMessage };
38
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;
43
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;
49
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;
55
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;
62};
63
64QT_END_NAMESPACE
65
66#endif // ABSTRACTDIALOGGUI_H
The QDesignerDialogGuiInterface allows integrations of \QD to replace the message boxes displayed by ...
friend class QWidget
Definition qpainter.h:421
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.