2010-07-16 16:48:13 +02:00
|
|
|
/*
|
|
|
|
* Cppcheck - A tool for static C/C++ code analysis
|
2015-01-03 12:14:58 +01:00
|
|
|
* Copyright (C) 2007-2015 Daniel Marjamäki and Cppcheck team.
|
2010-07-16 16:48:13 +02:00
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LOGVIEW_H
|
|
|
|
#define LOGVIEW_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include "ui_logview.h"
|
|
|
|
|
|
|
|
/// @addtogroup GUI
|
|
|
|
/// @{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief A tool window that shows checking log.
|
|
|
|
*
|
|
|
|
*/
|
2011-10-13 20:53:06 +02:00
|
|
|
class LogView : public QWidget {
|
2010-07-16 16:48:13 +02:00
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2011-05-13 09:38:54 +02:00
|
|
|
LogView(QWidget *parent = 0);
|
2010-07-16 22:27:57 +02:00
|
|
|
~LogView();
|
2010-07-16 16:48:13 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Append new log file to view.
|
|
|
|
* @param line String to add.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void AppendLine(const QString &line);
|
|
|
|
|
2010-07-16 17:02:18 +02:00
|
|
|
protected slots:
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Called when close button is clicked.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void CloseButtonClicked();
|
|
|
|
|
2010-07-16 17:35:51 +02:00
|
|
|
/**
|
|
|
|
* @brief Called when clear button is clicked.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void ClearButtonClicked();
|
|
|
|
|
2010-12-15 08:51:21 +01:00
|
|
|
/**
|
|
|
|
* @brief Called when save button is clicked.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void SaveButtonClicked();
|
|
|
|
|
2010-07-16 16:48:13 +02:00
|
|
|
private:
|
|
|
|
Ui::LogView mUI;
|
|
|
|
};
|
|
|
|
|
|
|
|
/// @}
|
|
|
|
|
|
|
|
#endif // LOGVIEW_H
|