FGx
1
src
launcher
menuwidget.h
1
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-
2
// FGx FlightGear Launcher // menuwidget.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 XMENUWIDGET_H
10
#define XMENUWIDGET_H
11
12
#include <QTimer>
13
14
15
#include <QWidget>
16
#include <QLabel>
17
#include <QtGui/QAction>
18
#include <QtGui/QMenu>
19
#include <QtGui/QMenuBar>
20
#include <QtGui/QLabel>
21
#include <QtGui/QWidgetAction>
22
23
#include "xwidgets/fgxdebugwidget.h"
24
25
#include "xobjects/mainobject.h"
26
class
MainObject
;
27
28
29
class
MenuWidget
:
public
QWidget
30
{
31
Q_OBJECT
32
public
:
33
explicit
MenuWidget
(
MainObject
*mob, QWidget *parent = 0);
34
35
XSettings
*settings;
36
bool
debug_mode;
37
38
MainObject
*mainObject;
39
40
// Some kind of placeholder
41
QHBoxLayout *menuLayout;
42
43
// Menubar
44
QMenuBar *mainMenu;
45
46
// Menus
47
QMenu *applicationMenu;
48
QMenu *modeMenu;
49
QMenu *profileMenu;
50
51
QMenu *helpMenu;
52
QMenu *helpFlightGearGroup;
53
QMenu *helpFGxGroup;
54
55
// Menu Actions
56
QAction *quitAction;
57
QAction *logWindowAction;
58
QAction *debugWindowAction;
59
QAction *propsWindowAction;
60
61
QAction *debugmodeAction;
62
63
QAction *loadProfileAction;
64
QAction *saveProfileAction;
65
QAction *resetProfileAction;
66
QAction *defaultProfileAction;
67
68
QAction *urlActionWiki;
69
QAction *urlActionForums;
70
QAction *urlActionFGxUserHelp;
71
72
signals:
73
void
on_debug_mode(
bool
enabled);
74
75
public
slots:
76
void
on_menu_quit();
77
void
on_show_log_window();
78
void
on_show_debug_window();
79
void
on_show_props_window();
80
81
void
on_menu_debug_mode();
82
83
void
on_menu_load_profile();
84
void
on_menu_save_profile();
85
void
on_menu_reset_profile();
86
void
on_menu_default_profile();
87
88
void
on_menu_url_wiki();
89
void
on_menu_url_forums();
90
void
on_menu_fgx_user_forums();
91
92
};
93
94
#endif // XMENUWIDGET_H
XSettings
The XSettings is an extended QSetttings, but also includes most to the FGx configuration.
Definition:
xsettings.h:14
MainObject
The MainObject is an extended QObject, and the main "controller" for FGx.
Definition:
mainobject.h:61
MenuWidget
Definition:
menuwidget.h:29
Generated on Fri Nov 18 2016 05:39:25 for FGx by
1.8.12