40 #ifndef QPLATFORMDIALOGHELPER_H
41 #define QPLATFORMDIALOGHELPER_H
52 #include <QtGui/qtguiglobal.h>
53 #include <QtCore/QtGlobal>
54 #include <QtCore/QObject>
55 #include <QtCore/QList>
56 #include <QtCore/QSharedDataPointer>
57 #include <QtCore/QSharedPointer>
58 #include <QtCore/QDir>
59 #include <QtCore/QUrl>
78 #define QPLATFORMDIALOGHELPERS_HAS_CREATE
97 YesToAll = 0x00008000,
109 RestoreDefaults = 0x08000000,
113 LastButton = RestoreDefaults,
138 RoleMask = 0x0FFFFFFF,
139 AlternateRole = 0x10000000,
140 Stretch = 0x20000000,
141 Reverse = 0x40000000,
160 virtual QVariant styleHint(StyleHint hint)
const;
163 virtual bool show(Qt::WindowFlags windowFlags,
192 ShowAlphaChannel = 0x00000001,
193 NoButtons = 0x00000002,
194 DontUseNativeDialog = 0x00000004
198 Q_FLAG(ColorDialogOptions)
204 void setWindowTitle(
const QString &);
206 void setOption(ColorDialogOption
option,
bool on =
true);
207 bool testOption(ColorDialogOption
option)
const;
208 void setOptions(ColorDialogOptions options);
209 ColorDialogOptions options()
const;
211 static int customColorCount();
213 static QRgb *customColors();
216 static QRgb *standardColors();
252 NoButtons = 0x00000001,
253 DontUseNativeDialog = 0x00000002,
254 ScalableFonts = 0x00000004,
255 NonScalableFonts = 0x00000008,
256 MonospacedFonts = 0x00000010,
257 ProportionalFonts = 0x00000020
267 void setWindowTitle(
const QString &);
269 void setOption(FontDialogOption
option,
bool on =
true);
270 bool testOption(FontDialogOption
option)
const;
271 void setOptions(FontDialogOptions options);
272 FontDialogOptions options()
const;
320 ShowDirsOnly = 0x00000001,
321 DontResolveSymlinks = 0x00000002,
322 DontConfirmOverwrite = 0x00000004,
323 DontUseNativeDialog = 0x00000008,
325 HideNameFilterDetails = 0x00000020,
326 DontUseCustomDirectoryIcons = 0x00000040
335 void setWindowTitle(
const QString &);
337 void setOption(FileDialogOption
option,
bool on =
true);
338 bool testOption(FileDialogOption
option)
const;
339 void setOptions(FileDialogOptions options);
340 FileDialogOptions options()
const;
342 QDir::Filters
filter()
const;
343 void setFilter(QDir::Filters
filters);
346 ViewMode viewMode()
const;
349 FileMode fileMode()
const;
351 void setAcceptMode(AcceptMode
mode);
352 AcceptMode acceptMode()
const;
357 bool useDefaultNameFilters()
const;
358 void setUseDefaultNameFilters(
bool d);
366 void setDefaultSuffix(
const QString &suffix);
374 bool isLabelExplicitlySet(DialogLabel
label);
376 QUrl initialDirectory()
const;
377 void setInitialDirectory(
const QUrl &);
379 QString initiallySelectedMimeTypeFilter()
const;
380 void setInitiallySelectedMimeTypeFilter(
const QString &);
382 QString initiallySelectedNameFilter()
const;
383 void setInitiallySelectedNameFilter(
const QString &);
386 void setInitiallySelectedFiles(
const QList<QUrl> &);
388 void setSupportedSchemes(
const QStringList &schemes);
391 static QString defaultNameFilterString();
409 virtual QString selectedMimeTypeFilter()
const;
412 virtual bool isSupportedUrl(
const QUrl &
url)
const;
418 static const char filterRegExp[];
448 void setWindowTitle(
const QString &);
457 QString informativeText()
const;
463 QPlatformDialogHelper::StandardButtons standardButtons()
const;
480 void *buttonImpl =
nullptr);
481 void removeButton(
int id);
The QColor class provides colors based on RGB, HSV or CMYK values.
The QFont class specifies a query for a font used for drawing text.
The QObject class is the base class of all Qt objects.
The QString class provides a Unicode character string.
The QStringList class provides a list of strings.
The QUrl class provides a convenient interface for working with URLs.
The QVariant class acts like a union for the most common Qt data types.
The QWindow class represents a window in the underlying windowing system.
msgBox setStandardButtons(QMessageBox::Yes|QMessageBox::No)
msgBox setInformativeText("Do you want to save your changes?")
SharedPointerFileDialogOptions m_options
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DISABLE_COPY(Class)
GLsizei const GLuint * paths
GLuint GLsizei const GLchar * label
[43]
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
GLsizei const GLchar *const * path
QT_BEGIN_NAMESPACE typedef unsigned int QRgb
QUrl url("http://www.example.com/List of holidays.xml")
[0]
QStringList mimeTypeFilters({"image/jpeg", "image/png", "application/octet-stream" })
[12]
dialog setViewMode(QFileDialog::Detail)
[3]
dialog setMimeTypeFilters(mimeTypeFilters)
dialog setNameFilters(filters)
dialog setFileMode(QFileDialog::AnyFile)
const QStringList filters({"Image files (*.png *.xpm *.jpg)", "Text files (*.txt)", "Any files (*)" })
[6]
myAction setIcon(SomeIcon)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent
virtual HRESULT STDMETHODCALLTYPE Close(void)=0