Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ConfirmDlg.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: ConfirmDlg.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  General-purpose confirmation dialog class
13 */
14 
15 #ifndef ConfirmDlg_h
16 #define ConfirmDlg_h
17 
18 #include "Types.h"
19 #include "FormWindow.h"
20 
21 // +--------------------------------------------------------------------+
22 
23 class MenuScreen;
24 
25 // +--------------------------------------------------------------------+
26 
27 class ConfirmDlg : public FormWindow
28 {
29 public:
30  ConfirmDlg(Screen* s, FormDef& def, MenuScreen* mgr);
31  virtual ~ConfirmDlg();
32 
33  virtual void RegisterControls();
34  virtual void Show();
35 
38 
39  Text GetTitle();
40  void SetTitle(const char* t);
41 
42  Text GetMessage();
43  void SetMessage(const char* m);
44 
45  // Operations:
46  virtual void ExecFrame();
47 
48  virtual void OnApply(AWEvent* event);
49  virtual void OnCancel(AWEvent* event);
50 
51 protected:
53 
56 
59 
61 };
62 
63 #endif ConfirmDlg_h
64