1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-05 15:55:45 +00:00
OpenMW/apps/openmw/mwgui/settingswindow.hpp

73 lines
2.2 KiB
C++
Raw Normal View History

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