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

Added counter label of characters limit to send files box.

This commit is contained in:
23rd
2024-02-15 09:37:11 +03:00
parent d1eaf284b1
commit 6de471db17
6 changed files with 64 additions and 8 deletions

View File

@@ -50,6 +50,10 @@ namespace SendMenu {
enum class Type;
} // namespace SendMenu
namespace HistoryView::Controls {
class CharactersLimitLabel;
} // namespace HistoryView::Controls
enum class SendFilesAllow {
OnlyOne = (1 << 0),
Photos = (1 << 1),
@@ -221,6 +225,8 @@ private:
void enqueueNextPrepare();
void addPreparedAsyncFile(Ui::PreparedFile &&file);
void checkCharsLimitation();
const std::shared_ptr<ChatHelpers::Show> _show;
const style::ComposeControls &_st;
const Api::SendType _sendType = Api::SendType();
@@ -244,6 +250,8 @@ private:
object_ptr<Ui::EmojiButton> _emojiToggle = { nullptr };
base::unique_qptr<ChatHelpers::TabbedPanel> _emojiPanel;
base::unique_qptr<QObject> _emojiFilter;
using CharactersLimitLabel = HistoryView::Controls::CharactersLimitLabel;
base::unique_qptr<CharactersLimitLabel> _charsLimitation;
object_ptr<Ui::Checkbox> _groupFiles = { nullptr };
object_ptr<Ui::Checkbox> _sendImagesAsPhotos = { nullptr };