QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
21 #include <QStringList>
55 static const Qt::WindowFlags ModalDialogFlags = Qt::WindowFlags();
96 QString
const &filters, QStringList &selectedFiles, QString &enc, QString &title,
97 bool cancelAll =
false );
108 QPair<QString, QString> GUI_EXPORT
getSaveAsImageName( QWidget *parent,
const QString &message,
const QString &defaultFilename = QString() );
118 QString GUI_EXPORT
createFileFilter_( QString
const &longName, QString
const &glob );
139 QFont GUI_EXPORT
getFont(
bool &ok,
const QFont &initial,
const QString &title = QString() );
148 bool GUI_EXPORT
restoreGeometry( QWidget *widget,
const QString &keyName = QString() );
156 void GUI_EXPORT
saveGeometry( QWidget *widget,
const QString &keyName = QString() );
165 QString
createWidgetKey( QWidget *widget,
const QString &keyName = QString() );
184 QSize GUI_EXPORT
iconSize(
bool dockableToolbar =
false );
240 bool mHasOverride =
true;
272 std::vector< QCursor > mCursors;
276 #endif // QGSGUIUTILS_H
DataType
Raster data types.
QFont getFont(bool &ok, const QFont &initial, const QString &title)
Show font selection dialog.
constexpr double CANVAS_MAGNIFICATION_MIN
Minimum magnification level allowed in map canvases.
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.
QString displayValueWithMaximumDecimals(const Qgis::DataType rasterDataType, const double value)
Returns a localized string representation of the value with the appropriate number of decimals suppor...
constexpr double CANVAS_MAGNIFICATION_MAX
Maximum magnification level allowed in map canvases.
QSize iconSize(bool dockableToolbar)
Returns the user-preferred size of a window's toolbar icons.
The QgsGuiUtils namespace contains constants and helper functions used throughout the QGIS GUI.
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.
QString createWidgetKey(QWidget *widget, const QString &keyName)
Creates a key for the given widget that can be used to store related data in settings.
int significantDigits(const Qgis::DataType rasterDataType)
Returns the maximum number of significant digits a for the given rasterDataType.
Temporarily removes all cursor overrides for the QApplication for the lifetime of the object.
int scaleIconSize(int standardSize)
Scales an icon size to compensate for display pixel density, making the icon size hi-dpi friendly,...
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,...
Temporarily sets a cursor override for the QApplication for the lifetime of the object.
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.