mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
new photo viewer done, testing, added compressed checkbox in send-from-clipboard
This commit is contained in:
@@ -81,54 +81,3 @@ private:
|
||||
|
||||
BoxShadow shadow;
|
||||
};
|
||||
|
||||
class LayerWidget : public QWidget, public Animated {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
LayerWidget(QWidget *parent, PhotoData *photo, HistoryItem *item);
|
||||
LayerWidget(QWidget *parent, VideoData *video, HistoryItem *item);
|
||||
|
||||
PhotoData *photoShown();
|
||||
|
||||
bool event(QEvent *e);
|
||||
void touchEvent(QTouchEvent *e);
|
||||
void paintEvent(QPaintEvent *e);
|
||||
void keyPressEvent(QKeyEvent *e);
|
||||
void mousePressEvent(QMouseEvent *e);
|
||||
void resizeEvent(QResizeEvent *e);
|
||||
void contextMenuEvent(QContextMenuEvent *e);
|
||||
|
||||
bool animStep(float64 ms);
|
||||
|
||||
~LayerWidget();
|
||||
|
||||
public slots:
|
||||
|
||||
void onTouchTimer();
|
||||
|
||||
void saveContextImage();
|
||||
void copyContextImage();
|
||||
void startHide();
|
||||
|
||||
void deleteMessage();
|
||||
void forwardMessage();
|
||||
|
||||
void onMenuDestroy(QObject *obj);
|
||||
|
||||
private:
|
||||
|
||||
PhotoData *photo;
|
||||
VideoData *video;
|
||||
anim::fvalue aBackground, aOver;
|
||||
anim::ivalue iX, iY, iW;
|
||||
anim::transition iCoordFunc, aBackgroundFunc, aOverFunc;
|
||||
bool hiding;
|
||||
|
||||
bool _touchPress, _touchMove, _touchRightButton;
|
||||
QTimer _touchTimer;
|
||||
QPoint _touchStart;
|
||||
|
||||
QMenu *_menu;
|
||||
};
|
||||
|
Reference in New Issue
Block a user