58 static const Qt::WindowFlags ModalDialogFlags = Qt::WindowFlags();
93 bool GUI_EXPORT
openFilesRememberingFilter( QString
const &filterName, QString
const &filters, QStringList &selectedFiles, QString &enc, QString &title,
bool cancelAll =
false );
104 QPair<QString, QString> GUI_EXPORT
getSaveAsImageName( QWidget *parent,
const QString &message,
const QString &defaultFilename = QString() );
114 QString GUI_EXPORT
createFileFilter_( QString
const &longName, QString
const &glob );
135 QFont GUI_EXPORT
getFont(
bool &ok,
const QFont &initial,
const QString &title = QString() );
144 bool GUI_EXPORT
restoreGeometry( QWidget *widget,
const QString &keyName = QString() );
152 void GUI_EXPORT
saveGeometry( QWidget *widget,
const QString &keyName = QString() );
161 QString
createWidgetKey( QWidget *widget,
const QString &keyName = QString() );
180 QSize GUI_EXPORT
iconSize(
bool dockableToolbar =
false );
244 GUI_EXPORT
void addDockWidget( QMainWindow *window, Qt::DockWidgetArea area, QDockWidget *dockwidget );
261 GUI_EXPORT
void addTabifiedDockWidget( QMainWindow *window, Qt::DockWidgetArea area, QDockWidget *dockWidget,
const QStringList &tabifyWith = QStringList(),
bool raiseTab =
false );
295 QWidget *mWidget =
nullptr;
324 bool mHasOverride =
true;
353 std::vector<QCursor> mCursors;
DataType
Raster data types.
WkbType
The WKB type describes the number of dimensions a geometry has.
QgsTemporaryCursorOverride(const QCursor &cursor)
Constructor for QgsTemporaryCursorOverride.
void release()
Releases the cursor override early (i.e.
QgsTemporaryCursorRestoreOverride()
Constructor for QgsTemporaryCursorRestoreOverride.
void restore()
Restores the cursor override early (i.e.
The QgsGuiUtils namespace contains constants and helper functions used throughout the QGIS GUI.
void addDockWidget(QMainWindow *window, Qt::DockWidgetArea area, QDockWidget *dockwidget)
Add a dock widget to a main window.
void addTabifiedDockWidget(QMainWindow *window, Qt::DockWidgetArea area, QDockWidget *dockWidget, const QStringList &tabifyWith, bool raiseTab)
Add a dock widget to the given area and tabify it (if other dock widgets exist in the same area).
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.
bool isNonStandardGeoPackageGeometryType(Qgis::WkbType wkbType)
Returns true if the given wkbType is a non-standard GeoPackage geometry type (PolyhedralSurface,...
bool warnAboutNonStandardGeoPackageGeometryType(Qgis::WkbType wkbType, QWidget *parent, const QString &dialogTitle, bool showDialog, bool *isNonStandard)
Checks if the given wkbType is a non-standard GeoPackage geometry type (PolyhedralSurface,...
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...