QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
raster
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 "ui_qgscreaterasterattributetabledialogbase.h"
20
21
#include "
qgis.h
"
22
#include "qgis_gui.h"
23
24
#include <QDialog>
25
26
#define SIP_NO_FILE
27
28
class
QgsRasterLayer
;
29
class
QgsMessageBar
;
30
31
41
class
GUI_EXPORT
QgsCreateRasterAttributeTableDialog
:
public
QDialog,
private
Ui::QgsCreateRasterAttributeTableDialogBase
42
{
43
Q_OBJECT
44
public
:
50
QgsCreateRasterAttributeTableDialog
(
QgsRasterLayer
*rasterLayer, QWidget *parent =
nullptr
);
51
55
QString
filePath
()
const
;
56
60
bool
saveToFile
()
const
;
61
65
bool
openWhenDone
()
const
;
66
71
void
setMessageBar
(
QgsMessageBar
*bar );
72
76
void
setOpenWhenDoneVisible
(
bool
visible );
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
QgsRasterLayer
*mRasterLayer =
nullptr
;
91
QgsMessageBar
*mMessageBar =
nullptr
;
92
};
93
94
#endif
// QGSCREATERASTERATTRIBUTETABLEDIALOG_H
Qgis::MessageLevel
MessageLevel
Level for messages This will be used both for message log and message bar in application.
Definition
qgis.h:160
Qgis::Info
@ Info
Information message.
Definition
qgis.h:161
QgsCreateRasterAttributeTableDialog::QgsCreateRasterAttributeTableDialog
QgsCreateRasterAttributeTableDialog(QgsRasterLayer *rasterLayer, QWidget *parent=nullptr)
Creates a new QgsCreateRasterAttributeTableDialog.
Definition
qgscreaterasterattributetabledialog.cpp:30
QgsCreateRasterAttributeTableDialog::setOpenWhenDoneVisible
void setOpenWhenDoneVisible(bool visible)
Sets the visibility of the "Open newly created raster attribute table" option to visible,...
Definition
qgscreaterasterattributetabledialog.cpp:123
QgsCreateRasterAttributeTableDialog::filePath
QString filePath() const
Returns the file path in case of VAT.DBF save option.
Definition
qgscreaterasterattributetabledialog.cpp:103
QgsCreateRasterAttributeTableDialog::setMessageBar
void setMessageBar(QgsMessageBar *bar)
Sets the message bar associated with the widget.
Definition
qgscreaterasterattributetabledialog.cpp:118
QgsCreateRasterAttributeTableDialog::openWhenDone
bool openWhenDone() const
Returns true if the option to open the newly created attribute table is checked.
Definition
qgscreaterasterattributetabledialog.cpp:113
QgsCreateRasterAttributeTableDialog::saveToFile
bool saveToFile() const
Returns true if the option to save to a file is selected.
Definition
qgscreaterasterattributetabledialog.cpp:108
QgsCreateRasterAttributeTableDialog::accept
void accept() override
Definition
qgscreaterasterattributetabledialog.cpp:133
QgsMessageBar
A bar for displaying non-blocking messages to the user.
Definition
qgsmessagebar.h:61
QgsRasterLayer
Represents a raster layer.
Definition
qgsrasterlayer.h:82
qgis.h
Generated on
for QGIS API Documentation by
1.17.0