[Replay] Make fast forward speed configurable (#7037)

* [Replay] Make fast forward speed configurable

* fix settings widget

* clamp interval
This commit is contained in:
RickyRister 2026-07-26 15:18:40 -07:00 committed by GitHub
parent ae37762ee1
commit b70f770633
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 102 additions and 7 deletions

View file

@ -14,6 +14,7 @@
#include <QWidget>
#include <libcockatrice/protocol/pb/game_replay.pb.h>
class ReplayQuickSettingsWidget;
class TabGame;
class ReplayManager : public QWidget
@ -35,13 +36,14 @@ private:
QList<int> replayTimeline;
ReplayTimelineWidget *timelineWidget;
QToolButton *replayPlayButton, *replayFastForwardButton;
ReplayQuickSettingsWidget *settingsWidget;
QAction *aReplaySkipForward, *aReplaySkipBackward, *aReplaySkipForwardBig, *aReplaySkipBackwardBig;
private slots:
void replayNextEvent(EventProcessingOptions options);
void replayFinished();
void replayPlayButtonToggled(bool checked);
void replayFastForwardButtonToggled(bool checked);
void updateTimeScaleFactor(bool checked);
void replayRewind();
void refreshShortcuts();
};