mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
33 lines
597 B
C++
33 lines
597 B
C++
#pragma once
|
|
|
|
#include "messages/LimitedQueueSnapshot.hpp"
|
|
#include "messages/Message.hpp"
|
|
#include "widgets/BaseWindow.hpp"
|
|
|
|
#include <memory>
|
|
|
|
class QLineEdit;
|
|
|
|
namespace chatterino {
|
|
|
|
class Channel;
|
|
class ChannelView;
|
|
|
|
class SearchPopup : public BaseWindow
|
|
{
|
|
public:
|
|
SearchPopup();
|
|
|
|
void setChannel(std::shared_ptr<Channel> channel);
|
|
|
|
private:
|
|
chatterino::LimitedQueueSnapshot<chatterino::MessagePtr> snapshot;
|
|
QLineEdit *searchInput;
|
|
ChannelView *channelView;
|
|
|
|
void initLayout();
|
|
void performSearch();
|
|
};
|
|
|
|
} // namespace chatterino
|