2018-01-27 06:35:02 -07:00
|
|
|
// Copyright 2018 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-01-31 04:35:09 -07:00
|
|
|
#include <QWidget>
|
2018-01-27 06:35:02 -07:00
|
|
|
|
2018-02-06 04:10:28 -07:00
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
|
2018-01-31 04:35:09 -07:00
|
|
|
class QDialog;
|
|
|
|
class QString;
|
|
|
|
class QSpinBox;
|
|
|
|
class QCheckBox;
|
|
|
|
class QBoxLayout;
|
|
|
|
class QGroupBox;
|
|
|
|
struct GCPadStatus;
|
2018-01-27 06:35:02 -07:00
|
|
|
|
2018-01-31 04:35:09 -07:00
|
|
|
QGroupBox* CreateStickInputs(QDialog* window, QString name, QSpinBox*& x_value, QSpinBox*& y_value,
|
|
|
|
u16 max_x, u16 max_y, Qt::Key x_shortcut_key, Qt::Key y_shortcut_key);
|
|
|
|
QBoxLayout* CreateSliderValuePairLayout(QDialog* window, QString name, QSpinBox*& value, u16 max,
|
2018-02-06 04:10:28 -07:00
|
|
|
Qt::Key shortcut_key, QWidget* shortcut_widget,
|
|
|
|
bool invert = false);
|
2018-03-04 11:25:24 -07:00
|
|
|
QSpinBox* CreateSliderValuePair(QDialog* window, QBoxLayout* layout, u16 max,
|
|
|
|
QKeySequence shortcut_key_sequence, Qt::Orientation orientation,
|
|
|
|
QWidget* shortcut_widget, bool invert = false);
|