QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
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 "ui_qgsrasterattributetableaddcolumndialogbase.h"
20
21#include "qgis.h"
22#include "qgis_gui.h"
23
24#include <QDialog>
25
26#define SIP_NO_FILE
27
29
37class GUI_EXPORT QgsRasterAttributeTableAddColumnDialog : public QDialog, private Ui::QgsRasterAttributeTableAddColumnDialogBase
38{
39 Q_OBJECT
40 public:
46 QgsRasterAttributeTableAddColumnDialog( QgsRasterAttributeTable *attributeTable, QWidget *parent SIP_TRANSFERTHIS = nullptr );
47
51 int position() const;
52
56 bool isColor() const;
57
61 bool isRamp() const;
62
66 QString name() const;
67
72
76 QMetaType::Type type() const;
77
78
79 private:
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:1587
QMetaType::Type type() const
Returns the new column type.
bool isRamp() const
Returns true if the add color ramp column option was checked.
bool isColor() const
Returns true if the add color column option was checked.
int position() const
Returns the position where the new column (before) will be inserted.
QgsRasterAttributeTableAddColumnDialog(QgsRasterAttributeTable *attributeTable, QWidget *parent=nullptr)
Creates a new QgsRasterAttributeTableAddColumnDialog.
Qgis::RasterAttributeTableFieldUsage usage() const
Returns the new column name.
Represents a Raster Attribute Table (RAT).
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53