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

Display top bar in archive.

This commit is contained in:
John Preston
2019-04-24 18:12:35 +04:00
parent f56df0e1d9
commit 52b9212625
10 changed files with 189 additions and 133 deletions

View File

@@ -15,6 +15,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
class AuthSession;
namespace HistoryView {
class TopBarWidget;
} // namespace HistoryView
namespace Ui {
class IconButton;
class PopupMenu;
@@ -50,6 +54,7 @@ public:
void updateDragInScroll(bool inScroll);
void searchInChat(Key chat);
void setInnerFocus();
void refreshDialog(Key key);
void removeDialog(Key key);
@@ -88,7 +93,6 @@ public slots:
void onCancel();
void onListScroll();
void activate();
bool onCancelSearch();
void onCancelSearchInChat();
@@ -142,6 +146,7 @@ private:
void updateJumpToDateVisibility(bool fast = false);
void updateSearchFromVisibility(bool fast = false);
void updateControlsGeometry();
void refreshFolderTopBar();
void updateForwardBar();
void checkUpdateStatus();
void changeOpenedFolder(Data::Folder *folder, anim::type animated);
@@ -167,6 +172,7 @@ private:
object_ptr<Ui::IconButton> _forwardCancel = { nullptr };
object_ptr<Ui::RpWidget> _searchControls;
object_ptr<HistoryView::TopBarWidget> _folderTopBar = { nullptr } ;
object_ptr<Ui::IconButton> _mainMenuToggle;
object_ptr<Ui::FlatInput> _filter;
object_ptr<Ui::FadeWrapScaled<Ui::IconButton>> _chooseFromUser;