1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 23:49:55 +00:00
openmw-tes3mp/apps/openmw/mwgui/settingswindow.hpp

80 lines
2.5 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();
virtual void onOpen();
2012-08-12 23:26:15 +00:00
void updateControlsBox();
2017-09-23 20:07:30 +00:00
void onResChange(int, int) { center(); }
2014-03-22 18:02:14 +00:00
protected:
MyGUI::TabControl* mSettingsTab;
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* mWindowBorderButton;
MyGUI::ComboBox* mTextureFilteringButton;
MyGUI::Widget* mAnisotropyBox;
MyGUI::ComboBox* mWaterTextureSize;
MyGUI::ComboBox* mWaterReflectionDetail;
2012-08-12 23:26:15 +00:00
// controls
MyGUI::ScrollView* mControlsBox;
MyGUI::Button* mResetControlsButton;
2014-12-09 03:57:32 +00:00
MyGUI::Button* mKeyboardSwitch;
MyGUI::Button* mControllerSwitch;
bool mKeyboardMode; //if true, setting up the keyboard. Otherwise, it's controller
2012-08-12 23:26:15 +00:00
void onTabChanged(MyGUI::TabControl* _sender, size_t index);
void onOkButtonClicked(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();
void highlightCurrentResolution();
2012-05-24 02:34:53 +00:00
void onWaterTextureSizeChanged(MyGUI::ComboBox* _sender, size_t pos);
void onWaterReflectionDetailChanged(MyGUI::ComboBox* _sender, size_t pos);
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 ();
2014-12-09 03:57:32 +00:00
void onKeyboardSwitchClicked(MyGUI::Widget* _sender);
void onControllerSwitchClicked(MyGUI::Widget* _sender);
2012-08-12 23:26:15 +00:00
void onWindowResize(MyGUI::Window* _sender);
2012-05-24 02:34:53 +00:00
void apply();
2014-03-22 18:02:14 +00:00
void configureWidgets(MyGUI::Widget* widget);
void updateSliderLabel(MyGUI::ScrollBar* scroller, const std::string& value);
void layoutControlsBox();
private:
void resetScrollbars();
};
}
#endif