QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
The QgsCreateRasterAttributeTableDialog dialog collects the information required to create a new raster attribute table and performs the creation when the dialog is accepted. More...
#include <qgscreaterasterattributetabledialog.h>
Public Slots | |
void | accept () override |
Public Member Functions | |
QgsCreateRasterAttributeTableDialog (QgsRasterLayer *rasterLayer, QWidget *parent=nullptr) | |
Creates a new QgsCreateRasterAttributeTableDialog. | |
QString | filePath () const |
Returns the file path in case of VAT.DBF save option. | |
bool | openWhenDone () const |
Returns true if the option to open the newly created attribute table is checked. | |
bool | saveToFile () const |
Returns true if the option to save to a file is selected. | |
void | setMessageBar (QgsMessageBar *bar) |
Sets the message bar associated with the widget. | |
void | setOpenWhenDoneVisible (bool visible) |
Sets the visibility of the "Open newly created raster attribute table" option to visible, the option is visible by default. | |
The QgsCreateRasterAttributeTableDialog dialog collects the information required to create a new raster attribute table and performs the creation when the dialog is accepted.
Definition at line 37 of file qgscreaterasterattributetabledialog.h.
QgsCreateRasterAttributeTableDialog::QgsCreateRasterAttributeTableDialog | ( | QgsRasterLayer * | rasterLayer, |
QWidget * | parent = nullptr |
||
) |
Creates a new QgsCreateRasterAttributeTableDialog.
rasterLayer | the raster layer, must be suitable for creating a new raster attribute table |
parent | optional parent |
Definition at line 22 of file qgscreaterasterattributetabledialog.cpp.
|
overrideslot |
Definition at line 124 of file qgscreaterasterattributetabledialog.cpp.
QString QgsCreateRasterAttributeTableDialog::filePath | ( | ) | const |
Returns the file path in case of VAT.DBF save option.
Definition at line 94 of file qgscreaterasterattributetabledialog.cpp.
bool QgsCreateRasterAttributeTableDialog::openWhenDone | ( | ) | const |
Returns true
if the option to open the newly created attribute table is checked.
Definition at line 104 of file qgscreaterasterattributetabledialog.cpp.
bool QgsCreateRasterAttributeTableDialog::saveToFile | ( | ) | const |
Returns true
if the option to save to a file is selected.
Definition at line 99 of file qgscreaterasterattributetabledialog.cpp.
void QgsCreateRasterAttributeTableDialog::setMessageBar | ( | QgsMessageBar * | bar | ) |
Sets the message bar associated with the widget.
This allows the widget to push feedback messages to the appropriate message bar.
Definition at line 109 of file qgscreaterasterattributetabledialog.cpp.
void QgsCreateRasterAttributeTableDialog::setOpenWhenDoneVisible | ( | bool | visible | ) |
Sets the visibility of the "Open newly created raster attribute table" option to visible, the option is visible by default.
Definition at line 114 of file qgscreaterasterattributetabledialog.cpp.