00001 /// \file GASPilotWindow.h 00002 /// \brief GUI Window class for GASPilot 00003 /// \ingroup GASPilot 00004 /// 00005 /// This utility launches games with the various subutilities. 00006 /// 00007 /// Copyright (c) 2007-2008 by Michael Ellison. 00008 /// See COPYING.txt for the \ref gaslicense License (MIT License). 00009 /// 00010 // $Author: mikeellison $ 00011 // $Date: 2008-01-31 06:29:47 -0600 (Thu, 31 Jan 2008) $ 00012 // $Revision: $ 00013 // $NoKeywords: $ 00014 00015 #ifndef GASPilotWindow_H_ 00016 #define GASPilotWindow_H_ 00017 #include "CAT.h" 00018 #include "CATWindow.h" 00019 00020 class GASPilotWindow : public CATWindow 00021 { 00022 public: 00023 GASPilotWindow( const CATString& element, 00024 const CATString& rootDir) 00025 : CATWindow(element,rootDir) 00026 { 00027 } 00028 00029 /// CATWindow destructor 00030 virtual ~GASPilotWindow() 00031 { 00032 } 00033 00034 virtual void OnKeyDown(const CATKeystroke& keystroke) 00035 { 00036 switch (keystroke.GetNormalKey()) 00037 { 00038 case 'S': 00039 this->SetFocusNext(); 00040 break; 00041 case 'W': 00042 this->SetFocusPrev(); 00043 break; 00044 } 00045 } 00046 }; 00047 #endif // GASPilotWindow_H_ 00048