QGIS API Documentation 3.41.0-Master (cea29feecf2)
Loading...
Searching...
No Matches
qgscreaterasterattributetabledialog.h
Go to the documentation of this file.
1/***************************************************************************
2 qgscreaterasterattributetabledialog.h - QgsCreateRasterAttributeTableDialog
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#ifndef QGSCREATERASTERATTRIBUTETABLEDIALOG_H
17#define QGSCREATERASTERATTRIBUTETABLEDIALOG_H
18
19#include "qgis_gui.h"
20#include "qgis.h"
21#include "ui_qgscreaterasterattributetabledialogbase.h"
22#include <QDialog>
23
24#define SIP_NO_FILE
25
26class QgsRasterLayer;
27class QgsMessageBar;
28
29
37class GUI_EXPORT QgsCreateRasterAttributeTableDialog : public QDialog, private Ui::QgsCreateRasterAttributeTableDialogBase
38{
39 Q_OBJECT
40 public:
46 QgsCreateRasterAttributeTableDialog( QgsRasterLayer *rasterLayer, QWidget *parent = nullptr );
47
51 QString filePath() const;
52
56 bool saveToFile() const;
57
61 bool openWhenDone() const;
62
67 void setMessageBar( QgsMessageBar *bar );
68
72 void setOpenWhenDoneVisible( bool visible );
73
74 // QDialog interface
75 public slots:
76
77 void accept() override;
78
79 private slots:
80
81 void updateButtons();
82
83 void notify( const QString &title, const QString &message, Qgis::MessageLevel level = Qgis::MessageLevel::Info );
84
85 private:
86 QgsRasterLayer *mRasterLayer = nullptr;
87 QgsMessageBar *mMessageBar = nullptr;
88};
89
90#endif // QGSCREATERASTERATTRIBUTETABLEDIALOG_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 QgsCreateRasterAttributeTableDialog dialog collects the information required to create a new rast...
A bar for displaying non-blocking messages to the user.
Represents a raster layer.