mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
39 lines
703 B
C++
39 lines
703 B
C++
#pragma once
|
|
|
|
#include "messages/LimitedQueueSnapshot.hpp"
|
|
#include "widgets/BaseWindow.hpp"
|
|
|
|
#include <memory>
|
|
|
|
class QLineEdit;
|
|
|
|
namespace chatterino {
|
|
|
|
class Channel;
|
|
class ChannelView;
|
|
|
|
struct Message;
|
|
using MessagePtr = std::shared_ptr<const Message>;
|
|
|
|
class SearchPopup : public BaseWindow
|
|
{
|
|
public:
|
|
SearchPopup();
|
|
|
|
void setChannel(std::shared_ptr<Channel> channel);
|
|
|
|
protected:
|
|
void keyPressEvent(QKeyEvent *e) override;
|
|
|
|
private:
|
|
void initLayout();
|
|
void performSearch();
|
|
|
|
LimitedQueueSnapshot<MessagePtr> snapshot_;
|
|
QLineEdit *searchInput_;
|
|
ChannelView *channelView_;
|
|
QString channelName_;
|
|
};
|
|
|
|
} // namespace chatterino
|