Fork me on GitHub
2.15.20
FGx
A cross-platform launcher for FlightGear
timeweatherwidget.h
Go to the documentation of this file.
1 // -=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-
2 // FGx FlightGear Launcher // timeweather.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 TIMEWEATHERWIDGET_H
10 #define TIMEWEATHERWIDGET_H
11 
12 
13 #include <QString>
14 #include <QMap>
15 
16 
17 #include <QWidget>
18 #include <QButtonGroup>
19 #include <QPlainTextEdit>
20 
21 
22 #include "xobjects/mainobject.h"
23 class MainObject;
24 
25 
26 class TimeWeatherWidget : public QWidget
27 {
28 Q_OBJECT
29 public:
30  explicit TimeWeatherWidget(MainObject *mOb, QWidget *parent = 0);
31 
33 
34  QMap<QString, QString> mpMapServers;
35 
36  QButtonGroup *buttonGroupTime;
37  QButtonGroup *buttonGroupSeason;
38 
39  QButtonGroup *buttonGroupMetar;
40  QPlainTextEdit *txtMetar;
41 
42  QString validate();
43 
44 signals:
45  void setx(QString option, bool enabled, QString value);
46 
47 public slots:
48  void on_weather();
49  void on_time_clicked();
50  void on_season_clicked(int);
51 
52  void on_upx(QString option, bool enabled, QString value);
53 };
54 
55 #endif // TIMEWEATHERWIDGET_H
QButtonGroup * buttonGroupSeason
The MainObject is an extended QObject, and the main "controller" for FGx.
Definition: mainobject.h:66
QPlainTextEdit * txtMetar
QMap< QString, QString > mpMapServers
TimeWeatherWidget(MainObject *mOb, QWidget *parent=0)
void setx(QString option, bool enabled, QString value)
QButtonGroup * buttonGroupMetar
MainObject * mainObject
QButtonGroup * buttonGroupTime
void on_upx(QString option, bool enabled, QString value)