QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
src
gui
qgsmessagelogviewer.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsmessagelogviewer.h - description
3
-------------------
4
begin : October 2011
5
copyright : (C) 2011 by Juergen E. Fischer
6
email : jef at norbit dot de
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
#ifndef QGSMESSAGELOGVIEWER_H
18
#define QGSMESSAGELOGVIEWER_H
19
20
#include <ui_qgsmessagelogviewer.h>
21
#include <
qgisgui.h
>
22
#include "
qgsmessagelog.h
"
23
24
#include <QString>
25
26
class
QStatusBar
;
27
class
QCloseEvent
;
28
32
class
GUI_EXPORT
QgsMessageLogViewer
:
public
QDialog
,
private
Ui::QgsMessageLogViewer
33
{
34
Q_OBJECT
35
public
:
36
QgsMessageLogViewer
(
QStatusBar
*statusBar =
nullptr
,
QWidget
*parent =
nullptr
,
const
Qt::WindowFlags
& fl =
QgisGui::ModalDialogFlags
);
37
~
QgsMessageLogViewer
();
38
39
public
slots:
40
void
logMessage(
QString
message,
QString
tag,
QgsMessageLog::MessageLevel
level );
41
42
protected
:
43
void
closeEvent
(
QCloseEvent
*e )
override
;
44
void
reject
()
override
;
45
46
private
slots:
47
void
closeTab(
int
index
);
48
};
49
50
#endif
QgisGui::ModalDialogFlags
static const Qt::WindowFlags ModalDialogFlags
Definition:
qgisgui.h:50
index
static unsigned index
Definition:
mersenne-twister.cpp:36
QWidget
QDialog::closeEvent
virtual void closeEvent(QCloseEvent *e)
QDialog::reject
virtual void reject()
QStatusBar
QgsMessageLogViewer
A generic dialog widget for displaying QGIS log messages.
Definition:
qgsmessagelogviewer.h:32
QCloseEvent
qgsmessagelog.h
QgsMessageLog::MessageLevel
MessageLevel
Definition:
qgsmessagelog.h:38
QString
QDialog
Qt::WindowFlags
typedef WindowFlags
qgisgui.h
Generated on Sun Jun 24 2018 11:42:48 for QGIS API Documentation by
1.8.13