21 #include <QStringList> 54 static const Qt::WindowFlags ModalDialogFlags =
nullptr;
95 QString
const &filters, QStringList &selectedFiles, QString &enc, QString &title,
96 bool cancelAll =
false );
107 QPair<QString, QString> GUI_EXPORT
getSaveAsImageName( QWidget *parent,
const QString &message,
const QString &defaultFilename = QString() );
117 QString GUI_EXPORT
createFileFilter_( QString
const &longName, QString
const &glob );
138 QFont GUI_EXPORT
getFont(
bool &ok,
const QFont &initial,
const QString &title = QString() );
147 bool GUI_EXPORT
restoreGeometry( QWidget *widget,
const QString &keyName = QString() );
155 void GUI_EXPORT
saveGeometry( QWidget *widget,
const QString &keyName = QString() );
164 QString
createWidgetKey( QWidget *widget,
const QString &keyName = QString() );
167 #endif // QGSGUIUTILS_H QString createFileFilter_(QString const &longName, QString const &glob)
Convenience function for readily creating file filters.
constexpr double CANVAS_MAGNIFICATION_MAX
Maximum magnification level allowed in map canvases.
QPair< QString, QString > GUI_EXPORT getSaveAsImageName(QWidget *parent, const QString &message, const QString &defaultFilename)
A helper function to get an image name from the user.
void saveGeometry(QWidget *widget, const QString &keyName)
Save the wigget geometry into settings.
bool restoreGeometry(QWidget *widget, const QString &keyName)
Restore the wigget geometry from settings.
The QgsGuiUtils namespace contains constants and helper functions used throughout the QGIS GUI...
constexpr double CANVAS_MAGNIFICATION_MIN
Minimum magnification level allowed in map canvases.
QString createWidgetKey(QWidget *widget, const QString &keyName)
Creates a key for the given widget that can be used to store related data in settings.
bool GUI_EXPORT openFilesRememberingFilter(QString const &filterName, QString const &filters, QStringList &selectedFiles, QString &enc, QString &title, bool cancelAll)
Open files, preferring to have the default file selector be the last one used, if any; also...
QFont getFont(bool &ok, const QFont &initial, const QString &title)
Show font selection dialog.