FGx
1
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Enumerations
Enumerator
Macros
Pages
src
aircraft
aircraftwidget.h
1
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-
2
// FGx FlightGear Launcher // aircraftwidget.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 AIRCRAFTWIDGET_H
10
#define AIRCRAFTWIDGET_H
11
12
#include <QString>
13
#include <QStringList>
14
15
#include <QtGui/QWidget>
16
#include <QtGui/QAbstractButton>
17
#include <QtGui/QButtonGroup>
18
#include <QtGui/QCheckBox>
19
#include <QtGui/QLineEdit>
20
#include <QtGui/QTreeWidget>
21
#include <QtGui/QTabBar>
22
#include <QtGui/QLabel>
23
#include <QtGui/QStatusBar>
24
#include <QtGui/QToolButton>
25
26
#include "xobjects/mainobject.h"
27
28
class
AircraftWidget
:
public
QWidget
29
{
30
Q_OBJECT
31
public
:
32
//aero << directory << xml_file << description << fdm << author << file_path;
33
enum
COLS{
34
C_DIR,
35
C_AERO,
36
C_RATING,
37
C_DESCRIPTION,
38
C_FDM,
39
C_AUTHOR,
40
C_FILE_PATH
41
};
42
/*enum VIEWS{
43
LIST_VIEW = 1,
44
FOLDER_VIEW = 0
45
};*/
46
47
explicit
AircraftWidget
(
MainObject
*mOb, QWidget *parent = 0);
48
49
MainObject
*mainObject;
50
51
QCheckBox *checkBoxUseCustomHangar;
52
53
QButtonGroup *groupUseAircraft;
54
QLineEdit *txtAircraftPath;
55
QToolButton *buttSelectPath;
56
57
58
QLabel *aeroImageLabel;
59
QCheckBox *checkViewNested;
60
61
62
QLineEdit *txtNav1;
63
QLineEdit *txtNav2;
64
QLineEdit *txtAdf1;
65
QLineEdit *txtAdf2;
66
QLineEdit *txtCom1;
67
QLineEdit *txtCom2;
68
69
QCheckBox *checkBoxUseDefaultFuel;
70
QCheckBox *checkBoxFuelFreeze;
71
QLineEdit *txtTank1;
72
QLineEdit *txtTank2;
73
QLineEdit *txtTank3;
74
75
void
initialize();
76
77
QString validate();
78
void
select_node(QString aero);
79
QString selected_aircraft();
80
81
private
:
82
QTreeWidget *treeWidget;
83
QStatusBar *statusBarTree;
84
QLabel *labelAeroPath;
85
QToolButton *buttonAeroPath;
86
87
signals:
88
void
setx( QString option,
bool
enabled,QString value);
89
90
public
slots:
91
void
load_tree();
92
void
on_select_path();
93
void
on_custom_hangar_path();
94
void
on_tree_selection_changed();
95
void
on_reload_cache();
96
97
void
on_enable_fuel_freeze_clicked();
98
99
void
on_navs_changed();
100
void
on_fuel_changed();
101
102
void
on_upx(QString option,
bool
enabled, QString value);
103
void
on_open_aircraft_path();
104
};
105
106
#endif // AIRCRAFTWIDGET_H
MainObject
The MainObject is an extended QObject, and the main "controller" for FGx.
Definition:
mainobject.h:61
AircraftWidget
Definition:
aircraftwidget.h:28
Generated on Thu Oct 16 2014 08:33:50 for FGx by
1.8.8