2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +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

@@ -22,7 +22,7 @@ Copyright (c) 2014-2015 John Preston, https://desktop.telegram.org
#include "dropdown.h"
class MediaView : public TWidget, public RPCSender, public Animated {
class MediaView : public TWidget, public RPCSender {
Q_OBJECT
public:
@@ -65,7 +65,7 @@ public:
void updateControls();
void updateDropdown();
bool animStep(float64 dt);
void step_state(uint64 ms, bool timer);
void showSaveMsgFile();
void close();
@@ -184,6 +184,8 @@ private:
QPoint _lastAction, _lastMouseMovePos;
bool _ignoringDropdown;
Animation _a_state;
enum ControlsState {
ControlsShowing,
ControlsShown,