Fork me on GitHub
2.15.20
FGx
A cross-platform launcher for FlightGear
viewlogswidget.h
Go to the documentation of this file.
1 // -=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-
2 // FGx FlightGear Launcher // viewlogwidget.h
3 // -=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-
4 // (c) 2010-2012
5 // Yves Sablonier, Pete Morgan
6 // Geoff McLane
7 // GNU GPLv2, see main.cpp and shipped licence.txt for further information
8 
9 #ifndef VIEWLOGSWIDGET_H
10 #define VIEWLOGSWIDGET_H
11 
12 
13 #include <QPlainTextEdit>
14 #include <QPushButton>
15 #include <QWidget>
16 #include <QTabWidget>
17 
18 #include "xobjects/mainobject.h"
19 
20 class MainObject;
21 
22 class ViewLogsWidget : public QWidget
23 {
24 Q_OBJECT
25 public:
26  explicit ViewLogsWidget(MainObject *mob, QWidget *parent = 0);
28 
30 
31  QTabWidget *tabWidget;
32 
33 
34  QPlainTextEdit *txtFgFsLog;
35  QPlainTextEdit *txtTerraSyncLog;
36  QPlainTextEdit *txtFgComLog;
37 
38  QPlainTextEdit *txtFgxLog;
39  QPushButton *buttonFgxRefresh;
40 
41  QString stgFgFsLog;
42  QString stgTerraSyncLog;
43  QString stgFgComLog;
44  QString stgFgxLog;
45 
46  void add_log(QString log_name, QString log);
47  void clear_log(QString log_name );
48 
49  void closeEvent(QCloseEvent *event);
50 
51 signals:
52 
53 public slots:
54  void on_load_fgx_log_file();
55 };
56 
57 #endif // VIEWLOGSWIDGET_H
QTabWidget * tabWidget
The MainObject is an extended QObject, and the main "controller" for FGx.
Definition: mainobject.h:66
QPlainTextEdit * txtFgComLog
void clear_log(QString log_name)
void closeEvent(QCloseEvent *event)
QPushButton * buttonFgxRefresh
ViewLogsWidget(MainObject *mob, QWidget *parent=0)
QString stgTerraSyncLog
void add_log(QString log_name, QString log)
void on_load_fgx_log_file()
QPlainTextEdit * txtFgxLog
QPlainTextEdit * txtFgFsLog
QString stgFgComLog
QString stgFgFsLog
MainObject * mainObject
QPlainTextEdit * txtTerraSyncLog