QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
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 ***************************************************************************/
17#include "moc_qgsrasterattributetabledialog.cpp"
18#include "qgsrasterlayer.h"
19
20
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
31
32}
33
35{
36 if ( mRatWidget->setEditable( false ) )
37 {
38 QDialog::reject();
39 }
40}
QString name
Definition qgsmaplayer.h:80
void dataSourceChanged()
Emitted whenever the layer's data source has been changed.
void willBeDeleted()
Emitted in the destructor when the layer is about to be deleted, but it is still in a perfectly valid...
QgsRasterAttributeTableDialog(QgsRasterLayer *rasterLayer, int bandNumber=0, QWidget *parent SIP_TRANSFERTHIS=nullptr)
Create a new QgsRasterAttributeTableDialog.
Represents a raster layer.