mirror-chatterino2/src/widgets/helper/SearchPopup.hpp

37 lines
643 B
C++
Raw Normal View History

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