mirror-chatterino2/src/widgets/helper/SearchPopup.hpp
2018-06-26 17:06:17 +02:00

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