ScummVM API documentation
options.h
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 modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (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, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef _WII_OPTIONS_H_
23#define _WII_OPTIONS_H_
24
25#include "common/str.h"
26#include "common/ustr.h"
27#include "gui/dialog.h"
28#include "gui/widgets/tab.h"
29#include "gui/widgets/edittext.h"
30
31using namespace GUI;
32
33class WiiOptionsDialog final : public GUI::Dialog {
34 typedef Common::String String;
36
37public:
38 WiiOptionsDialog(bool doubleStrike);
39 virtual ~WiiOptionsDialog();
40
41protected:
42 void handleTickle() override;
43 void handleCommand(CommandSender *sender, uint32 cmd, uint32 data) override;
44
45private:
46 bool _doubleStrike;
47 String _strUnderscanX;
48 String _strUnderscanY;
49
50 TabWidget *_tab;
51
52 int _tabVideo;
53 SliderWidget *_sliderUnderscanX;
54 SliderWidget *_sliderUnderscanY;
55
56 int _tabInput;
57 SliderWidget *_sliderPadSensitivity;
58 SliderWidget *_sliderPadAcceleration;
59
60#ifdef USE_WII_DI
61 int _tabDVD;
62 StaticTextWidget *_textDVDStatus;
63#endif
64
65#ifdef USE_WII_SMB
66 int _tabSMB;
67 StaticTextWidget *_textNetworkStatus;
68 StaticTextWidget *_textSMBStatus;
69 EditTextWidget *_editSMBServer;
70 EditTextWidget *_editSMBShare;
71 EditTextWidget *_editSMBUsername;
72 EditTextWidget *_editSMBPassword;
73#endif
74
75 void revert();
76 void load();
77 void save();
78};
79
80#endif
Definition: str.h:59
Definition: ustr.h:57
Definition: object.h:40
Definition: dialog.h:49
Definition: edittext.h:32
Definition: widget.h:461
Definition: widget.h:257
Definition: tab.h:36
Definition: options.h:33