Starshatter_Open
Open source Starshatter engine
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
CtlDlg.h
Go to the documentation of this file.
1
/* Project Starshatter 4.5
2
Destroyer Studios LLC
3
Copyright © 1997-2004. All Rights Reserved.
4
5
SUBSYSTEM: Stars.exe
6
FILE: CtlDlg.h
7
AUTHOR: John DiCamillo
8
9
10
OVERVIEW
11
========
12
Control Options (keyboard/joystick) Dialog Active Window class
13
*/
14
15
#ifndef CtlDlg_h
16
#define CtlDlg_h
17
18
#include "
Types.h
"
19
#include "
FormWindow.h
"
20
#include "
Bitmap.h
"
21
#include "
Button.h
"
22
#include "
ComboBox.h
"
23
#include "
ListBox.h
"
24
#include "
Font.h
"
25
26
// +--------------------------------------------------------------------+
27
28
class
BaseScreen
;
29
class
MenuScreen
;
30
class
GameScreen
;
31
32
// +--------------------------------------------------------------------+
33
34
class
CtlDlg
:
public
FormWindow
35
{
36
public
:
37
CtlDlg
(
Screen
* s,
FormDef
& def,
BaseScreen
* mgr);
38
virtual
~CtlDlg
();
39
40
virtual
void
RegisterControls
();
41
virtual
void
Show
();
42
virtual
void
ExecFrame
();
43
44
// Operations:
45
virtual
void
OnCommand
(
AWEvent
*
event
);
46
virtual
void
OnCategory
(
AWEvent
* event);
47
48
virtual
void
OnControlModel
(
AWEvent
* event);
49
50
virtual
void
OnJoySelect
(
AWEvent
* event);
51
virtual
void
OnJoyThrottle
(
AWEvent
* event);
52
virtual
void
OnJoyRudder
(
AWEvent
* event);
53
virtual
void
OnJoySensitivity
(
AWEvent
* event);
54
virtual
void
OnJoyAxis
(
AWEvent
* event);
55
56
virtual
void
OnMouseSelect
(
AWEvent
* event);
57
virtual
void
OnMouseSensitivity
(
AWEvent
* event);
58
virtual
void
OnMouseInvert
(
AWEvent
* event);
59
60
virtual
void
Apply
();
61
virtual
void
Cancel
();
62
63
virtual
void
OnApply
(
AWEvent
* event);
64
virtual
void
OnCancel
(
AWEvent
* event);
65
66
virtual
void
OnAudio
(
AWEvent
* event);
67
virtual
void
OnVideo
(
AWEvent
* event);
68
virtual
void
OnOptions
(
AWEvent
* event);
69
virtual
void
OnControls
(
AWEvent
* event);
70
virtual
void
OnMod
(
AWEvent
* event);
71
72
protected
:
73
void
ShowCategory
();
74
void
UpdateCategory
();
75
76
BaseScreen
*
manager
;
77
78
Button
*
category
[4];
79
ListBox
*
commands
;
80
int
command_index
;
81
82
ComboBox
*
control_model_combo
;
83
84
ComboBox
*
joy_select_combo
;
85
ComboBox
*
joy_throttle_combo
;
86
ComboBox
*
joy_rudder_combo
;
87
Slider
*
joy_sensitivity_slider
;
88
Button
*
joy_axis_button
;
89
90
ComboBox
*
mouse_select_combo
;
91
Slider
*
mouse_sensitivity_slider
;
92
Button
*
mouse_invert_checkbox
;
93
94
Button
*
aud_btn
;
95
Button
*
vid_btn
;
96
Button
*
opt_btn
;
97
Button
*
ctl_btn
;
98
Button
*
mod_btn
;
99
100
Button
*
apply
;
101
Button
*
cancel
;
102
103
int
selected_category
;
104
int
control_model
;
105
106
int
joy_select
;
107
int
joy_throttle
;
108
int
joy_rudder
;
109
int
joy_sensitivity
;
110
111
int
mouse_select
;
112
int
mouse_sensitivity
;
113
int
mouse_invert
;
114
115
bool
closed
;
116
};
117
118
#endif CtlDlg_h
119
Stars45
CtlDlg.h
Generated on Tue Jun 5 2012 20:46:51 for Starshatter_Open by
1.8.1