2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

media overview multiple selection done, fixed search result delete crash

This commit is contained in:
John Preston
2014-08-21 16:18:56 +04:00
parent db7fa9ba2f
commit 8a817eb204
13 changed files with 267 additions and 83 deletions

View File

@@ -50,6 +50,8 @@ public:
void showAll();
void showSelected(uint32 selCount);
FlatButton *mediaTypeButton();
public slots:
void onForwardSelection();
@@ -81,6 +83,7 @@ private:
FlatButton _clearSelection;
FlatButton _forward, _delete;
FlatButton _edit, _leaveGroup, _addContact, _deleteContact;
FlatButton _mediaType;
};
@@ -204,8 +207,9 @@ public:
PeerData *activePeer();
MsgId activeMsgId();
PeerData *profilePeer();
void showPeerProfile(const PeerData *peer, bool back = false, int32 lastScrollTop = -1, bool allMediaShown = false);
void showMediaOverview(const PeerData *peer, MediaOverviewType type, bool back = false, int32 lastScrollTop = -1);
bool mediaTypeSwitch();
void showPeerProfile(PeerData *peer, bool back = false, int32 lastScrollTop = -1, bool allMediaShown = false);
void showMediaOverview(PeerData *peer, MediaOverviewType type, bool back = false, int32 lastScrollTop = -1);
void showBackFromStack();
QRect historyRect() const;
@@ -316,6 +320,11 @@ public slots:
void onUpdateNotifySettings();
void onPhotosSelect();
void onVideosSelect();
void onDocumentsSelect();
void onAudiosSelect();
private:
void partWasRead(PeerData *peer, const MTPmessages_AffectedHistory &result);
@@ -360,6 +369,9 @@ private:
StackItems _stack;
QPixmap profileAnimCache;
Dropdown _mediaType;
int32 _mediaTypeMask;
int updPts, updDate, updQts, updSeq;
bool updInited;
QTimer noUpdatesTimer;