From 69209c38968c6f4066a772e0a51a2928749217de Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Fri, 9 Dec 2011 19:00:23 +0000 Subject: Re-indenting the code to use standard tabs. Yes, I know this is pretty pointless, but who cares? --- Stars45/CmdMsgDlg.cpp | 62 +++++++++++++++++++++++++-------------------------- 1 file changed, 31 insertions(+), 31 deletions(-) (limited to 'Stars45/CmdMsgDlg.cpp') 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(); } // +--------------------------------------------------------------------+ -- cgit v1.1