Program Listing for File exclude_panel.h
↰ Return to documentation for file (/tmp/ws/src/log_view/include/log_view/panels/exclude_panel.h
)
#ifndef LOG_VIEW_EXCLUDE_PANEL_H_
#define LOG_VIEW_EXCLUDE_PANEL_H_
#include <log_view/panel_interface.h>
#include <log_view/log_filter.h>
namespace log_view {
class ExcludePanel : public PanelInterface {
public:
ExcludePanel(int height, int width, int y, int x, LogFilter& filter) : PanelInterface(height, width, y, x), filter_(filter) {}
virtual ~ExcludePanel() {}
virtual void refresh();
protected:
virtual bool canFocus() const { return true; }
virtual bool canInput() const { return true; }
virtual void activate(bool enable);
virtual int inputOffset() const { return 9; }
LogFilter& filter_;
};
typedef std::shared_ptr<ExcludePanel> ExcludePanelPtr;
} // namespace log_view
#endif // LOG_VIEW_EXCLUDE_PANEL_H_