FGx  1
viewlogswidget.h
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 <QtGui/QPlainTextEdit>
14 #include <QtGui/QPushButton>
15 #include <QtGui/QWidget>
16 #include <QtGui/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);
27  ~ViewLogsWidget();
28 
29  MainObject *mainObject;
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
ViewLogsWidget
Definition: viewlogswidget.h:22
MainObject
The MainObject is an extended QObject, and the main "controller" for FGx.
Definition: mainobject.h:61