2007-05-30 21:56:52 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
2006-07-09 11:47:17 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*
|
|
|
|
*/
|
2008-11-15 15:49:22 +00:00
|
|
|
|
2006-07-09 11:47:17 +00:00
|
|
|
#ifndef _DSOPTIONS_H_
|
|
|
|
#define _DSOPTIONS_H_
|
|
|
|
|
|
|
|
|
|
|
|
#include "common/scummsys.h"
|
|
|
|
#include "common/str.h"
|
2008-11-15 15:49:22 +00:00
|
|
|
#include "common/config-manager.h"
|
2006-07-09 11:47:17 +00:00
|
|
|
|
|
|
|
#include "gui/object.h"
|
|
|
|
#include "gui/widget.h"
|
|
|
|
#include "gui/dialog.h"
|
2008-09-15 22:43:20 +00:00
|
|
|
#include "gui/TabWidget.h"
|
2006-07-09 11:47:17 +00:00
|
|
|
#include "scumm/dialogs.h"
|
|
|
|
|
|
|
|
namespace DS {
|
|
|
|
|
|
|
|
class DSOptionsDialog : public GUI::Dialog {
|
|
|
|
|
|
|
|
public:
|
|
|
|
DSOptionsDialog();
|
|
|
|
~DSOptionsDialog();
|
2008-11-15 15:49:22 +00:00
|
|
|
|
2006-07-09 11:47:17 +00:00
|
|
|
protected:
|
|
|
|
virtual void handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 data);
|
2007-12-21 18:36:40 +00:00
|
|
|
void updateConfigManager();
|
2006-07-09 11:47:17 +00:00
|
|
|
|
2008-09-15 22:43:20 +00:00
|
|
|
GUI::TabWidget* _tab;
|
|
|
|
|
|
|
|
GUI::StaticTextWidget* _sensitivityLabel;
|
|
|
|
|
2006-07-09 11:47:17 +00:00
|
|
|
GUI::SliderWidget* _touchX;
|
|
|
|
GUI::SliderWidget* _touchY;
|
2008-09-15 22:43:20 +00:00
|
|
|
GUI::SliderWidget* _sensitivity;
|
2009-09-27 22:42:21 +00:00
|
|
|
GUI::SliderWidget* _gammaCorrection;
|
2006-07-09 11:47:17 +00:00
|
|
|
GUI::CheckboxWidget* _leftHandedCheckbox;
|
|
|
|
GUI::CheckboxWidget* _unscaledCheckbox;
|
2008-09-15 22:43:20 +00:00
|
|
|
GUI::CheckboxWidget* _100PercentCheckbox;
|
|
|
|
GUI::CheckboxWidget* _150PercentCheckbox;
|
|
|
|
GUI::CheckboxWidget* _200PercentCheckbox;
|
2006-07-09 11:47:17 +00:00
|
|
|
GUI::CheckboxWidget* _indyFightCheckbox;
|
2006-11-03 23:16:29 +00:00
|
|
|
GUI::CheckboxWidget* _highQualityAudioCheckbox;
|
|
|
|
GUI::CheckboxWidget* _disablePowerOff;
|
2007-06-30 23:03:03 +00:00
|
|
|
GUI::CheckboxWidget* _showCursorCheckbox;
|
2007-10-13 15:40:11 +00:00
|
|
|
GUI::CheckboxWidget* _snapToBorderCheckbox;
|
2008-01-27 19:47:41 +00:00
|
|
|
|
2008-05-15 22:12:51 +00:00
|
|
|
GUI::CheckboxWidget* _hardScaler;
|
|
|
|
GUI::CheckboxWidget* _cpuScaler;
|
2008-11-15 15:49:22 +00:00
|
|
|
|
2008-09-15 22:43:20 +00:00
|
|
|
GUI::CheckboxWidget* _touchPadStyle;
|
|
|
|
GUI::CheckboxWidget* _screenTaps;
|
|
|
|
|
2008-05-15 22:12:51 +00:00
|
|
|
bool _radioButtonMode;
|
|
|
|
|
2006-07-09 11:47:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern void showOptionsDialog();
|
|
|
|
extern void setOptions();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|