1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00
OpenMW/apps/openmw/mwgui/settingswindow.hpp

72 lines
2.1 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-13 01:26:15 +02:00
virtual void open();
virtual void exit();
2012-08-13 01:26:15 +02:00
void updateControlsBox();
2014-03-22 19:02:14 +01:00
protected:
MyGUI::Button* mOkButton;
// graphics
2012-05-23 01:32:36 +02:00
MyGUI::ListBox* mResolutionList;
2012-05-23 05:28:25 +02:00
MyGUI::Button* mFullscreenButton;
MyGUI::Button* mVSyncButton;
MyGUI::Button* mFPSButton;
MyGUI::ScrollBar* mFOVSlider;
MyGUI::ScrollBar* mAnisotropySlider;
MyGUI::ComboBox* mTextureFilteringButton;
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;
MyGUI::Button* mRefractionButton;
2012-07-11 04:28:45 +02:00
MyGUI::Button* mShadowsEnabledButton;
MyGUI::ComboBox* mShadowsTextureSize;
2012-05-24 04:34:53 +02:00
2012-08-13 01:26:15 +02:00
// controls
MyGUI::ScrollView* mControlsBox;
MyGUI::Button* mResetControlsButton;
2012-08-13 01:26:15 +02:00
void onOkButtonClicked(MyGUI::Widget* _sender);
void onFpsToggled(MyGUI::Widget* _sender);
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);
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);
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);
};
}
#endif