QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
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 "qgsrasterlayer.h"
18
19
21 : QDialog( parent )
22{
23 Q_ASSERT( rasterLayer );
24 setupUi( this );
25 mRatWidget->setRasterLayer( rasterLayer, bandNumber );
26 setWindowTitle( tr( "Raster Attribute Table for %1" ).arg( rasterLayer->name() ) );
27
30
31}
32
34{
35 if ( mRatWidget->setEditable( false ) )
36 {
37 QDialog::reject();
38 }
39}
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.