QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
Public Member Functions | List of all members
QgsRasterAttributeTableAddColumnDialog Class Reference

The QgsRasterAttributeTableAddColumnDialog class collects options to add a new column to a raster attribute table. More...

#include <qgsrasterattributetableaddcolumndialog.h>

Inheritance diagram for QgsRasterAttributeTableAddColumnDialog:
Inheritance graph
[legend]

Public Member Functions

 QgsRasterAttributeTableAddColumnDialog (QgsRasterAttributeTable *attributeTable, QWidget *parent=nullptr)
 Creates a new QgsRasterAttributeTableAddColumnDialog. More...
 
bool isColor () const
 Returns true if the add color column option was checked. More...
 
bool isRamp () const
 Returns true if the add color ramp column option was checked. More...
 
QString name () const
 Returns the new column name. More...
 
int position () const
 Returns the position where the new column (before) will be inserted. More...
 
QVariant::Type type () const
 Returns the new column type. More...
 
Qgis::RasterAttributeTableFieldUsage usage () const
 Returns the new column name. More...
 

Detailed Description

The QgsRasterAttributeTableAddColumnDialog class collects options to add a new column to a raster attribute table.

Note
Not available in Python bindings
Since
QGIS 3.30

Definition at line 35 of file qgsrasterattributetableaddcolumndialog.h.

Constructor & Destructor Documentation

◆ QgsRasterAttributeTableAddColumnDialog()

QgsRasterAttributeTableAddColumnDialog::QgsRasterAttributeTableAddColumnDialog ( QgsRasterAttributeTable attributeTable,
QWidget *  parent = nullptr 
)

Creates a new QgsRasterAttributeTableAddColumnDialog.

Parameters
attributeTablethe raster attribute table
parentoptional parent

Definition at line 23 of file qgsrasterattributetableaddcolumndialog.cpp.

Member Function Documentation

◆ isColor()

bool QgsRasterAttributeTableAddColumnDialog::isColor ( ) const

Returns true if the add color column option was checked.

Definition at line 60 of file qgsrasterattributetableaddcolumndialog.cpp.

◆ isRamp()

bool QgsRasterAttributeTableAddColumnDialog::isRamp ( ) const

Returns true if the add color ramp column option was checked.

Definition at line 65 of file qgsrasterattributetableaddcolumndialog.cpp.

◆ name()

QString QgsRasterAttributeTableAddColumnDialog::name ( ) const

Returns the new column name.

Definition at line 70 of file qgsrasterattributetableaddcolumndialog.cpp.

◆ position()

int QgsRasterAttributeTableAddColumnDialog::position ( ) const

Returns the position where the new column (before) will be inserted.

Definition at line 48 of file qgsrasterattributetableaddcolumndialog.cpp.

◆ type()

QVariant::Type QgsRasterAttributeTableAddColumnDialog::type ( ) const

Returns the new column type.

Definition at line 80 of file qgsrasterattributetableaddcolumndialog.cpp.

◆ usage()

Qgis::RasterAttributeTableFieldUsage QgsRasterAttributeTableAddColumnDialog::usage ( ) const

Returns the new column name.

Definition at line 75 of file qgsrasterattributetableaddcolumndialog.cpp.


The documentation for this class was generated from the following files: