1 /* ScummVM - Graphic Adventure Engine 2 * 3 * ScummVM is the legal property of its developers, whose names 4 * are too numerous to list here. Please refer to the COPYRIGHT 5 * file distributed with this source distribution. 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 */ 22 23 #ifndef _WII_OPTIONS_H_ 24 #define _WII_OPTIONS_H_ 25 26 #include "common/str.h" 27 #include "gui/dialog.h" 28 #include "gui/widgets/tab.h" 29 #include "gui/widgets/edittext.h" 30 31 using namespace GUI; 32 33 class WiiOptionsDialog: public GUI::Dialog { 34 typedef Common::String String; 35 36 public: 37 WiiOptionsDialog(bool doubleStrike); 38 virtual ~WiiOptionsDialog(); 39 40 protected: 41 virtual void handleTickle(); 42 virtual void handleCommand(CommandSender *sender, uint32 cmd, uint32 data); 43 44 private: 45 bool _doubleStrike; 46 String _strUnderscanX; 47 String _strUnderscanY; 48 49 TabWidget *_tab; 50 51 int _tabVideo; 52 SliderWidget *_sliderUnderscanX; 53 SliderWidget *_sliderUnderscanY; 54 55 int _tabInput; 56 SliderWidget *_sliderPadSensitivity; 57 SliderWidget *_sliderPadAcceleration; 58 59 #ifdef USE_WII_DI 60 int _tabDVD; 61 StaticTextWidget *_textDVDStatus; 62 #endif 63 64 #ifdef USE_WII_SMB 65 int _tabSMB; 66 StaticTextWidget *_textNetworkStatus; 67 StaticTextWidget *_textSMBStatus; 68 EditTextWidget *_editSMBServer; 69 EditTextWidget *_editSMBShare; 70 EditTextWidget *_editSMBUsername; 71 EditTextWidget *_editSMBPassword; 72 #endif 73 74 void revert(); 75 void load(); 76 void save(); 77 }; 78 79 #endif 80