Debian Codegraph @

Source/Core/DolphinQt/TAS/TASSpinBox.h

raw symbols SCIP
1 // Copyright 2023 Dolphin Emulator Project
2 // SPDX-License-Identifier: GPL-2.0-or-later
3
4 #pragma once
5
6 #include <QSpinBox>
7
8 #include "DolphinQt/TAS/TASControlState.h"
9
10 class TASInputWindow;
11
12 class TASSpinBox : public QSpinBox
13 {
14 Q_OBJECT
15 public:
16 explicit TASSpinBox(QWidget* parent = nullptr);
17
18 // Can be called from the CPU thread
19 int GetValue() const;
20 // Must be called from the CPU thread
21 void OnControllerValueChanged(int new_value);
22 QValidator::State validate(QString& input, int& pos) const override;
23 void fixup(QString& input) const override;
24
25 private slots:
26 void OnUIValueChanged(int new_value);
27 void ApplyControllerValueChange();
28
29 private:
30 TASControlState m_state;
31 };