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

#include <node_panel.h>

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

Public Member Functions

virtual bool handleKey (int key)
 
virtual bool handleMouse (const MEVENT &event)
 
 NodePanel (int height, int width, int y, int x, LogFilter &filter)
 
virtual void refresh ()
 
virtual ~NodePanel ()
 
- Public Member Functions inherited from log_view::PanelInterface
virtual bool encloses (int y, int x)
 
virtual bool focus () const
 
virtual void forceRefresh ()
 
virtual bool handleInput (int key)
 
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 canNavigate () const
 
virtual bool canSelect () const
 
virtual void follow (bool enable)
 
virtual int getContentHeight () const
 
virtual size_t getContentSize () const
 
virtual int getContentWidth () const
 
virtual int64_t getCursor () const
 
virtual void moveTo (size_t index)
 
virtual void select ()
 
virtual void setCursor (int64_t cursor)
 
- Protected Member Functions inherited from log_view::PanelInterface
virtual void activate (bool enable)
 
virtual bool canInput () const
 
virtual void drawScrollBar (size_t count, int height, int y, int x)
 
virtual bool following ()
 
virtual int inputOffset () const
 
virtual void move (int step)
 
virtual void pageDown ()
 
virtual void pageUp ()
 
virtual void shift (int cols)
 

Protected Attributes

size_t cursor_ = 0
 
LogFilterfilter_
 
std::string selected_
 
- 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 node_panel.h.

Constructor & Destructor Documentation

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

Definition at line 38 of file node_panel.h.

virtual log_view::NodePanel::~NodePanel ( )
inlinevirtual

Definition at line 39 of file node_panel.h.

Member Function Documentation

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

Reimplemented from log_view::PanelInterface.

Definition at line 45 of file node_panel.h.

virtual bool log_view::NodePanel::canNavigate ( ) const
inlineprotectedvirtual

Reimplemented from log_view::PanelInterface.

Definition at line 46 of file node_panel.h.

virtual bool log_view::NodePanel::canSelect ( ) const
inlineprotectedvirtual

Reimplemented from log_view::PanelInterface.

Definition at line 47 of file node_panel.h.

void log_view::NodePanel::follow ( bool  enable)
protectedvirtual

Reimplemented from log_view::PanelInterface.

Definition at line 185 of file node_panel.cpp.

virtual int log_view::NodePanel::getContentHeight ( ) const
inlineprotectedvirtual

Reimplemented from log_view::PanelInterface.

Definition at line 49 of file node_panel.h.

virtual size_t log_view::NodePanel::getContentSize ( ) const
inlineprotectedvirtual

Reimplemented from log_view::PanelInterface.

Definition at line 48 of file node_panel.h.

int log_view::NodePanel::getContentWidth ( ) const
protectedvirtual

Reimplemented from log_view::PanelInterface.

Definition at line 243 of file node_panel.cpp.

virtual int64_t log_view::NodePanel::getCursor ( ) const
inlineprotectedvirtual

Reimplemented from log_view::PanelInterface.

Definition at line 54 of file node_panel.h.

bool log_view::NodePanel::handleKey ( int  key)
virtual

Reimplemented from log_view::PanelInterface.

Definition at line 131 of file node_panel.cpp.

bool log_view::NodePanel::handleMouse ( const MEVENT &  event)
virtual

Reimplemented from log_view::PanelInterface.

Definition at line 151 of file node_panel.cpp.

void log_view::NodePanel::moveTo ( size_t  index)
protectedvirtual

Reimplemented from log_view::PanelInterface.

Definition at line 193 of file node_panel.cpp.

void log_view::NodePanel::refresh ( )
virtual

Implements log_view::PanelInterface.

Definition at line 32 of file node_panel.cpp.

void log_view::NodePanel::select ( )
protectedvirtual

Reimplemented from log_view::PanelInterface.

Definition at line 251 of file node_panel.cpp.

virtual void log_view::NodePanel::setCursor ( int64_t  cursor)
inlineprotectedvirtual

Reimplemented from log_view::PanelInterface.

Definition at line 53 of file node_panel.h.

Member Data Documentation

size_t log_view::NodePanel::cursor_ = 0
protected

Definition at line 57 of file node_panel.h.

LogFilter& log_view::NodePanel::filter_
protected

Definition at line 60 of file node_panel.h.

std::string log_view::NodePanel::selected_
protected

Definition at line 58 of file node_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