Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

ScreenOptionsMaster.h

Go to the documentation of this file.
00001 #ifndef SCREEN_OPTIONS_MASTER_H 00002 #define SCREEN_OPTIONS_MASTER_H 00003 00004 #include "ScreenOptions.h" 00005 #include "GameCommand.h" 00006 00007 struct ConfOption; 00008 00009 class ScreenOptionsMaster: public ScreenOptions 00010 { 00011 public: 00012 ScreenOptionsMaster( CString sName ); 00013 virtual ~ScreenOptionsMaster(); 00014 00015 private: 00016 00017 enum OptionRowType 00018 { 00019 ROW_LIST, /* list of custom settings */ 00020 ROW_STEP, /* list of steps for the current song or course */ 00021 ROW_CHARACTER, /* list of characters */ 00022 ROW_CONFIG, /* global pref */ 00023 NUM_OPTION_ROW_TYPES 00024 }; 00025 00026 struct OptionRowHandler 00027 { 00028 OptionRowHandler() { opt = NULL; } 00029 00030 OptionRowType type; 00031 00032 /* ROW_LIST: */ 00033 vector<GameCommand> ListEntries; 00034 GameCommand Default; 00035 00036 /* ROW_CONFIG: */ 00037 const ConfOption *opt; 00038 }; 00039 00040 CString m_sNextScreen; 00041 00042 vector<OptionRowHandler> OptionRowHandlers; 00043 OptionRowData *m_OptionRowAlloc; 00044 00045 int ExportOption( const OptionRowData &row, const OptionRowHandler &hand, PlayerNumber pn, const vector<bool> &vbSelected ); 00046 void ImportOption( const OptionRowData &row, const OptionRowHandler &hand, PlayerNumber pn, int rowno, vector<bool> &vbSelectedOut ); 00047 void SetList( OptionRowData &row, OptionRowHandler &hand, CString param ); 00048 void SetStep( OptionRowData &row, OptionRowHandler &hand ); 00049 void SetConf( OptionRowData &row, OptionRowHandler &hand, CString param ); 00050 void SetCharacter( OptionRowData &row, OptionRowHandler &hand ); 00051 00052 protected: 00053 virtual void ImportOptions(); 00054 virtual void ExportOptions(); 00055 virtual void ImportOptionsForPlayer( PlayerNumber pn ); // used by ScreenPlayerOptions 00056 00057 virtual void GoToNextScreen(); 00058 virtual void GoToPrevScreen(); 00059 00060 virtual void RefreshIcons(); 00061 }; 00062 00063 #endif 00064 00065 /* 00066 * (c) 2003-2004 Glenn Maynard 00067 * All rights reserved. 00068 * 00069 * Permission is hereby granted, free of charge, to any person obtaining a 00070 * copy of this software and associated documentation files (the 00071 * "Software"), to deal in the Software without restriction, including 00072 * without limitation the rights to use, copy, modify, merge, publish, 00073 * distribute, and/or sell copies of the Software, and to permit persons to 00074 * whom the Software is furnished to do so, provided that the above 00075 * copyright notice(s) and this permission notice appear in all copies of 00076 * the Software and that both the above copyright notice(s) and this 00077 * permission notice appear in supporting documentation. 00078 * 00079 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00080 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00081 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00082 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00083 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00084 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00085 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00086 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00087 * PERFORMANCE OF THIS SOFTWARE. 00088 */

Generated on Thu Jan 27 20:57:32 2005 for StepMania by doxygen 1.3.7