Starshatter_Open
Open source Starshatter engine
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
CmpSelectDlg.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: CmpSelectDlg.h
7
AUTHOR: John DiCamillo
8
9
10
OVERVIEW
11
========
12
Mission Select Dialog Active Window class
13
*/
14
15
#ifndef CmpSelectDlg_h
16
#define CmpSelectDlg_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
#include "
Text.h
"
26
27
// +--------------------------------------------------------------------+
28
29
class
MenuScreen
;
30
class
Campaign
;
31
class
Starshatter
;
32
33
// +--------------------------------------------------------------------+
34
35
class
CmpSelectDlg
:
public
FormWindow
36
{
37
public
:
38
CmpSelectDlg
(
Screen
* s,
FormDef
& def,
MenuScreen
* mgr);
39
virtual
~CmpSelectDlg
();
40
41
virtual
void
RegisterControls
();
42
virtual
void
Show
();
43
virtual
void
ExecFrame
();
44
virtual
bool
CanClose
();
45
46
// Operations:
47
virtual
void
OnCampaignSelect
(
AWEvent
*
event
);
48
virtual
void
OnNew
(
AWEvent
* event);
49
virtual
void
OnSaved
(
AWEvent
* event);
50
virtual
void
OnDelete
(
AWEvent
* event);
51
virtual
void
OnConfirmDelete
(
AWEvent
* event);
52
virtual
void
OnAccept
(
AWEvent
* event);
53
virtual
void
OnCancel
(
AWEvent
* event);
54
55
virtual
DWORD
LoadProc
();
56
57
protected
:
58
virtual
void
StartLoadProc
();
59
virtual
void
StopLoadProc
();
60
virtual
void
ShowNewCampaigns
();
61
virtual
void
ShowSavedCampaigns
();
62
63
MenuScreen
*
manager
;
64
65
Button
*
btn_new
;
66
Button
*
btn_saved
;
67
Button
*
btn_delete
;
68
Button
*
btn_accept
;
69
Button
*
btn_cancel
;
70
71
ListBox
*
lst_campaigns
;
72
73
ActiveWindow
*
description
;
74
75
Starshatter
*
stars
;
76
Campaign
*
campaign
;
77
int
selected_mission
;
78
HANDLE
hproc
;
79
ThreadSync
sync
;
80
bool
loading
;
81
bool
loaded
;
82
Text
load_file
;
83
int
load_index
;
84
bool
show_saved
;
85
List<Bitmap>
images
;
86
87
Text
select_msg
;
88
};
89
90
#endif CmpSelectDlg_h
91
Stars45
CmpSelectDlg.h
Generated on Tue Jun 5 2012 20:46:49 for Starshatter_Open by
1.8.1