2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Moved FloatAnimation->Animation, Animation->BasicAnimation.

This commit is contained in:
John Preston
2016-12-07 16:32:25 +03:00
parent 06ed7b8eaf
commit 47977009b8
90 changed files with 865 additions and 1139 deletions

View File

@@ -86,10 +86,7 @@ protected:
class RadialProgressItem : public ItemBase {
public:
RadialProgressItem(HistoryItem *parent) : ItemBase(parent)
, _radial(0)
, a_iconOver(0, 0)
, _a_iconOver(animation(this, &RadialProgressItem::step_iconOver)) {
RadialProgressItem(HistoryItem *parent) : ItemBase(parent) {
}
RadialProgressItem(const RadialProgressItem &other) = delete;
@@ -111,7 +108,6 @@ protected:
setLinks(MakeShared<DocumentOpenClickHandler>(document), std_::move(save), MakeShared<DocumentCancelClickHandler>(document));
}
void step_iconOver(float64 ms, bool timer);
void step_radial(TimeMs ms, bool timer);
void ensureRadial();
@@ -131,8 +127,7 @@ protected:
return false;
}
Ui::RadialAnimation *_radial;
anim::value a_iconOver;
std_::unique_ptr<Ui::RadialAnimation> _radial;
Animation _a_iconOver;
};