2019-03-31 02:49:57 +00:00
|
|
|
// Copyright 2019 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QCheckBox>
|
|
|
|
|
|
|
|
class QMouseEvent;
|
2020-06-30 19:07:25 +00:00
|
|
|
class TASInputWindow;
|
2019-03-31 02:49:57 +00:00
|
|
|
|
|
|
|
class TASCheckBox : public QCheckBox
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2020-06-30 19:07:25 +00:00
|
|
|
explicit TASCheckBox(const QString& text, TASInputWindow* parent);
|
2019-03-31 02:49:57 +00:00
|
|
|
|
2020-01-27 02:41:28 +00:00
|
|
|
bool GetValue() const;
|
2019-03-31 02:49:57 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void mousePressEvent(QMouseEvent* event) override;
|
|
|
|
|
|
|
|
private:
|
2020-06-30 19:07:25 +00:00
|
|
|
const TASInputWindow* m_parent;
|
|
|
|
int m_frame_turbo_started;
|
|
|
|
int m_turbo_press_frames;
|
|
|
|
int m_turbo_total_frames;
|
2019-03-31 02:49:57 +00:00
|
|
|
};
|