DolphinQt: Improve TAS UI Widgets
Made Stick and IR Widgets bigger Improved Stick and IR layouts to better utilize space Made Stick and IR Widgets Scale at a fixed ratio when window is resized Added Scrollbars to Stick and IR Widgets Reduced Spinbox padding in dark style
This commit is contained in:
1 parent
f898d75bf3
commit
d09436cd1a
12 files changed
+148
-79
No files matched your search
@@ -15,13 +15,15 @@
|
||||
#include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h"
|
||||
#include "InputCommon/ControllerInterface/CoreDevice.h"
|
||||
|
||||
class QBoxLayout;
|
||||
class QCheckBox;
|
||||
class QDialog;
|
||||
class QEvent;
|
||||
class QGridLayout;
|
||||
class QGroupBox;
|
||||
class QLayout;
|
||||
class QSpinBox;
|
||||
class QString;
|
||||
class QWidget;
|
||||
class TASCheckBox;
|
||||
class TASSpinBox;
|
||||
|
||||
@@ -54,23 +56,26 @@ protected:
|
||||
QGroupBox* CreateStickInputs(const QString& text, std::string_view group_name,
|
||||
InputOverrider* overrider, int min_x, int min_y, int max_x,
|
||||
int max_y, Qt::Key x_shortcut_key, Qt::Key y_shortcut_key);
|
||||
QBoxLayout* CreateSliderValuePairLayout(const QString& text, std::string_view group_name,
|
||||
std::string_view control_name, InputOverrider* overrider,
|
||||
int zero, int default_, int min, int max,
|
||||
Qt::Key shortcut_key, QWidget* shortcut_widget,
|
||||
std::optional<ControlState> scale = {});
|
||||
QGridLayout* CreateSliderValuePairLayout(const QString& text, std::string_view group_name,
|
||||
std::string_view control_name, InputOverrider* overrider,
|
||||
int zero, int default_, int min, int max,
|
||||
Qt::Key shortcut_key, QWidget* shortcut_widget,
|
||||
std::optional<ControlState> scale = {});
|
||||
TASSpinBox* CreateSliderValuePair(std::string_view group_name, std::string_view control_name,
|
||||
InputOverrider* overrider, QBoxLayout* layout, int zero,
|
||||
InputOverrider* overrider, QGridLayout* layout, int zero,
|
||||
int default_, int min, int max,
|
||||
QKeySequence shortcut_key_sequence, Qt::Orientation orientation,
|
||||
QWidget* shortcut_widget,
|
||||
std::optional<ControlState> scale = {});
|
||||
TASSpinBox* CreateSliderValuePair(QBoxLayout* layout, int default_, int max,
|
||||
TASSpinBox* CreateSliderValuePair(QGridLayout* layout, int default_, int max,
|
||||
QKeySequence shortcut_key_sequence, Qt::Orientation orientation,
|
||||
QWidget* shortcut_widget);
|
||||
|
||||
void SetupScrollArea(QLayout* layout);
|
||||
|
||||
void changeEvent(QEvent* event) override;
|
||||
|
||||
QWidget* m_scroll_widget;
|
||||
QGroupBox* m_settings_box;
|
||||
QCheckBox* m_use_controller;
|
||||
QSpinBox* m_turbo_press_frames;
|
||||
|
||||
Reference in new issue
Block a user