Fork me on GitHub
2.15.20
FGx
A cross-platform launcher for FlightGear
headerwidget.h
Go to the documentation of this file.
1 // -=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-
2 // FGx FlightGear Launcher // headerwidget.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 XHEADERWIDGET_H
10 #define XHEADERWIDGET_H
11 
12 #include <QTimer>
13 
14 
15 #include <QWidget>
16 #include <QLabel>
17 
18 
19 #include "xobjects/mainobject.h"
20 class MainObject;
21 
22 
23 class HeaderWidget : public QWidget
24 {
25 Q_OBJECT
26 public:
27  explicit HeaderWidget(MainObject *mob, QWidget *parent = 0);
28 
30 
31  //QTimer *fadeTimer;
32 
33  //QWidget *headerWidget;
36 
37  //QWidget *popWidget;
39 
40  void setHeader(QString text);
41  void setCallsign(QString text);
42 
43 
44 
45 signals:
46 
47 public slots:
48 
49  void showMessage(QString message, int timeout);
50  void showMessage(QString message);
51  void cancel_message();
52 
53 };
54 
55 #endif // XHEADERWIDGET_H
MainObject * mainObject
Definition: headerwidget.h:29
void setHeader(QString text)
The MainObject is an extended QObject, and the main "controller" for FGx.
Definition: mainobject.h:66
QLabel * headerLabel
Definition: headerwidget.h:34
HeaderWidget(MainObject *mob, QWidget *parent=0)
void setCallsign(QString text)
void showMessage(QString message, int timeout)
void cancel_message()
The HeaderWidget is the top part of the LauncherWindow and contains the info and a normally hidden me...
Definition: headerwidget.h:23
QLabel * callsignLabel
Definition: headerwidget.h:35
QLabel * messageLabel
Definition: headerwidget.h:38