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

#include <log_panel.h>

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

Public Member Functions

virtual void endSelect (int row)
 
virtual bool handleKey (int key)
 
virtual bool handleMouse (const MEVENT &event)
 
 LogPanel (int height, int width, int y, int x, LogStorePtr &logs, LogFilter &filter)
 
virtual void refresh ()
 
virtual void resize (int height, int width, int y, int x)
 
virtual void selectAll ()
 
virtual void startSelect (int row)
 
virtual ~LogPanel ()
 
- 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 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 canNavigate () const
 
virtual void copyToClipboard ()
 
virtual size_t getContentSize () const
 
virtual int getContentWidth () const
 
virtual int64_t getCursor () const
 
std::string getPrefix (const LogEntry &entry, size_t line) const
 
void printEntry (size_t row, const LogEntry &entry, size_t line, size_t index)
 
virtual void setCursor (int64_t cursor)
 
- Protected Member Functions inherited from log_view::PanelInterface
virtual void activate (bool enable)
 
virtual bool canFocus () const
 
virtual bool canInput () 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 int inputOffset () const
 
virtual void move (int step)
 
virtual void moveTo (size_t index)
 
virtual void pageDown ()
 
virtual void pageUp ()
 
virtual void select ()
 
virtual void shift (int cols)
 

Protected Attributes

bool filled_ = false
 
LogFilterfilter_
 
LogStorePtr logs_
 
bool mouse_down_ = 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 37 of file log_panel.h.

Constructor & Destructor Documentation

log_view::LogPanel::LogPanel ( int  height,
int  width,
int  y,
int  x,
LogStorePtr logs,
LogFilter filter 
)
inline

Definition at line 39 of file log_panel.h.

virtual log_view::LogPanel::~LogPanel ( )
inlinevirtual

Definition at line 40 of file log_panel.h.

Member Function Documentation

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

Reimplemented from log_view::PanelInterface.

Definition at line 50 of file log_panel.h.

void log_view::LogPanel::copyToClipboard ( )
protectedvirtual

Definition at line 151 of file log_panel.cpp.

void log_view::LogPanel::endSelect ( int  row)
virtual

Definition at line 182 of file log_panel.cpp.

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

Reimplemented from log_view::PanelInterface.

Definition at line 51 of file log_panel.h.

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

Reimplemented from log_view::PanelInterface.

Definition at line 194 of file log_panel.cpp.

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

Reimplemented from log_view::PanelInterface.

Definition at line 54 of file log_panel.h.

std::string log_view::LogPanel::getPrefix ( const LogEntry entry,
size_t  line 
) const
protected

Definition at line 202 of file log_panel.cpp.

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

Reimplemented from log_view::PanelInterface.

Definition at line 92 of file log_panel.cpp.

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

Reimplemented from log_view::PanelInterface.

Definition at line 107 of file log_panel.cpp.

void log_view::LogPanel::printEntry ( size_t  row,
const LogEntry entry,
size_t  line,
size_t  index 
)
protected

Definition at line 230 of file log_panel.cpp.

void log_view::LogPanel::refresh ( )
virtual

Implements log_view::PanelInterface.

Definition at line 34 of file log_panel.cpp.

void log_view::LogPanel::resize ( int  height,
int  width,
int  y,
int  x 
)
virtual

Reimplemented from log_view::PanelInterface.

Definition at line 137 of file log_panel.cpp.

void log_view::LogPanel::selectAll ( )
virtual

Definition at line 142 of file log_panel.cpp.

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

Reimplemented from log_view::PanelInterface.

Definition at line 53 of file log_panel.h.

void log_view::LogPanel::startSelect ( int  row)
virtual

Definition at line 168 of file log_panel.cpp.

Member Data Documentation

bool log_view::LogPanel::filled_ = false
protected

Definition at line 63 of file log_panel.h.

LogFilter& log_view::LogPanel::filter_
protected

Definition at line 60 of file log_panel.h.

LogStorePtr log_view::LogPanel::logs_
protected

Definition at line 59 of file log_panel.h.

bool log_view::LogPanel::mouse_down_ = false
protected

Definition at line 62 of file log_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