From 8898ad9b25fca6afe2374d293a981db02a83d7e9 Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 31 May 2012 14:46:27 +0000 Subject: Committing the documentation to svn to have it accessible online --- Doc/doxygen/html/_confirm_dlg_8cpp_source.html | 267 +++++++++++++++++++++++++ 1 file changed, 267 insertions(+) create mode 100644 Doc/doxygen/html/_confirm_dlg_8cpp_source.html (limited to 'Doc/doxygen/html/_confirm_dlg_8cpp_source.html') diff --git a/Doc/doxygen/html/_confirm_dlg_8cpp_source.html b/Doc/doxygen/html/_confirm_dlg_8cpp_source.html new file mode 100644 index 0000000..45cc9cd --- /dev/null +++ b/Doc/doxygen/html/_confirm_dlg_8cpp_source.html @@ -0,0 +1,267 @@ + + + + + +Starshatter_Open: D:/SRC/StarshatterSVN/Stars45/ConfirmDlg.cpp Source File + + + + + + + + + + + + + +
+
+ + + + + + +
+
Starshatter_Open +
+
Open source Starshatter engine
+
+
+ + + + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+
+
ConfirmDlg.cpp
+
+
+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.cpp
+
7  AUTHOR: John DiCamillo
+
8 
+
9 
+
10  OVERVIEW
+
11  ========
+
12  General-purpose confirmation dialog class
+
13 */
+
14 
+
15 #include "MemDebug.h"
+
16 #include "ConfirmDlg.h"
+
17 #include "MenuScreen.h"
+
18 #include "Starshatter.h"
+
19 #include "FormatUtil.h"
+
20 
+
21 #include "Game.h"
+
22 #include "Keyboard.h"
+
23 #include "Button.h"
+
24 
+
25 // +--------------------------------------------------------------------+
+
26 // DECLARE MAPPING FUNCTIONS:
+
27 
+
28 DEF_MAP_CLIENT(ConfirmDlg, OnApply);
+
29 DEF_MAP_CLIENT(ConfirmDlg, OnCancel);
+
30 
+
31 // +--------------------------------------------------------------------+
+
32 
+ +
34 : FormWindow(s, 0, 0, s->Width(), s->Height()), manager(mgr),
+
35 parent_control(0), btn_apply(0), btn_cancel(0)
+
36 {
+
37  Init(def);
+
38 }
+
39 
+ +
41 {
+
42 }
+
43 
+
44 void
+ +
46 {
+
47  if (btn_apply)
+
48  return;
+
49 
+ + +
52 
+ + +
55 
+
56  lbl_title = FindControl(100);
+
57  lbl_message = FindControl(101);
+
58 }
+
59 
+
60 // +--------------------------------------------------------------------+
+
61 
+ + +
64 {
+
65  return parent_control;
+
66 }
+
67 
+
68 void
+ +
70 {
+
71  parent_control = p;
+
72 }
+
73 
+
74 Text
+ +
76 {
+
77  if (lbl_title)
+
78  return lbl_title->GetText();
+
79 
+
80  return "";
+
81 }
+
82 
+
83 void
+
84 ConfirmDlg::SetTitle(const char* t)
+
85 {
+
86  if (lbl_title)
+
87  lbl_title->SetText(t);
+
88 }
+
89 
+
90 Text
+ +
92 {
+
93  if (lbl_message)
+
94  return lbl_message->GetText();
+
95 
+
96  return "";
+
97 }
+
98 
+
99 void
+ +
101 {
+
102  if (lbl_message)
+
103  lbl_message->SetText(m);
+
104 }
+
105 
+
106 // +--------------------------------------------------------------------+
+
107 
+
108 void
+ +
110 {
+
111  if (Keyboard::KeyDown(VK_RETURN)) {
+
112  OnApply(0);
+
113  }
+
114 
+
115  if (Keyboard::KeyDown(VK_ESCAPE)) {
+
116  OnCancel(0);
+
117  }
+
118 }
+
119 
+
120 // +--------------------------------------------------------------------+
+
121 
+
122 void
+ +
124 {
+
125  if (!IsShown()) {
+ +
127  }
+
128 
+ +
130  SetFocus();
+
131 }
+
132 
+
133 // +--------------------------------------------------------------------+
+
134 
+
135 void
+ +
137 {
+ +
139 
+
140  if (parent_control)
+ +
142 }
+
143 
+
144 void
+ +
146 {
+ +
148 }
+
149 
+
150 // +--------------------------------------------------------------------+
+
+
+ + + + -- cgit v1.1