filter_panel.h
Go to the documentation of this file.
1 
28 #ifndef LOG_VIEW_FILTER_PANEL_H_
29 #define LOG_VIEW_FILTER_PANEL_H_
30 
32 #include <log_view/log_filter.h>
33 
34 namespace log_view {
35 
36 class FilterPanel : public PanelInterface {
37  public:
38  FilterPanel(int height, int width, int y, int x, LogFilter& filter) : PanelInterface(height, width, y, x), filter_(filter) {}
39  virtual ~FilterPanel() {}
40  virtual void refresh();
41 
42  protected:
43  virtual bool canFocus() const { return true; }
44  virtual bool canInput() const { return true; }
45  virtual void activate(bool enable);
46  virtual int inputOffset() const { return 8; }
47 
49 };
50 typedef std::shared_ptr<FilterPanel> FilterPanelPtr;
51 
52 } // namespace log_view
53 
54 #endif // LOG_VIEW_FILTER_PANEL_H_
virtual int width() const
virtual bool canFocus() const
Definition: filter_panel.h:43
virtual int inputOffset() const
Definition: filter_panel.h:46
virtual void activate(bool enable)
virtual int y() const
std::shared_ptr< FilterPanel > FilterPanelPtr
Definition: filter_panel.h:50
virtual void refresh()
FilterPanel(int height, int width, int y, int x, LogFilter &filter)
Definition: filter_panel.h:38
virtual int x() const
virtual bool canInput() const
Definition: filter_panel.h:44
virtual int height() const


log_view
Author(s): Marc Alban
autogenerated on Thu Mar 4 2021 03:21:52