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/CmdOrdersDlg.cpp | 90 ++++++++++++++++++++++++------------------------ 1 file changed, 45 insertions(+), 45 deletions(-) (limited to 'Stars45/CmdOrdersDlg.cpp') diff --git a/Stars45/CmdOrdersDlg.cpp b/Stars45/CmdOrdersDlg.cpp index c874d22..5a3d344 100644 --- a/Stars45/CmdOrdersDlg.cpp +++ b/Stars45/CmdOrdersDlg.cpp @@ -1,15 +1,15 @@ /* 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: CmdOrdersDlg.cpp - AUTHOR: John DiCamillo + SUBSYSTEM: Stars.exe + FILE: CmdOrdersDlg.cpp + AUTHOR: John DiCamillo - OVERVIEW - ======== - Operational Command Dialog (Campaign Orders Tab) + OVERVIEW + ======== + Operational Command Dialog (Campaign Orders Tab) */ #include "MemDebug.h" @@ -45,13 +45,13 @@ DEF_MAP_CLIENT(CmdOrdersDlg, OnExit); // +--------------------------------------------------------------------+ CmdOrdersDlg::CmdOrdersDlg(Screen* s, FormDef& def, CmpnScreen* mgr) - : FormWindow(s, 0, 0, s->Width(), s->Height()), CmdDlg(mgr), manager(mgr), - lbl_orders(0), stars(0), campaign(0) +: FormWindow(s, 0, 0, s->Width(), s->Height()), CmdDlg(mgr), manager(mgr), +lbl_orders(0), stars(0), campaign(0) { - stars = Starshatter::GetInstance(); - campaign = Campaign::GetCampaign(); + stars = Starshatter::GetInstance(); + campaign = Campaign::GetCampaign(); - Init(def); + Init(def); } CmdOrdersDlg::~CmdOrdersDlg() @@ -63,20 +63,20 @@ CmdOrdersDlg::~CmdOrdersDlg() void CmdOrdersDlg::RegisterControls() { - lbl_orders = FindControl(400); + lbl_orders = FindControl(400); - RegisterCmdControls(this); + RegisterCmdControls(this); - if (btn_save) - REGISTER_CLIENT(EID_CLICK, btn_save, CmdOrdersDlg, OnSave); + if (btn_save) + REGISTER_CLIENT(EID_CLICK, btn_save, CmdOrdersDlg, OnSave); - if (btn_exit) - REGISTER_CLIENT(EID_CLICK, btn_exit, CmdOrdersDlg, OnExit); + if (btn_exit) + REGISTER_CLIENT(EID_CLICK, btn_exit, CmdOrdersDlg, OnExit); - for (int i = 0; i < 5; i++) { - if (btn_mode[i]) - REGISTER_CLIENT(EID_CLICK, btn_mode[i], CmdOrdersDlg, OnMode); - } + for (int i = 0; i < 5; i++) { + if (btn_mode[i]) + REGISTER_CLIENT(EID_CLICK, btn_mode[i], CmdOrdersDlg, OnMode); + } } // +--------------------------------------------------------------------+ @@ -84,29 +84,29 @@ CmdOrdersDlg::RegisterControls() void CmdOrdersDlg::Show() { - mode = MODE_ORDERS; + mode = MODE_ORDERS; - FormWindow::Show(); - ShowCmdDlg(); + FormWindow::Show(); + ShowCmdDlg(); - campaign = Campaign::GetCampaign(); + campaign = Campaign::GetCampaign(); - if (campaign && lbl_orders) { - Text orders(""); - orders += Game::GetText("CmdOrdersDlg.situation"); - orders += "\n"; - if (*campaign->Situation()) - orders += campaign->Situation(); - else - orders += campaign->Description(); + if (campaign && lbl_orders) { + Text orders(""); + orders += Game::GetText("CmdOrdersDlg.situation"); + orders += "\n"; + if (*campaign->Situation()) + orders += campaign->Situation(); + else + orders += campaign->Description(); - orders += "\n\n"; - orders += Game::GetText("CmdOrdersDlg.orders"); - orders += "\n"; - orders += campaign->Orders(); + orders += "\n\n"; + orders += Game::GetText("CmdOrdersDlg.orders"); + orders += "\n"; + orders += campaign->Orders(); - lbl_orders->SetText(orders); - } + lbl_orders->SetText(orders); + } } // +--------------------------------------------------------------------+ @@ -114,7 +114,7 @@ CmdOrdersDlg::Show() void CmdOrdersDlg::ExecFrame() { - CmdDlg::ExecFrame(); + CmdDlg::ExecFrame(); } // +--------------------------------------------------------------------+ @@ -122,18 +122,18 @@ CmdOrdersDlg::ExecFrame() void CmdOrdersDlg::OnSave(AWEvent* event) { - CmdDlg::OnSave(event); + CmdDlg::OnSave(event); } void CmdOrdersDlg::OnExit(AWEvent* event) { - CmdDlg::OnExit(event); + CmdDlg::OnExit(event); } void CmdOrdersDlg::OnMode(AWEvent* event) { - CmdDlg::OnMode(event); + CmdDlg::OnMode(event); } -- cgit v1.1