FGx  1
timeweatherwidget.h
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 <QtCore/QString>
14 #include <QtCore/QMap>
15 
16 
17 #include <QtGui/QWidget>
18 #include <QtGui/QButtonGroup>
19 #include <QtGui/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 
32  MainObject *mainObject;
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
The MainObject is an extended QObject, and the main "controller" for FGx.
Definition: mainobject.h:61
Definition: timeweatherwidget.h:26