Starshatter_Open
Open source Starshatter engine
 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 
64 
70 
72 
74 
78  HANDLE hproc;
80  bool loading;
81  bool loaded;
84  bool show_saved;
86 
88 };
89 
90 #endif CmpSelectDlg_h
91