Quantum GIS API Documentation  1.8
src/gui/qgsmessagelogviewer.h
Go to the documentation of this file.
00001 /***************************************************************************
00002                           qgsmessagelogviewer.h  -  description
00003                              -------------------
00004     begin                : October 2011
00005     copyright            : (C) 2011 by Juergen E. Fischer
00006     email                : jef at norbit dot de
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 #ifndef QGSMESSAGELOGVIEWER_H
00018 #define QGSMESSAGELOGVIEWER_H
00019 
00020 #include <ui_qgsmessagelogviewer.h>
00021 #include <qgisgui.h>
00022 #include "qgsmessagelog.h"
00023 
00024 #include <QString>
00025 
00026 class QStatusBar;
00027 class QToolButton;
00028 class QShowEvent;
00029 class QHideEvent;
00030 
00035 class GUI_EXPORT QgsMessageLogViewer: public QDialog, private Ui::QgsMessageLogViewer
00036 {
00037     Q_OBJECT
00038   public:
00039     QgsMessageLogViewer( QStatusBar *statusBar = 0, QWidget *parent = 0, Qt::WFlags fl = QgisGui::ModalDialogFlags );
00040     ~QgsMessageLogViewer();
00041 
00042   public slots:
00043     void logMessage( QString message, QString tag, int level );
00044 
00045   private:
00046     void showEvent( QShowEvent * );
00047     void hideEvent( QHideEvent * );
00048 
00049     QToolButton *mButton;
00050     int mCount;
00051 
00052   private slots:
00053     void closeTab( int index );
00054     void buttonToggled( bool checked );
00055     void buttonDestroyed();
00056 };
00057 
00058 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines