QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
qgsrasterattributetableaddcolumndialog.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsrasterattributetableaddcolumndialog.h - QgsRasterAttributeTableAddColumnDialog
3
4 ---------------------
5 begin : 10.10.2022
6 copyright : (C) 2022 by Alessandro Pasotti
7 email : elpaso at itopen dot it
8 ***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16#ifndef QGSRASTERATTRIBUTETABLEADDCOLUMNDIALOG_H
17#define QGSRASTERATTRIBUTETABLEADDCOLUMNDIALOG_H
18
19#include <QDialog>
20#include "qgis_gui.h"
21#include "qgis.h"
22#include "ui_qgsrasterattributetableaddcolumndialogbase.h"
23
24#define SIP_NO_FILE
25
27
35class GUI_EXPORT QgsRasterAttributeTableAddColumnDialog : public QDialog, private Ui::QgsRasterAttributeTableAddColumnDialogBase
36{
37 Q_OBJECT
38 public:
39
45 QgsRasterAttributeTableAddColumnDialog( QgsRasterAttributeTable *attributeTable, QWidget *parent SIP_TRANSFERTHIS = nullptr );
46
50 int position() const;
51
55 bool isColor( ) const;
56
60 bool isRamp( ) const;
61
65 QString name( ) const;
66
71
75 QVariant::Type type( ) const;
76
77
78 private:
79
80 QgsRasterAttributeTable *mAttributeTable;
81
82 void updateDialog();
83};
84
85#endif // QGSRASTERATTRIBUTETABLEADDCOLUMNDIALOG_H
RasterAttributeTableFieldUsage
The RasterAttributeTableFieldUsage enum represents the usage of a Raster Attribute Table field.
Definition: qgis.h:1191
The QgsRasterAttributeTableAddColumnDialog class collects options to add a new column to a raster att...
The QgsRasterAttributeTable class represents a Raster Attribute Table (RAT).
#define SIP_TRANSFERTHIS
Definition: qgis_sip.h:53