00001 // $Id$ 00002 00003 //********************************************************************** 00004 // * 00005 // Description: Window to display version information used as * 00006 // 'splash screen' at start and for 'about' help. * 00007 // * 00008 // Author: Chris White (whitecf@bcs.org.uk) * 00009 // * 00010 // Copyright (C) 20032 Monitor Computing Services Ltd. * 00011 // * 00012 // This program is free software; you can redistribute it and/or * 00013 // modify it under the terms of the GNU General Public License * 00014 // as published by the Free Software Foundation; either version 2 * 00015 // of the License, or any later version. * 00016 // * 00017 // This program is distributed in the hope that it will be useful, * 00018 // but WITHOUT ANY WARRANTY; without even the implied warranty of * 00019 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00020 // GNU General Public License for more details. * 00021 // * 00022 // You should have received a copy of the GNU General Public * 00023 // License (http://www.gnu.org/copyleft/gpl.html) along with this * 00024 // program; if not, write to: * 00025 // The Free Software Foundation Inc., * 00026 // 59 Temple Place - Suite 330, * 00027 // Boston, MA 02111-1307, * 00028 // USA. * 00029 // * 00030 //********************************************************************** 00031 // * 00032 // Notes: * 00033 // * 00034 //********************************************************************** 00035 00036 #include <cstring.h> 00037 00038 #define Uses_TButton 00039 #define Uses_TRect 00040 #define Uses_TStaticText 00041 00042 #include "mytrace.h" 00043 00044 #include "bmsplwin.h" 00045 00046 00047 using namespace Monitor::BellMaster; 00048 00049 00050 00051 SplashWin::SplashWin(const string& versionString) : 00052 TDialog(TRect(0, 0, 51, 11), 0), TWindowInit(&SplashWin::initFrame) 00053 { 00054 _USEMYTRACE_("SplashWin::SplashWin") 00055 00056 options |= ofCentered; 00057 00058 insert( 00059 new TStaticText( 00060 TRect(20, 2, 30, 3), 00061 "Bellmaster")); 00062 insert( 00063 new TStaticText( 00064 TRect(12, 4, 39, 5), 00065 (string("Block Bell simulator v") += versionString).c_str())); 00066 insert( 00067 new TStaticText( 00068 TRect(4, 6, 47, 7), 00069 "(c) Monitor Computing Services Limited 2003")); 00070 insert( 00071 new TButton( 00072 TRect(20, 8, 30, 10), 00073 "~O~K", 00074 cmOK, 00075 bfDefault)); 00076 } 00077