summaryrefslogtreecommitdiffhomepage
path: root/Stars45/CmdMsgDlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/CmdMsgDlg.cpp')
-rw-r--r--Stars45/CmdMsgDlg.cpp62
1 files changed, 31 insertions, 31 deletions
diff --git a/Stars45/CmdMsgDlg.cpp b/Stars45/CmdMsgDlg.cpp
index d151954..2b887cb 100644
--- a/Stars45/CmdMsgDlg.cpp
+++ b/Stars45/CmdMsgDlg.cpp
@@ -1,14 +1,14 @@
/* Project Starshatter 4.5
- Destroyer Studios LLC
- Copyright © 1997-2004. All Rights Reserved.
+ Destroyer Studios LLC
+ Copyright © 1997-2004. All Rights Reserved.
- SUBSYSTEM: Stars.exe
- FILE: CmdMsgDlg.cpp
- AUTHOR: John DiCamillo
+ SUBSYSTEM: Stars.exe
+ FILE: CmdMsgDlg.cpp
+ AUTHOR: John DiCamillo
- OVERVIEW
- ========
+ OVERVIEW
+ ========
*/
#include "MemDebug.h"
@@ -31,10 +31,10 @@ DEF_MAP_CLIENT(CmdMsgDlg, OnApply);
// +--------------------------------------------------------------------+
CmdMsgDlg::CmdMsgDlg(Screen* s, FormDef& def, CmpnScreen* mgr)
- : FormWindow(s, 0, 0, s->Width(), s->Height()), manager(mgr),
- exit_latch(false)
+: FormWindow(s, 0, 0, s->Width(), s->Height()), manager(mgr),
+exit_latch(false)
{
- Init(def);
+ Init(def);
}
CmdMsgDlg::~CmdMsgDlg()
@@ -44,11 +44,11 @@ CmdMsgDlg::~CmdMsgDlg()
void
CmdMsgDlg::RegisterControls()
{
- title = FindControl(100);
- message = FindControl(101);
+ title = FindControl(100);
+ message = FindControl(101);
- apply = (Button*) FindControl(1);
- REGISTER_CLIENT(EID_CLICK, apply, CmdMsgDlg, OnApply);
+ apply = (Button*) FindControl(1);
+ REGISTER_CLIENT(EID_CLICK, apply, CmdMsgDlg, OnApply);
}
// +--------------------------------------------------------------------+
@@ -56,19 +56,19 @@ CmdMsgDlg::RegisterControls()
void
CmdMsgDlg::ExecFrame()
{
- if (Keyboard::KeyDown(VK_RETURN)) {
- OnApply(0);
- }
-
- if (Keyboard::KeyDown(VK_ESCAPE)) {
- if (!exit_latch)
- OnApply(0);
-
- exit_latch = true;
- }
- else {
- exit_latch = false;
- }
+ if (Keyboard::KeyDown(VK_RETURN)) {
+ OnApply(0);
+ }
+
+ if (Keyboard::KeyDown(VK_ESCAPE)) {
+ if (!exit_latch)
+ OnApply(0);
+
+ exit_latch = true;
+ }
+ else {
+ exit_latch = false;
+ }
}
// +--------------------------------------------------------------------+
@@ -76,8 +76,8 @@ CmdMsgDlg::ExecFrame()
void
CmdMsgDlg::Show()
{
- FormWindow::Show();
- SetFocus();
+ FormWindow::Show();
+ SetFocus();
}
// +--------------------------------------------------------------------+
@@ -85,8 +85,8 @@ CmdMsgDlg::Show()
void
CmdMsgDlg::OnApply(AWEvent* event)
{
- if (manager)
- manager->CloseTopmost();
+ if (manager)
+ manager->CloseTopmost();
}
// +--------------------------------------------------------------------+