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
qdesigner_internal::DialogGui Class Reference

#include <dialoggui_p.h>

+ Inheritance diagram for qdesigner_internal::DialogGui:
+ Collaboration diagram for qdesigner_internal::DialogGui:

Public Member Functions

 DialogGui ()
 
 ~DialogGui () override
 
QMessageBox::StandardButton message (QWidget *parent, Message context, QMessageBox::Icon icon, const QString &title, const QString &text, QMessageBox::StandardButtons buttons=QMessageBox::Ok, QMessageBox::StandardButton defaultButton=QMessageBox::NoButton) override
 Opens a message box as child of parent within the context context, using icon, title, text, buttons and defaultButton and returns the button chosen by the user.
 
QMessageBox::StandardButton message (QWidget *parent, Message context, QMessageBox::Icon icon, const QString &title, const QString &text, const QString &informativeText, QMessageBox::StandardButtons buttons=QMessageBox::Ok, QMessageBox::StandardButton defaultButton=QMessageBox::NoButton) override
 
QMessageBox::StandardButton message (QWidget *parent, Message context, QMessageBox::Icon icon, const QString &title, const QString &text, const QString &informativeText, const QString &detailedText, QMessageBox::StandardButtons buttons=QMessageBox::Ok, QMessageBox::StandardButton defaultButton=QMessageBox::NoButton) override
 
QString getExistingDirectory (QWidget *parent=nullptr, const QString &caption=QString(), const QString &dir=QString(), QFileDialog::Options options=QFileDialog::ShowDirsOnly) override
 Opens a file dialog as child of parent using the parameters caption, dir and options that prompts the user for an existing directory.
 
QString getOpenFileName (QWidget *parent=nullptr, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=nullptr, QFileDialog::Options options={}) override
 Opens a file dialog as child of parent using the parameters caption, dir, filter, selectedFilter and options that prompts the user for an existing file.
 
QStringList getOpenFileNames (QWidget *parent=nullptr, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=nullptr, QFileDialog::Options options={}) override
 Opens a file dialog as child of parent using the parameters caption, dir, filter, selectedFilter and options that prompts the user for a set of existing files.
 
QString getSaveFileName (QWidget *parent=nullptr, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=nullptr, QFileDialog::Options options={}) override
 Opens a file dialog as child of parent using the parameters caption, dir, filter, selectedFilter and options that prompts the user for a file.
 
QString getOpenImageFileName (QWidget *parent=nullptr, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=nullptr, QFileDialog::Options options={}) override
 Opens a file dialog with image browsing capabilities as child of parent using the parameters caption, dir, filter, selectedFilter and options that prompts the user for an existing file.
 
QStringList getOpenImageFileNames (QWidget *parent=nullptr, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=nullptr, QFileDialog::Options options={}) override
 Opens a file dialog with image browsing capabilities as child of parent using the parameters caption, dir, filter, selectedFilter and options that prompts the user for a set of existing files.
 
- Public Member Functions inherited from QDesignerDialogGuiInterface
 QDesignerDialogGuiInterface ()
 Constructs a QDesignerDialogGuiInterface object.
 
virtual ~QDesignerDialogGuiInterface ()
 Destroys the QDesignerDialogGuiInterface object.
 

Additional Inherited Members

- Public Types inherited from QDesignerDialogGuiInterface
enum  Message {
  FormLoadFailureMessage , UiVersionMismatchMessage , ResourceLoadFailureMessage , TopLevelSpacerMessage ,
  PropertyEditorMessage , SignalSlotEditorMessage , FormEditorMessage , PreviewFailureMessage ,
  PromotionErrorMessage , ResourceEditorMessage , ScriptDialogMessage , SignalSlotDialogMessage ,
  OtherMessage , FileChangedMessage
}
 This enum specifies the context from within the message box is called. More...
 

Detailed Description

Definition at line 27 of file dialoggui_p.h.

Constructor & Destructor Documentation

◆ DialogGui()

qdesigner_internal::DialogGui::DialogGui ( )
default

◆ ~DialogGui()

qdesigner_internal::DialogGui::~DialogGui ( )
override

Definition at line 91 of file dialoggui.cpp.

Member Function Documentation

◆ getExistingDirectory()

QString qdesigner_internal::DialogGui::getExistingDirectory ( QWidget * parent = nullptr,
const QString & caption = QString(),
const QString & dir = QString(),
QFileDialog::Options options = QFileDialog::ShowDirsOnly )
overridevirtual

Opens a file dialog as child of parent using the parameters caption, dir and options that prompts the user for an existing directory.

Returns a directory selected by the user.

Implements QDesignerDialogGuiInterface.

Definition at line 151 of file dialoggui.cpp.

◆ getOpenFileName()

QString qdesigner_internal::DialogGui::getOpenFileName ( QWidget * parent = nullptr,
const QString & caption = QString(),
const QString & dir = QString(),
const QString & filter = QString(),
QString * selectedFilter = nullptr,
QFileDialog::Options options = {} )
overridevirtual

Opens a file dialog as child of parent using the parameters caption, dir, filter, selectedFilter and options that prompts the user for an existing file.

Returns a file selected by the user.

Implements QDesignerDialogGuiInterface.

Definition at line 156 of file dialoggui.cpp.

◆ getOpenFileNames()

QStringList qdesigner_internal::DialogGui::getOpenFileNames ( QWidget * parent = nullptr,
const QString & caption = QString(),
const QString & dir = QString(),
const QString & filter = QString(),
QString * selectedFilter = nullptr,
QFileDialog::Options options = {} )
overridevirtual

Opens a file dialog as child of parent using the parameters caption, dir, filter, selectedFilter and options that prompts the user for a set of existing files.

Returns one or more existing files selected by the user.

Implements QDesignerDialogGuiInterface.

Definition at line 161 of file dialoggui.cpp.

◆ getOpenImageFileName()

QString qdesigner_internal::DialogGui::getOpenImageFileName ( QWidget * parent = nullptr,
const QString & caption = QString(),
const QString & dir = QString(),
const QString & filter = QString(),
QString * selectedFilter = nullptr,
QFileDialog::Options options = {} )
overridevirtual

Opens a file dialog with image browsing capabilities as child of parent using the parameters caption, dir, filter, selectedFilter and options that prompts the user for an existing file.

Returns a file selected by the user.

The default implementation simply calls getOpenFileName(). On platforms that do not support an image preview in the QFileDialog, the function can be reimplemented to provide an image browser.

Since
4.5

Reimplemented from QDesignerDialogGuiInterface.

Definition at line 179 of file dialoggui.cpp.

◆ getOpenImageFileNames()

QStringList qdesigner_internal::DialogGui::getOpenImageFileNames ( QWidget * parent = nullptr,
const QString & caption = QString(),
const QString & dir = QString(),
const QString & filter = QString(),
QString * selectedFilter = nullptr,
QFileDialog::Options options = {} )
overridevirtual

Opens a file dialog with image browsing capabilities as child of parent using the parameters caption, dir, filter, selectedFilter and options that prompts the user for a set of existing files.

Returns one or more existing files selected by the user.

The default implementation simply calls getOpenFileNames(). On platforms that do not support an image preview in the QFileDialog, the function can be reimplemented to provide an image browser.

Since
4.5

Reimplemented from QDesignerDialogGuiInterface.

Definition at line 201 of file dialoggui.cpp.

◆ getSaveFileName()

QString qdesigner_internal::DialogGui::getSaveFileName ( QWidget * parent = nullptr,
const QString & caption = QString(),
const QString & dir = QString(),
const QString & filter = QString(),
QString * selectedFilter = nullptr,
QFileDialog::Options options = {} )
overridevirtual

Opens a file dialog as child of parent using the parameters caption, dir, filter, selectedFilter and options that prompts the user for a file.

Returns a file selected by the user. The file does not have to exist.

Implements QDesignerDialogGuiInterface.

Definition at line 166 of file dialoggui.cpp.

◆ message() [1/3]

QMessageBox::StandardButton qdesigner_internal::DialogGui::message ( QWidget * parent,
Message context,
QMessageBox::Icon icon,
const QString & title,
const QString & text,
const QString & informativeText,
const QString & detailedText,
QMessageBox::StandardButtons buttons = QMessageBox::Ok,
QMessageBox::StandardButton defaultButton = QMessageBox::NoButton )
overridevirtual

Implements QDesignerDialogGuiInterface.

Definition at line 140 of file dialoggui.cpp.

Referenced by PRESUBMIT_test_mocks.MockOutputApi.PresubmitResult::__repr__().

+ Here is the caller graph for this function:

◆ message() [2/3]

QMessageBox::StandardButton qdesigner_internal::DialogGui::message ( QWidget * parent,
Message context,
QMessageBox::Icon icon,
const QString & title,
const QString & text,
const QString & informativeText,
QMessageBox::StandardButtons buttons = QMessageBox::Ok,
QMessageBox::StandardButton defaultButton = QMessageBox::NoButton )
overridevirtual

Implements QDesignerDialogGuiInterface.

Definition at line 129 of file dialoggui.cpp.

Referenced by PRESUBMIT_test_mocks.MockOutputApi.PresubmitResult::__repr__().

+ Here is the caller graph for this function:

◆ message() [3/3]

QMessageBox::StandardButton qdesigner_internal::DialogGui::message ( QWidget * parent,
Message context,
QMessageBox::Icon icon,
const QString & title,
const QString & text,
QMessageBox::StandardButtons buttons = QMessageBox::Ok,
QMessageBox::StandardButton defaultButton = QMessageBox::NoButton )
overridevirtual

Opens a message box as child of parent within the context context, using icon, title, text, buttons and defaultButton and returns the button chosen by the user.

Implements QDesignerDialogGuiInterface.

Definition at line 104 of file dialoggui.cpp.

Referenced by PRESUBMIT_test_mocks.MockOutputApi.PresubmitResult::__repr__().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: