// This is the source code of AyuGram for Desktop. // // We do not and cannot prevent the use of our code, // but be respectful and credit the original author. // // Copyright @Radolyn, 2025 #pragma once #include "ui/layers/generic_box.h" #include "ui/widgets/scroll_area.h" #include "ui/wrap/vertical_layout.h" namespace Ui { class RoundButton; class InputField; } // namespace Ui namespace Window { class SessionController; } // namespace Window class History; class HistoryItem; class PeerData; namespace AyuUi { struct LocalMessageData; class LocalMessagesManager { public: LocalMessagesManager( not_null box, not_null controller, not_null history); private: void setupContent(); void setupHeader(); void setupMessagesList(); void setupButtons(); void refreshMessagesList(); void addMessageRow(not_null item); void editMessage(not_null item); void deleteMessage(not_null item); void createNewMessage(); const not_null _box; const not_null _controller; const not_null _history; not_null _scroll; not_null _content; Ui::InputField* _searchField = nullptr; std::vector> _localMessages; }; void LocalMessagesManagerBox( not_null box, not_null controller, not_null history); } // namespace AyuUi