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/ModInfoDlg.cpp | 80 +++++++++++++++++++++++++------------------------- 1 file changed, 40 insertions(+), 40 deletions(-) (limited to 'Stars45/ModInfoDlg.cpp') diff --git a/Stars45/ModInfoDlg.cpp b/Stars45/ModInfoDlg.cpp index f7dfb34..f72fda1 100644 --- a/Stars45/ModInfoDlg.cpp +++ b/Stars45/ModInfoDlg.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: ModInfoDlg.cpp - AUTHOR: John DiCamillo + SUBSYSTEM: Stars.exe + FILE: ModInfoDlg.cpp + AUTHOR: John DiCamillo - OVERVIEW - ======== - Mod Config Dialog Active Window class + OVERVIEW + ======== + Mod Config Dialog Active Window class */ #include "MemDebug.h" @@ -36,10 +36,10 @@ DEF_MAP_CLIENT(ModInfoDlg, OnAccept); // +--------------------------------------------------------------------+ ModInfoDlg::ModInfoDlg(Screen* s, FormDef& def, BaseScreen* mgr) - : FormWindow(s, 0, 0, s->Width(), s->Height()), manager(mgr), - btn_accept(0), mod_info(0) +: FormWindow(s, 0, 0, s->Width(), s->Height()), manager(mgr), +btn_accept(0), mod_info(0) { - Init(def); + Init(def); } ModInfoDlg::~ModInfoDlg() @@ -51,21 +51,21 @@ ModInfoDlg::~ModInfoDlg() void ModInfoDlg::RegisterControls() { - btn_accept = (Button*) FindControl( 1); + btn_accept = (Button*) FindControl( 1); - if (btn_accept) - REGISTER_CLIENT(EID_CLICK, btn_accept, ModInfoDlg, OnAccept); + if (btn_accept) + REGISTER_CLIENT(EID_CLICK, btn_accept, ModInfoDlg, OnAccept); - lbl_name = FindControl(101); - lbl_desc = FindControl(102); - lbl_copy = FindControl(103); + lbl_name = FindControl(101); + lbl_desc = FindControl(102); + lbl_copy = FindControl(103); - img_logo = (ImageBox*) FindControl(200); + img_logo = (ImageBox*) FindControl(200); - if (img_logo) { - img_logo->GetPicture(bmp_default); - img_logo->SetBlendMode(Video::BLEND_SOLID); - } + if (img_logo) { + img_logo->GetPicture(bmp_default); + img_logo->SetBlendMode(Video::BLEND_SOLID); + } } // +--------------------------------------------------------------------+ @@ -73,7 +73,7 @@ ModInfoDlg::RegisterControls() void ModInfoDlg::Show() { - FormWindow::Show(); + FormWindow::Show(); } // +--------------------------------------------------------------------+ @@ -81,10 +81,10 @@ ModInfoDlg::Show() void ModInfoDlg::ExecFrame() { - if (Keyboard::KeyDown(VK_RETURN)) { - if (btn_accept && btn_accept->IsEnabled()) - OnAccept(0); - } + if (Keyboard::KeyDown(VK_RETURN)) { + if (btn_accept && btn_accept->IsEnabled()) + OnAccept(0); + } } // +--------------------------------------------------------------------+ @@ -92,18 +92,18 @@ ModInfoDlg::ExecFrame() void ModInfoDlg::SetModInfo(ModInfo* info) { - mod_info = info; - - if (mod_info) { - if (lbl_name) lbl_name->SetText(mod_info->Name()); - if (lbl_desc) lbl_desc->SetText(mod_info->Description()); - if (lbl_copy) lbl_copy->SetText(mod_info->Copyright()); - - if (img_logo && mod_info->LogoImage() && mod_info->LogoImage()->Width() > 32) - img_logo->SetPicture(*mod_info->LogoImage()); - else if (img_logo) - img_logo->SetPicture(bmp_default); - } + mod_info = info; + + if (mod_info) { + if (lbl_name) lbl_name->SetText(mod_info->Name()); + if (lbl_desc) lbl_desc->SetText(mod_info->Description()); + if (lbl_copy) lbl_copy->SetText(mod_info->Copyright()); + + if (img_logo && mod_info->LogoImage() && mod_info->LogoImage()->Width() > 32) + img_logo->SetPicture(*mod_info->LogoImage()); + else if (img_logo) + img_logo->SetPicture(bmp_default); + } } // +--------------------------------------------------------------------+ @@ -111,5 +111,5 @@ ModInfoDlg::SetModInfo(ModInfo* info) void ModInfoDlg::OnAccept(AWEvent* event) { - manager->ShowModDlg(); + manager->ShowModDlg(); } -- cgit v1.1