exclude_panel.h
Go to the documentation of this file.
1 
28 #ifndef LOG_VIEW_EXCLUDE_PANEL_H_
29 #define LOG_VIEW_EXCLUDE_PANEL_H_
30 
32 #include <log_view/log_filter.h>
33 
34 namespace log_view {
35 
36 class ExcludePanel : public PanelInterface {
37  public:
38  ExcludePanel(int height, int width, int y, int x, LogFilter& filter) : PanelInterface(height, width, y, x), filter_(filter) {}
39  virtual ~ExcludePanel() {}
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 9; }
47 
49 };
50 typedef std::shared_ptr<ExcludePanel> ExcludePanelPtr;
51 
52 } // namespace log_view
53 
54 #endif // LOG_VIEW_EXCLUDE_PANEL_H_
log_filter.h
log_view::ExcludePanel
Definition: exclude_panel.h:36
log_view::ExcludePanel::canInput
virtual bool canInput() const
Definition: exclude_panel.h:44
log_view::ExcludePanelPtr
std::shared_ptr< ExcludePanel > ExcludePanelPtr
Definition: exclude_panel.h:50
log_view
Definition: datatypes.h:35
log_view::ExcludePanel::activate
virtual void activate(bool enable)
Definition: exclude_panel.cpp:36
log_view::PanelInterface::y
virtual int y() const
Definition: panel_interface.cpp:270
log_view::PanelInterface
Definition: panel_interface.h:41
log_view::ExcludePanel::ExcludePanel
ExcludePanel(int height, int width, int y, int x, LogFilter &filter)
Definition: exclude_panel.h:38
log_view::PanelInterface::height
virtual int height() const
Definition: panel_interface.cpp:278
log_view::ExcludePanel::filter_
LogFilter & filter_
Definition: exclude_panel.h:48
log_view::ExcludePanel::~ExcludePanel
virtual ~ExcludePanel()
Definition: exclude_panel.h:39
log_view::PanelInterface::width
virtual int width() const
Definition: panel_interface.cpp:274
log_view::LogFilter
Definition: log_filter.h:41
log_view::ExcludePanel::refresh
virtual void refresh()
Definition: exclude_panel.cpp:32
log_view::PanelInterface::x
virtual int x() const
Definition: panel_interface.cpp:266
log_view::ExcludePanel::inputOffset
virtual int inputOffset() const
Definition: exclude_panel.h:46
log_view::ExcludePanel::canFocus
virtual bool canFocus() const
Definition: exclude_panel.h:43
panel_interface.h


log_view
Author(s): Marc Alban
autogenerated on Sat Sep 17 2022 02:22:53