QGIS API Documentation 3.41.0-Master (cea29feecf2)
Loading...
Searching...
No Matches
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 <QMenu>
25#include <QString>
26#include "qgis_gui.h"
27#include "qgis_sip.h"
28
29class QStatusBar;
30class QCloseEvent;
31
36class GUI_EXPORT QgsMessageLogViewer : public QDialog, private Ui::QgsMessageLogViewer
37{
38 Q_OBJECT
39 public:
44 QgsMessageLogViewer( QWidget *parent SIP_TRANSFERTHIS = nullptr, Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags );
45
46 public slots:
47
51 void logMessage( const QString &message, const QString &tag, Qgis::MessageLevel level );
52
53 protected:
54 void closeEvent( QCloseEvent *e ) override;
55 void reject() override;
56 bool eventFilter( QObject *obj, QEvent *ev ) override;
57
58 private slots:
59 void showContextMenuForTabBar( QPoint point );
60 void closeTab( int index );
61
62 private:
63 QString mClickedAnchor;
64 QMenu *mTabBarContextMenu = nullptr;
65 int mMessageLoggedCount = 0;
66};
67
68#endif
MessageLevel
Level for messages This will be used both for message log and message bar in application.
Definition qgis.h:154
A generic dialog widget for displaying QGIS log messages.
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53