mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
2237a4a7aa
GraphicsChoice is used by the panes in the Graphics config window to create combo boxes that change their associated config setting, and update their own state when something else changes the config setting. Despite its current name nothing about this class is particular to the Graphics window, so renaming it to ConfigChoice better reflects its purpose. This should also make it less confusing when ConfigChoices are eventually added to the other config windows.
32 lines
638 B
C++
32 lines
638 B
C++
// Copyright 2020 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <QWidget>
|
|
|
|
class ConfigChoice;
|
|
class QCheckBox;
|
|
class QPushButton;
|
|
class ToolTipCheckBox;
|
|
|
|
class FreeLookWidget final : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit FreeLookWidget(QWidget* parent);
|
|
|
|
private:
|
|
void CreateLayout();
|
|
void ConnectWidgets();
|
|
|
|
void OnFreeLookControllerConfigured();
|
|
void LoadSettings();
|
|
void SaveSettings();
|
|
|
|
ToolTipCheckBox* m_enable_freelook;
|
|
ConfigChoice* m_freelook_control_type;
|
|
QPushButton* m_freelook_controller_configure_button;
|
|
QCheckBox* m_freelook_background_input;
|
|
};
|