mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 20:30:05 +00:00
Starting some timeline manager stubs
This commit is contained in:
parent
e1ec81e230
commit
3bee6f65e5
2 changed files with 123 additions and 0 deletions
|
|
@ -1,5 +1,8 @@
|
|||
#pragma once
|
||||
|
||||
#include <scwx/qt/types/map_types.hpp>
|
||||
|
||||
#include <chrono>
|
||||
#include <memory>
|
||||
|
||||
#include <QObject>
|
||||
|
|
@ -21,6 +24,24 @@ public:
|
|||
|
||||
static std::shared_ptr<TimelineManager> Instance();
|
||||
|
||||
public slots:
|
||||
void SetDateTime(std::chrono::system_clock::time_point dateTime);
|
||||
void SetViewType(types::MapTime viewType);
|
||||
|
||||
void SetLoopTime(std::chrono::minutes loopTime);
|
||||
void SetLoopSpeed(double loopSpeed);
|
||||
|
||||
void AnimationStepBegin();
|
||||
void AnimationStepBack();
|
||||
void AnimationPlay();
|
||||
void AnimationPause();
|
||||
void AnimationStepNext();
|
||||
void AnimationStepEnd();
|
||||
|
||||
signals:
|
||||
void TimeUpdated(std::chrono::system_clock::time_point dateTime);
|
||||
void ViewTypeUpdated(types::MapTime viewType);
|
||||
|
||||
private:
|
||||
class Impl;
|
||||
std::unique_ptr<Impl> p;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue