VPTissue Reference Manual
LogWindow.h
Go to the documentation of this file.
1 #ifndef SIMSHELL_GUI_LOGWINDOW_H_INCLUDED
2 #define SIMSHELL_GUI_LOGWINDOW_H_INCLUDED
3 /*
4  * Copyright 2011-2016 Universiteit Antwerpen
5  *
6  * Licensed under the EUPL, Version 1.1 or as soon they will be approved by
7  * the European Commission - subsequent versions of the EUPL (the "Licence");
8  * You may not use this work except in compliance with the Licence.
9  * You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl5
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the Licence is distributed on an "AS IS" basis,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the Licence for the specific language governing
15  * permissions and limitations under the Licence.
16  */
22 #include "ViewerDockWidget.h"
23 #include <functional>
24 
25 class QPlainTextEdit;
26 class QWidget;
27 
28 namespace SimShell {
29 namespace Gui {
30 
34 class LogWindow : public QDockWidget
35 {
36 public:
37  LogWindow(QWidget* parent = nullptr);
38 
39  virtual ~LogWindow();
40 
41  void AddLine(const std::string& line);
42 
43 private:
44  QPlainTextEdit* m_log_widget;
45  QStringList m_lines;
46 };
47 
48 } // namespace
49 } // namespace
50 
51 #endif // end_of_inclde_guard
Interface for ViewerDockWidget.
A viewer that displays sim events in a log in a dock window.
Definition: LogWindow.h:34
see the online Qt documentation
see the online Qt documentation
Namespace for generic graphical shell for simulators.
Definition: SimSession.h:32