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

Forward options

Fixes #66.
This commit is contained in:
RadRussianRus
2020-07-15 16:47:26 +03:00
parent d2b630bbca
commit 0eeeb18ecd
18 changed files with 988 additions and 55 deletions

View File

@@ -38,6 +38,7 @@ class IndexedList;
namespace Ui {
class MultiSelect;
class InputField;
class DropdownMenu;
struct ScrollToRequest;
template <typename Widget>
class SlideWrap;
@@ -67,7 +68,8 @@ public:
CopyCallback &&copyCallback,
SubmitCallback &&submitCallback,
FilterCallback &&filterCallback,
GoToChatCallback &&goToChatCallback = nullptr);
GoToChatCallback &&goToChatCallback = nullptr,
bool hasMedia = false);
protected:
void prepare() override;
@@ -94,6 +96,8 @@ private:
void applyFilterUpdate(const QString &query);
void selectedChanged();
void createButtons();
bool showMenu(not_null<Ui::IconButton*> button);
void updateAdditionalTitle();
int getTopScrollSkip() const;
int getBottomScrollSkip() const;
int contentHeight() const;
@@ -115,6 +119,8 @@ private:
FilterCallback _filterCallback;
GoToChatCallback _goToChatCallback;
bool _hasMediaMessages = false;
object_ptr<Ui::MultiSelect> _select;
object_ptr<Ui::SlideWrap<Ui::InputField>> _comment;
@@ -136,4 +142,6 @@ private:
Ui::Animations::Simple _scrollAnimation;
base::unique_qptr<Ui::DropdownMenu> _menu;
};