QGIS API Documentation 3.41.0-Master (cea29feecf2)
|
A widget to select format-specific raster saving options. More...
#include <qgsrasterformatsaveoptionswidget.h>
Public Types | |
enum | Type { Default , Full , Table , LineEdit , ProfileLineEdit } |
Public Slots | |
void | apply () |
void | helpOptions () |
Opens window with options description for given provider and output format. | |
void | updateProfiles () |
Reloads profiles list from QGIS settings. | |
QString | validateOptions (bool gui=true, bool reportOk=true) |
Validates options correctness. | |
Signals | |
void | optionsChanged () |
Emitted when the options configured in the widget are changed. | |
Public Member Functions | |
QgsRasterFormatSaveOptionsWidget (QWidget *parent SIP_TRANSFERTHIS=nullptr, const QString &format="GTiff", QgsRasterFormatSaveOptionsWidget::Type type=Default, const QString &provider="gdal") | |
QStringList | options () const |
Returns list of selected options. | |
void | setFormat (const QString &format) |
Set output raster format, it is used to determine list of available options. | |
void | setOptions (const QString &options) |
Populate widget with user-defined options. | |
void | setProvider (const QString &provider) |
Set provider key, , it is used to determine list of available options. | |
void | setPyramidsFormat (Qgis::RasterPyramidFormat format) |
Set pyramids format to use. | |
void | setRasterFileName (const QString &file) |
Set output raster file name. | |
void | setRasterLayer (QgsRasterLayer *rasterLayer) |
Set output raster layer. | |
void | setType (QgsRasterFormatSaveOptionsWidget::Type type=Default) |
Set widget look and feel. | |
Protected Member Functions | |
void | showEvent (QShowEvent *event) override |
A widget to select format-specific raster saving options.
Definition at line 31 of file qgsrasterformatsaveoptionswidget.h.
Enumerator | |
---|---|
Default | |
Full | |
Table | |
LineEdit | |
ProfileLineEdit |
Definition at line 36 of file qgsrasterformatsaveoptionswidget.h.
QgsRasterFormatSaveOptionsWidget::QgsRasterFormatSaveOptionsWidget | ( | QWidget *parent | SIP_TRANSFERTHIS = nullptr , |
const QString & | format = "GTiff" , |
||
QgsRasterFormatSaveOptionsWidget::Type | type = Default , |
||
const QString & | provider = "gdal" |
||
) |
Definition at line 40 of file qgsrasterformatsaveoptionswidget.cpp.
|
slot |
Definition at line 255 of file qgsrasterformatsaveoptionswidget.cpp.
|
slot |
Opens window with options description for given provider and output format.
Definition at line 260 of file qgsrasterformatsaveoptionswidget.cpp.
QStringList QgsRasterFormatSaveOptionsWidget::options | ( | ) | const |
Returns list of selected options.
Definition at line 472 of file qgsrasterformatsaveoptionswidget.cpp.
|
signal |
Emitted when the options configured in the widget are changed.
void QgsRasterFormatSaveOptionsWidget::setFormat | ( | const QString & | format | ) |
Set output raster format, it is used to determine list of available options.
Definition at line 110 of file qgsrasterformatsaveoptionswidget.cpp.
void QgsRasterFormatSaveOptionsWidget::setOptions | ( | const QString & | options | ) |
Populate widget with user-defined options.
String should contain key=value pairs separated by spaces, e.g. "TILED=YES TFW=YES"
Definition at line 566 of file qgsrasterformatsaveoptionswidget.cpp.
void QgsRasterFormatSaveOptionsWidget::setProvider | ( | const QString & | provider | ) |
Set provider key, , it is used to determine list of available options.
Definition at line 117 of file qgsrasterformatsaveoptionswidget.cpp.
|
inline |
Set pyramids format to use.
Definition at line 98 of file qgsrasterformatsaveoptionswidget.h.
|
inline |
Set output raster file name.
Definition at line 71 of file qgsrasterformatsaveoptionswidget.h.
|
inline |
Set output raster layer.
Definition at line 62 of file qgsrasterformatsaveoptionswidget.h.
void QgsRasterFormatSaveOptionsWidget::setType | ( | QgsRasterFormatSaveOptionsWidget::Type | type = Default | ) |
Set widget look and feel.
Definition at line 124 of file qgsrasterformatsaveoptionswidget.cpp.
|
overrideprotected |
Definition at line 559 of file qgsrasterformatsaveoptionswidget.cpp.
|
slot |
Reloads profiles list from QGIS settings.
Definition at line 163 of file qgsrasterformatsaveoptionswidget.cpp.
|
slot |
Validates options correctness.
Definition at line 294 of file qgsrasterformatsaveoptionswidget.cpp.