QGIS API Documentation
3.43.0-Master (2a27c31701b)
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Symbols
3
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
n
o
p
q
r
s
t
u
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
Loading...
Searching...
No Matches
src
gui
raster
qgsrasterattributetabledialog.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgsrasterattributetabledialog.cpp - QgsRasterAttributeTableDialog
3
4
---------------------
5
begin : 13.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
#include "
qgsrasterattributetabledialog.h
"
17
#include "moc_qgsrasterattributetabledialog.cpp"
18
#include "
qgsrasterlayer.h
"
19
20
21
QgsRasterAttributeTableDialog::QgsRasterAttributeTableDialog
(
QgsRasterLayer
*rasterLayer,
int
bandNumber, QWidget *parent )
22
: QDialog( parent )
23
{
24
Q_ASSERT( rasterLayer );
25
setupUi(
this
);
26
mRatWidget->setRasterLayer( rasterLayer, bandNumber );
27
setWindowTitle( tr(
"Raster Attribute Table for %1"
).arg( rasterLayer->
name
() ) );
28
29
connect( rasterLayer, &
QgsRasterLayer::dataSourceChanged
,
this
, &
QgsRasterAttributeTableDialog::reject
);
30
connect( rasterLayer, &
QgsRasterLayer::willBeDeleted
,
this
, &
QgsRasterAttributeTableDialog::reject
);
31
}
21
QgsRasterAttributeTableDialog::QgsRasterAttributeTableDialog
(
QgsRasterLayer
*rasterLayer,
int
bandNumber, QWidget *parent ) {
…
}
32
33
void
QgsRasterAttributeTableDialog::reject
()
34
{
35
if
( mRatWidget->setEditable(
false
) )
36
{
37
QDialog::reject();
38
}
39
}
33
void
QgsRasterAttributeTableDialog::reject
() {
…
}
QgsMapLayer::name
QString name
Definition
qgsmaplayer.h:80
QgsMapLayer::dataSourceChanged
void dataSourceChanged()
Emitted whenever the layer's data source has been changed.
QgsMapLayer::willBeDeleted
void willBeDeleted()
Emitted in the destructor when the layer is about to be deleted, but it is still in a perfectly valid...
QgsRasterAttributeTableDialog::QgsRasterAttributeTableDialog
QgsRasterAttributeTableDialog(QgsRasterLayer *rasterLayer, int bandNumber=0, QWidget *parent SIP_TRANSFERTHIS=nullptr)
Create a new QgsRasterAttributeTableDialog.
Definition
qgsrasterattributetabledialog.cpp:21
QgsRasterAttributeTableDialog::reject
void reject() override
Definition
qgsrasterattributetabledialog.cpp:33
QgsRasterLayer
Represents a raster layer.
Definition
qgsrasterlayer.h:79
qgsrasterattributetabledialog.h
qgsrasterlayer.h
Generated on Tue Mar 18 2025 12:31:40 for QGIS API Documentation by
1.9.8