Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
replay_widget.h
Go to the documentation of this file.
1
7
8#ifndef REPLAY_WIDGET_H
9#define REPLAY_WIDGET_H
10
12
13#include <QToolButton>
14#include <QWidget>
15#include <libcockatrice/protocol/pb/game_replay.pb.h>
16
17class ReplayManager;
19class TabGame;
20
25class ReplayWidget : public QWidget
26{
27 Q_OBJECT
28
29public:
34 ReplayWidget(QWidget *parent, GameReplay *replay);
35
36signals:
37 void rewound();
38 void eventReplayed(const GameEventContainer &cont, EventProcessingOptions options);
39
40private:
42
47
48private slots:
49 void replayFinished();
50 void replayPlayButtonToggled(bool checked);
51 void updateTimeScaleFactor(bool checked);
52 void refreshShortcuts();
53};
54
55#endif // REPLAY_WIDGET_H
This class handles all logic to do with playing back replays.
Definition replay_manager.h:16
Definition replay_quick_settings_widget.h:11
Definition replay_timeline_widget.h:19
ReplayWidget(QWidget *parent, GameReplay *replay)
Definition replay_widget.cpp:12
QAction * aReplaySkipForwardBig
Definition replay_widget.h:46
QAction * aReplaySkipBackwardBig
Definition replay_widget.h:46
void eventReplayed(const GameEventContainer &cont, EventProcessingOptions options)
ReplayQuickSettingsWidget * settingsWidget
Definition replay_widget.h:45
QAction * aReplaySkipForward
Definition replay_widget.h:46
QToolButton * replayPlayButton
Definition replay_widget.h:44
QAction * aReplaySkipBackward
Definition replay_widget.h:46
QToolButton * replayFastForwardButton
Definition replay_widget.h:44
void updateTimeScaleFactor(bool checked)
Definition replay_widget.cpp:103
void replayFinished()
Definition replay_widget.cpp:89
ReplayManager * replayManager
Definition replay_widget.h:41
void rewound()
void replayPlayButtonToggled(bool checked)
Definition replay_widget.cpp:94
ReplayTimelineWidget * timelineWidget
Definition replay_widget.h:43
void refreshShortcuts()
Definition replay_widget.cpp:109
Definition tab_game.h:59
Definition game_event_container.proto:4
Definition game_replay.proto:4