QGIS API Documentation 3.32.0-Lima (311a8cb8a6)
qgsloadrasterattributetabledialog.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsloadrasterattributetabledialog.h - QgsLoadRasterAttributeTableDialog
3
4 ---------------------
5 begin : 21.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 QGSLOADRASTERATTRIBUTETABLEDIALOG_H
17#define QGSLOADRASTERATTRIBUTETABLEDIALOG_H
18
19
20#include "qgis_gui.h"
21#include "qgis.h"
22#include "ui_qgsloadrasterattributetabledialogbase.h"
23#include <QDialog>
24
25#define SIP_NO_FILE
26
27class QgsRasterLayer;
28class QgsMessageBar;
29
30
39class GUI_EXPORT QgsLoadRasterAttributeTableDialog: public QDialog, private Ui::QgsLoadRasterAttributeTableDialogBase
40{
41 Q_OBJECT
42
43 public:
44
50 QgsLoadRasterAttributeTableDialog( QgsRasterLayer *rasterLayer, QWidget *parent = nullptr );
51
56 void setMessageBar( QgsMessageBar *bar );
57
61 void setOpenWhenDoneVisible( bool visible );
62
66 bool openWhenDone( ) const;
67
71 int rasterBand( );
72
76 QString filePath( ) const;
77
78 // QDialog interface
79 public slots:
80
81 void accept() override;
82
83 private slots:
84
85 void updateButtons();
86
87 void notify( const QString &title, const QString &message, Qgis::MessageLevel level = Qgis::MessageLevel::Info );
88
89 private:
90
91 QgsRasterLayer *mRasterLayer = nullptr;
92 QgsMessageBar *mMessageBar = nullptr;
93};
94
95#endif // QGSLOADRASTERATTRIBUTETABLEDIALOG_H
MessageLevel
Level for messages This will be used both for message log and message bar in application.
Definition: qgis.h:99
The QgsLoadRasterAttributeTableDialog dialog let the user select a VAT.DBF file and associate the res...
A bar for displaying non-blocking messages to the user.
Definition: qgsmessagebar.h:61
Represents a raster layer.