Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List

DetailsWin.cpp

00001 /*
00002 Copyright 2005 Elliott Kleinrock
00003 
00004 This file is part of FreeStars, a free clone of the Stars! game.
00005 
00006 FreeStars is free software; you can redistribute it and/or modify
00007 it under the terms of the GNU General Public License as published by
00008 the Free Software Foundation; either version 2 of the License, or
00009 (at your option) any later version.
00010 
00011 FreeStars is distributed in the hope that it will be useful,
00012 but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 GNU General Public License for more details.
00015 
00016 You should have received a copy of the GNU General Public License
00017 along with FreeStars; if not, write to the Free Software
00018 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019 
00020 The full GPL Copyright notice should be in the file COPYING.txt
00021 
00022 Contact:
00023 Email Elliott at 9jm0tjj02@sneakemail.com
00024 */
00025 
00026 #include "FSClient.h"
00027 
00028 #include "DetailsWin.h"
00029 
00030 #ifdef _DEBUG
00031 #define new DEBUG_NEW
00032 #endif
00033 
00034 BEGIN_EVENT_TABLE(DetailsWin, wxMiniFrame)
00035 END_EVENT_TABLE()
00036 
00037 DetailsWin::DetailsWin(MainWindow * parent)
00038         : wxMiniFrame(parent, -1, "Details")
00039 {
00040 }
00041 
00042 DetailsWin::~DetailsWin()
00043 {
00044 }
00045 
00046 void DetailsWin::SetLocation(Location * loc)
00047 {
00048         string t;
00049         t = loc->GetName(TheGame->GetCurrentPlayer());
00050         if (!t.empty())
00051                 t = " - " + t;
00052 
00053         t = "Details" + t;
00054         SetTitle(t.c_str());
00055 }

Generated on Mon Aug 8 21:33:42 2005 for Freestars by  doxygen 1.4.2-20050421