level_panel.h
Go to the documentation of this file.
1 
28 #ifndef LOG_VIEW_LEVEL_PANEL_H_
29 #define LOG_VIEW_LEVEL_PANEL_H_
30 
31 #include <log_view/log_filter.h>
33 
34 namespace log_view {
35 
36 class LevelPanel : public PanelInterface {
37  public:
38  LevelPanel(int height, int width, int y, int x, LogFilter& filter) : PanelInterface(height, width, y, x), filter_(filter) {}
39  virtual ~LevelPanel() {}
40  virtual void refresh();
41 
42  virtual void toggleDebug();
43  virtual void toggleInfo();
44  virtual void toggleWarn() ;
45  virtual void toggleError();
46  virtual void toggleFatal();
47  virtual void toggleAllNodes();
48  virtual bool handleMouse(const MEVENT& event);
49 
50  protected:
52 };
53 typedef std::shared_ptr<LevelPanel> LevelPanelPtr;
54 
55 } // namespace log_view
56 
57 #endif // LOG_VIEW_LEVEL_PANEL_H_
std::shared_ptr< LevelPanel > LevelPanelPtr
Definition: level_panel.h:53
virtual int width() const
virtual void toggleError()
virtual ~LevelPanel()
Definition: level_panel.h:39
virtual int y() const
virtual void refresh()
Definition: level_panel.cpp:32
virtual void toggleWarn()
virtual void toggleFatal()
virtual void toggleAllNodes()
LogFilter & filter_
Definition: level_panel.h:51
virtual int x() const
virtual void toggleInfo()
Definition: level_panel.cpp:97
LevelPanel(int height, int width, int y, int x, LogFilter &filter)
Definition: level_panel.h:38
virtual bool handleMouse(const MEVENT &event)
Definition: level_panel.cpp:64
virtual void toggleDebug()
Definition: level_panel.cpp:92
virtual int height() const


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