QGIS API Documentation 3.41.0-Master (3440c17df1d)
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:
41
47 QgsCreateRasterAttributeTableDialog( QgsRasterLayer *rasterLayer, QWidget *parent = nullptr );
48
52 QString filePath( ) const;
53
57 bool saveToFile( ) const;
58
62 bool openWhenDone( ) const;
63
68 void setMessageBar( QgsMessageBar *bar );
69
73 void setOpenWhenDoneVisible( bool visible );
74
75 // QDialog interface
76 public slots:
77
78 void accept() override;
79
80 private slots:
81
82 void updateButtons();
83
84 void notify( const QString &title, const QString &message, Qgis::MessageLevel level = Qgis::MessageLevel::Info );
85
86 private:
87
88 QgsRasterLayer *mRasterLayer = nullptr;
89 QgsMessageBar *mMessageBar = nullptr;
90
91};
92
93#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.