Cppcheck
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
logview.h
Go to the documentation of this file.
1 /*
2  * Cppcheck - A tool for static C/C++ code analysis
3  * Copyright (C) 2007-2016 Cppcheck team.
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef LOGVIEW_H
20 #define LOGVIEW_H
21 
22 #include <QWidget>
23 #include "ui_logview.h"
24 
25 /// @addtogroup GUI
26 /// @{
27 
28 /**
29 * @brief A tool window that shows checking log.
30 *
31 */
32 class LogView : public QWidget {
33  Q_OBJECT
34 public:
35  explicit LogView(QWidget *parent = 0);
36  ~LogView();
37 
38  /**
39  * @brief Append new log file to view.
40  * @param line String to add.
41  *
42  */
43  void appendLine(const QString &line);
44 
45 protected slots:
46 
47  /**
48  * @brief Called when close button is clicked.
49  *
50  */
51  void closeButtonClicked();
52 
53  /**
54  * @brief Called when clear button is clicked.
55  *
56  */
57  void clearButtonClicked();
58 
59  /**
60  * @brief Called when save button is clicked.
61  *
62  */
63  void saveButtonClicked();
64 
65 private:
66  Ui::LogView mUI;
67 };
68 
69 /// @}
70 
71 #endif // LOGVIEW_H
void appendLine(const QString &line)
Append new log file to view.
Definition: logview.cpp:51
A tool window that shows checking log.
Definition: logview.h:32
~LogView()
Definition: logview.cpp:44
void clearButtonClicked()
Called when clear button is clicked.
Definition: logview.cpp:61
void saveButtonClicked()
Called when save button is clicked.
Definition: logview.cpp:66
Ui::LogView mUI
Definition: logview.h:66
void closeButtonClicked()
Called when close button is clicked.
Definition: logview.cpp:56
LogView(QWidget *parent=0)
Definition: logview.cpp:28