54 static const Qt::WindowFlags ModalDialogFlags = Qt::WindowFlags();
89 bool GUI_EXPORT
openFilesRememberingFilter( QString
const &filterName, QString
const &filters, QStringList &selectedFiles, QString &enc, QString &title,
bool cancelAll =
false );
100 QPair<QString, QString> GUI_EXPORT
getSaveAsImageName( QWidget *parent,
const QString &message,
const QString &defaultFilename = QString() );
110 QString GUI_EXPORT
createFileFilter_( QString
const &longName, QString
const &glob );
131 QFont GUI_EXPORT
getFont(
bool &ok,
const QFont &initial,
const QString &title = QString() );
140 bool GUI_EXPORT
restoreGeometry( QWidget *widget,
const QString &keyName = QString() );
148 void GUI_EXPORT
saveGeometry( QWidget *widget,
const QString &keyName = QString() );
157 QString
createWidgetKey( QWidget *widget,
const QString &keyName = QString() );
176 QSize GUI_EXPORT
iconSize(
bool dockableToolbar =
false );
234 QWidget *mWidget =
nullptr;
263 bool mHasOverride =
true;
292 std::vector<QCursor> mCursors;
DataType
Raster data types.
Temporarily sets a cursor override for the QApplication for the lifetime of the object.
Temporarily removes all cursor overrides for the QApplication for the lifetime of the object.
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.
bool restoreGeometry(QWidget *widget, const QString &keyName)
Restore the wigget geometry from settings.
QSize iconSize(bool dockableToolbar)
Returns the user-preferred size of a window's toolbar icons.
QString createWidgetKey(QWidget *widget, const QString &keyName)
Creates a key for the given widget that can be used to store related data in settings.
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.
int scaleIconSize(int standardSize)
Scales an icon size to compensate for display pixel density, making the icon size hi-dpi friendly,...
int significantDigits(const Qgis::DataType rasterDataType)
Returns the maximum number of significant digits a for the given rasterDataType.
void saveGeometry(QWidget *widget, const QString &keyName)
Save the wigget geometry into settings.
QFont getFont(bool &ok, const QFont &initial, const QString &title)
Show font selection dialog.
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,...
QString createFileFilter_(QString const &longName, QString const &glob)
Convenience function for readily creating file filters.
QSize panelIconSize(QSize size)
Returns dockable panel toolbar icon width based on the provided window toolbar width.
constexpr double CANVAS_MAGNIFICATION_MAX
Maximum magnification level allowed in map canvases.
QString displayValueWithMaximumDecimals(const Qgis::DataType dataType, const double value, bool displayTrailingZeroes)
Returns a localized string representation of the value with the appropriate number of decimals suppor...