#pragma once #include "messages/LimitedQueueSnapshot.hpp" #include "widgets/BaseWindow.hpp" #include class QLineEdit; namespace chatterino { class Channel; class ChannelView; struct Message; using MessagePtr = std::shared_ptr; class SearchPopup : public BaseWindow { public: SearchPopup(); void setChannel(std::shared_ptr channel); protected: void keyPressEvent(QKeyEvent *e) override; private: void initLayout(); void performSearch(); LimitedQueueSnapshot snapshot_; QLineEdit *searchInput_; ChannelView *channelView_; }; } // namespace chatterino