2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-02 07:35:12 +00:00

animations refactored

This commit is contained in:
John Preston
2015-12-08 15:33:37 +03:00
parent f25fde09b7
commit 0b96dd5362
71 changed files with 1370 additions and 1584 deletions

View File

@@ -27,7 +27,7 @@ class LayeredWidget : public TWidget {
public:
virtual void animStep(float64 ms) {
virtual void showStep(float64 ms) {
}
virtual void parentResized() = 0;
virtual void startHide() {
@@ -57,7 +57,7 @@ signals:
};
class BackgroundWidget : public TWidget, public Animated {
class BackgroundWidget : public TWidget {
Q_OBJECT
public:
@@ -76,7 +76,7 @@ public:
void replaceInner(LayeredWidget *n);
void showLayerLast(LayeredWidget *n);
bool animStep(float64 ms);
void step_background(float64 ms, bool timer);
bool canSetFocus() const;
void setInnerFocus();
@@ -98,8 +98,9 @@ private:
LayeredWidget *w;
typedef QList<LayeredWidget*> HiddenLayers;
HiddenLayers _hidden;
anim::fvalue aBackground;
anim::transition aBackgroundFunc;
anim::fvalue a_bg;
Animation _a_background;
bool hiding;
BoxShadow shadow;
@@ -115,7 +116,7 @@ public:
void paintEvent(QPaintEvent *e);
void resizeEvent(QResizeEvent *e);
bool animStep_shown(float64 ms);
void step_shown(float64 ms, bool timer);
void showPreview(DocumentData *sticker);
void hidePreview();