QGIS API Documentation  2.99.0-Master (7d4f81d)
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 "qgsguiutils.h"
22 #include "qgsmessagelog.h"
23 
24 #include <QString>
25 #include "qgis_gui.h"
26 #include "qgis.h"
27 
28 class QStatusBar;
29 class QCloseEvent;
30 
34 class GUI_EXPORT QgsMessageLogViewer: public QDialog, private Ui::QgsMessageLogViewer
35 {
36  Q_OBJECT
37  public:
38 
43  QgsMessageLogViewer( QWidget *parent SIP_TRANSFERTHIS = nullptr, Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags );
44 
45  public slots:
46 
50  void logMessage( const QString &message, const QString &tag, QgsMessageLog::MessageLevel level );
51 
52  protected:
53  void closeEvent( QCloseEvent *e ) override;
54  void reject() override;
55 
56  private slots:
57  void closeTab( int index );
58 };
59 
60 #endif
#define SIP_TRANSFERTHIS
Definition: qgis_sip.h:46
A generic dialog widget for displaying QGIS log messages.