2012-05-22 21:40:42 +02:00
|
|
|
#ifndef MWGUI_SETTINGS_H
|
|
|
|
#define MWGUI_SETTINGS_H
|
|
|
|
|
2013-04-10 00:32:05 -04:00
|
|
|
#include "windowbase.hpp"
|
2012-05-22 21:40:42 +02:00
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
class WindowManager;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
class SettingsWindow : public WindowBase
|
|
|
|
{
|
|
|
|
public:
|
2013-04-10 14:46:21 -04:00
|
|
|
SettingsWindow();
|
2012-05-22 21:40:42 +02:00
|
|
|
|
2012-08-13 01:26:15 +02:00
|
|
|
virtual void open();
|
|
|
|
|
2014-05-26 23:13:37 -04:00
|
|
|
virtual void exit();
|
|
|
|
|
2012-08-13 01:26:15 +02:00
|
|
|
void updateControlsBox();
|
|
|
|
|
2014-03-22 19:02:14 +01:00
|
|
|
protected:
|
2012-05-22 21:40:42 +02:00
|
|
|
MyGUI::Button* mOkButton;
|
2012-05-24 11:50:48 +02:00
|
|
|
|
|
|
|
// graphics
|
2012-05-23 01:32:36 +02:00
|
|
|
MyGUI::ListBox* mResolutionList;
|
2012-05-23 05:28:25 +02:00
|
|
|
MyGUI::Button* mFullscreenButton;
|
2012-05-24 11:50:48 +02:00
|
|
|
MyGUI::Button* mVSyncButton;
|
|
|
|
MyGUI::Button* mFPSButton;
|
2012-05-29 04:54:54 +02:00
|
|
|
MyGUI::ScrollBar* mFOVSlider;
|
|
|
|
MyGUI::ScrollBar* mAnisotropySlider;
|
2013-11-05 19:50:24 +01:00
|
|
|
MyGUI::ComboBox* mTextureFilteringButton;
|
2012-05-29 04:54:54 +02:00
|
|
|
MyGUI::TextBox* mAnisotropyLabel;
|
|
|
|
MyGUI::Widget* mAnisotropyBox;
|
2012-07-11 03:19:51 +02:00
|
|
|
MyGUI::Button* mShadersButton;
|
2013-01-12 06:36:48 +01:00
|
|
|
MyGUI::Button* mShaderModeButton;
|
2013-02-05 14:29:46 +01:00
|
|
|
MyGUI::Button* mRefractionButton;
|
2012-05-22 21:40:42 +02:00
|
|
|
|
2012-07-11 04:28:45 +02:00
|
|
|
MyGUI::Button* mShadowsEnabledButton;
|
2013-11-05 19:50:24 +01:00
|
|
|
MyGUI::ComboBox* mShadowsTextureSize;
|
2012-05-24 04:34:53 +02:00
|
|
|
|
2012-08-13 01:26:15 +02:00
|
|
|
// controls
|
|
|
|
MyGUI::ScrollView* mControlsBox;
|
2012-08-13 02:55:22 +02:00
|
|
|
MyGUI::Button* mResetControlsButton;
|
2012-08-13 01:26:15 +02:00
|
|
|
|
2012-05-22 21:40:42 +02:00
|
|
|
void onOkButtonClicked(MyGUI::Widget* _sender);
|
2012-05-24 11:50:48 +02:00
|
|
|
void onFpsToggled(MyGUI::Widget* _sender);
|
2013-11-05 19:50:24 +01:00
|
|
|
void onTextureFilteringChanged(MyGUI::ComboBox* _sender, size_t pos);
|
2012-05-23 01:32:36 +02:00
|
|
|
void onSliderChangePosition(MyGUI::ScrollBar* scroller, size_t pos);
|
2012-05-23 05:28:25 +02:00
|
|
|
void onButtonToggled(MyGUI::Widget* _sender);
|
|
|
|
void onResolutionSelected(MyGUI::ListBox* _sender, size_t index);
|
|
|
|
void onResolutionAccept();
|
2012-05-28 12:34:29 +02:00
|
|
|
void onResolutionCancel();
|
2012-05-24 04:34:53 +02:00
|
|
|
|
2013-01-12 06:36:48 +01:00
|
|
|
void onShaderModeToggled(MyGUI::Widget* _sender);
|
2013-11-05 19:50:24 +01:00
|
|
|
void onShadowTextureSizeChanged(MyGUI::ComboBox* _sender, size_t pos);
|
2012-07-11 03:19:51 +02:00
|
|
|
|
2012-08-13 01:26:15 +02:00
|
|
|
void onRebindAction(MyGUI::Widget* _sender);
|
2012-08-13 02:55:22 +02:00
|
|
|
void onInputTabMouseWheel(MyGUI::Widget* _sender, int _rel);
|
|
|
|
void onResetDefaultBindings(MyGUI::Widget* _sender);
|
|
|
|
void onResetDefaultBindingsAccept ();
|
2012-08-13 01:26:15 +02:00
|
|
|
|
2012-05-24 04:34:53 +02:00
|
|
|
void apply();
|
2014-03-22 19:02:14 +01:00
|
|
|
|
|
|
|
void configureWidgets(MyGUI::Widget* widget);
|
2012-05-22 21:40:42 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|