QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
raster
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
28
class
QgsRasterAttributeTable
;
29
37
class
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
71
Qgis::RasterAttributeTableFieldUsage
usage
()
const
;
72
76
QMetaType::Type
type
()
const
;
77
78
79
private
:
80
QgsRasterAttributeTable
*mAttributeTable;
81
82
void
updateDialog();
83
};
84
85
#endif
// QGSRASTERATTRIBUTETABLEADDCOLUMNDIALOG_H
Qgis::RasterAttributeTableFieldUsage
RasterAttributeTableFieldUsage
The RasterAttributeTableFieldUsage enum represents the usage of a Raster Attribute Table field.
Definition
qgis.h:1757
QgsRasterAttributeTableAddColumnDialog::type
QMetaType::Type type() const
Returns the new column type.
Definition
qgsrasterattributetableaddcolumndialog.cpp:87
QgsRasterAttributeTableAddColumnDialog::isRamp
bool isRamp() const
Returns true if the add color ramp column option was checked.
Definition
qgsrasterattributetableaddcolumndialog.cpp:72
QgsRasterAttributeTableAddColumnDialog::isColor
bool isColor() const
Returns true if the add color column option was checked.
Definition
qgsrasterattributetableaddcolumndialog.cpp:67
QgsRasterAttributeTableAddColumnDialog::position
int position() const
Returns the position where the new column (before) will be inserted.
Definition
qgsrasterattributetableaddcolumndialog.cpp:55
QgsRasterAttributeTableAddColumnDialog::name
QString name() const
Returns the new column name.
Definition
qgsrasterattributetableaddcolumndialog.cpp:77
QgsRasterAttributeTableAddColumnDialog::QgsRasterAttributeTableAddColumnDialog
QgsRasterAttributeTableAddColumnDialog(QgsRasterAttributeTable *attributeTable, QWidget *parent=nullptr)
Creates a new QgsRasterAttributeTableAddColumnDialog.
Definition
qgsrasterattributetableaddcolumndialog.cpp:29
QgsRasterAttributeTableAddColumnDialog::usage
Qgis::RasterAttributeTableFieldUsage usage() const
Returns the new column name.
Definition
qgsrasterattributetableaddcolumndialog.cpp:82
QgsRasterAttributeTable
Represents a Raster Attribute Table (RAT).
Definition
qgsrasterattributetable.h:44
qgis.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:52
Generated on
for QGIS API Documentation by
1.17.0