QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
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:
49 QgsLoadRasterAttributeTableDialog( QgsRasterLayer *rasterLayer, QWidget *parent = nullptr );
50
55 void setMessageBar( QgsMessageBar *bar );
56
60 void setOpenWhenDoneVisible( bool visible );
61
65 bool openWhenDone() const;
66
70 int rasterBand();
71
75 QString filePath() const;
76
77 // QDialog interface
78 public slots:
79
80 void accept() override;
81
82 private slots:
83
84 void updateButtons();
85
86 void notify( const QString &title, const QString &message, Qgis::MessageLevel level = Qgis::MessageLevel::Info );
87
88 private:
89 QgsRasterLayer *mRasterLayer = nullptr;
90 QgsMessageBar *mMessageBar = nullptr;
91};
92
93#endif // QGSLOADRASTERATTRIBUTETABLEDIALOG_H
MessageLevel
Level for messages This will be used both for message log and message bar in application.
Definition qgis.h:154
@ Info
Information message.
Definition qgis.h:155
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.
Represents a raster layer.