Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
log_view::SearchPanel Class Reference

#include <search_panel.h>

Inheritance diagram for log_view::SearchPanel:
Inheritance graph
[legend]

Public Member Functions

virtual void clearSearch ()
 
virtual bool handleInput (int val)
 
virtual void refresh ()
 
 SearchPanel (int height, int width, int y, int x, LogFilter &filter)
 
virtual void toggle ()
 
virtual ~SearchPanel ()
 
- Public Member Functions inherited from log_view::PanelInterface
virtual bool encloses (int y, int x)
 
virtual bool focus () const
 
virtual void forceRefresh ()
 
virtual bool handleKey (int key)
 
virtual bool handleMouse (const MEVENT &event)
 
virtual bool handleNavigation (int key)
 
virtual int height () const
 
virtual bool hidden () const
 
virtual void hide (bool enable)
 
 PanelInterface (int height, int width, int y, int x)
 
virtual void resize (int height, int width, int y, int x)
 
virtual bool scrollbar () const
 
virtual bool setCursor ()
 
virtual bool setFocus (bool enable)
 
virtual void toTop ()
 
virtual bool visible () const
 
virtual int width () const
 
virtual int x () const
 
virtual int y () const
 
virtual ~PanelInterface ()
 

Protected Member Functions

virtual bool canFocus () const
 
virtual bool canInput () const
 
virtual int inputOffset () const
 
- Protected Member Functions inherited from log_view::PanelInterface
virtual void activate (bool enable)
 
virtual bool canNavigate () const
 
virtual bool canSelect () const
 
virtual void drawScrollBar (size_t count, int height, int y, int x)
 
virtual void follow (bool enable)
 
virtual bool following ()
 
virtual int getContentHeight () const
 
virtual size_t getContentSize () const
 
virtual int getContentWidth () const
 
virtual int64_t getCursor () const
 
virtual void move (int step)
 
virtual void moveTo (size_t index)
 
virtual void pageDown ()
 
virtual void pageUp ()
 
virtual void select ()
 
virtual void setCursor (int64_t cursor)
 
virtual void shift (int cols)
 

Protected Attributes

LogFilterfilter_
 
bool show_results_ = false
 
- Protected Attributes inherited from log_view::PanelInterface
bool cleared_ = false
 
bool focus_ = false
 
bool follow_ = true
 
int height_
 
bool hidden_ = false
 
int input_loc_ = -1
 
std::string input_text_
 
size_t last_content_size_ = 0
 
int64_t last_cursor_ = 0
 
size_t max_length_ = 0
 
PANEL * panel_ = nullptr
 
int shift_ = 0
 
int width_
 
WINDOW * window_ = nullptr
 
int x_
 
int y_
 

Detailed Description

Definition at line 36 of file search_panel.h.

Constructor & Destructor Documentation

log_view::SearchPanel::SearchPanel ( int  height,
int  width,
int  y,
int  x,
LogFilter filter 
)
inline

Definition at line 38 of file search_panel.h.

virtual log_view::SearchPanel::~SearchPanel ( )
inlinevirtual

Definition at line 39 of file search_panel.h.

Member Function Documentation

virtual bool log_view::SearchPanel::canFocus ( ) const
inlineprotectedvirtual

Reimplemented from log_view::PanelInterface.

Definition at line 47 of file search_panel.h.

virtual bool log_view::SearchPanel::canInput ( ) const
inlineprotectedvirtual

Reimplemented from log_view::PanelInterface.

Definition at line 48 of file search_panel.h.

void log_view::SearchPanel::clearSearch ( )
virtual

Definition at line 76 of file search_panel.cpp.

bool log_view::SearchPanel::handleInput ( int  val)
virtual

Reimplemented from log_view::PanelInterface.

Definition at line 52 of file search_panel.cpp.

virtual int log_view::SearchPanel::inputOffset ( ) const
inlineprotectedvirtual

Reimplemented from log_view::PanelInterface.

Definition at line 49 of file search_panel.h.

void log_view::SearchPanel::refresh ( )
virtual

Implements log_view::PanelInterface.

Definition at line 32 of file search_panel.cpp.

void log_view::SearchPanel::toggle ( )
virtual

Definition at line 86 of file search_panel.cpp.

Member Data Documentation

LogFilter& log_view::SearchPanel::filter_
protected

Definition at line 51 of file search_panel.h.

bool log_view::SearchPanel::show_results_ = false
protected

Definition at line 53 of file search_panel.h.


The documentation for this class was generated from the following files:


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