2018-01-05 13:42:23 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#include "messages/limitedqueuesnapshot.hpp"
|
|
|
|
#include "messages/message.hpp"
|
|
|
|
#include "widgets/basewidget.hpp"
|
|
|
|
|
|
|
|
class QLineEdit;
|
|
|
|
namespace chatterino {
|
|
|
|
class Channel;
|
|
|
|
namespace widgets {
|
|
|
|
class ChannelView;
|
|
|
|
|
|
|
|
class SearchPopup : public BaseWidget
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SearchPopup();
|
|
|
|
|
|
|
|
void setChannel(std::shared_ptr<Channel> channel);
|
|
|
|
|
|
|
|
private:
|
2018-01-11 20:16:25 +01:00
|
|
|
messages::LimitedQueueSnapshot<messages::MessagePtr> snapshot;
|
2018-01-05 13:42:23 +01:00
|
|
|
QLineEdit *searchInput;
|
|
|
|
ChannelView *channelView;
|
|
|
|
|
|
|
|
void initLayout();
|
|
|
|
void performSearch();
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|