Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
log_view::PanelInterface Class Referenceabstract

#include <panel_interface.h>

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

Public Member Functions

virtual bool encloses (int y, int x)
 
virtual bool focus () const
 
virtual void forceRefresh ()
 
virtual bool handleInput (int key)
 
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 refresh ()=0
 
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 void activate (bool enable)
 
virtual bool canFocus () const
 
virtual bool canInput () const
 
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 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 setCursor (int64_t cursor)
 
virtual void shift (int cols)
 

Protected Attributes

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 41 of file panel_interface.h.

Constructor & Destructor Documentation

log_view::PanelInterface::PanelInterface ( int  height,
int  width,
int  y,
int  x 
)

Definition at line 34 of file panel_interface.cpp.

log_view::PanelInterface::~PanelInterface ( )
virtual

Definition at line 44 of file panel_interface.cpp.

Member Function Documentation

virtual void log_view::PanelInterface::activate ( bool  enable)
inlineprotectedvirtual

Reimplemented in log_view::ExcludePanel, and log_view::FilterPanel.

Definition at line 74 of file panel_interface.h.

virtual bool log_view::PanelInterface::canFocus ( ) const
inlineprotectedvirtual
virtual bool log_view::PanelInterface::canInput ( ) const
inlineprotectedvirtual

Reimplemented in log_view::SearchPanel, log_view::ExcludePanel, and log_view::FilterPanel.

Definition at line 73 of file panel_interface.h.

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

Reimplemented in log_view::HelpPanel, log_view::LogPanel, and log_view::NodePanel.

Definition at line 78 of file panel_interface.h.

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

Reimplemented in log_view::NodePanel.

Definition at line 79 of file panel_interface.h.

void log_view::PanelInterface::drawScrollBar ( size_t  count,
int  height,
int  y,
int  x 
)
protectedvirtual

Definition at line 230 of file panel_interface.cpp.

bool log_view::PanelInterface::encloses ( int  y,
int  x 
)
virtual

Definition at line 181 of file panel_interface.cpp.

bool log_view::PanelInterface::focus ( ) const
virtual

Definition at line 290 of file panel_interface.cpp.

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

Reimplemented in log_view::NodePanel.

Definition at line 298 of file panel_interface.cpp.

virtual bool log_view::PanelInterface::following ( )
inlineprotectedvirtual

Definition at line 92 of file panel_interface.h.

void log_view::PanelInterface::forceRefresh ( )
virtual

Definition at line 48 of file panel_interface.cpp.

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

Reimplemented in log_view::NodePanel.

Definition at line 81 of file panel_interface.h.

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

Reimplemented in log_view::LogPanel, and log_view::NodePanel.

Definition at line 80 of file panel_interface.h.

virtual int log_view::PanelInterface::getContentWidth ( ) const
inlineprotectedvirtual

Reimplemented in log_view::LogPanel, and log_view::NodePanel.

Definition at line 82 of file panel_interface.h.

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

Reimplemented in log_view::LogPanel, and log_view::NodePanel.

Definition at line 84 of file panel_interface.h.

bool log_view::PanelInterface::handleInput ( int  key)
virtual

Reimplemented in log_view::SearchPanel.

Definition at line 66 of file panel_interface.cpp.

virtual bool log_view::PanelInterface::handleKey ( int  key)
inlinevirtual

Reimplemented in log_view::HelpPanel, log_view::LogPanel, and log_view::NodePanel.

Definition at line 51 of file panel_interface.h.

virtual bool log_view::PanelInterface::handleMouse ( const MEVENT &  event)
inlinevirtual
bool log_view::PanelInterface::handleNavigation ( int  key)
virtual

Definition at line 128 of file panel_interface.cpp.

int log_view::PanelInterface::height ( ) const
virtual

Definition at line 278 of file panel_interface.cpp.

bool log_view::PanelInterface::hidden ( ) const
virtual

Definition at line 282 of file panel_interface.cpp.

void log_view::PanelInterface::hide ( bool  enable)
virtual

Definition at line 185 of file panel_interface.cpp.

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

Reimplemented in log_view::SearchPanel, log_view::ExcludePanel, and log_view::FilterPanel.

Definition at line 75 of file panel_interface.h.

void log_view::PanelInterface::move ( int  step)
protectedvirtual

Definition at line 317 of file panel_interface.cpp.

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

Reimplemented in log_view::NodePanel.

Definition at line 336 of file panel_interface.cpp.

void log_view::PanelInterface::pageDown ( )
protectedvirtual

Definition at line 313 of file panel_interface.cpp.

void log_view::PanelInterface::pageUp ( )
protectedvirtual

Definition at line 309 of file panel_interface.cpp.

virtual void log_view::PanelInterface::refresh ( )
pure virtual
void log_view::PanelInterface::resize ( int  height,
int  width,
int  y,
int  x 
)
virtual

Reimplemented in log_view::HelpPanel, and log_view::LogPanel.

Definition at line 54 of file panel_interface.cpp.

bool log_view::PanelInterface::scrollbar ( ) const
virtual

Definition at line 294 of file panel_interface.cpp.

virtual void log_view::PanelInterface::select ( )
inlineprotectedvirtual

Reimplemented in log_view::NodePanel.

Definition at line 91 of file panel_interface.h.

bool log_view::PanelInterface::setCursor ( )
virtual

Definition at line 215 of file panel_interface.cpp.

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

Reimplemented in log_view::LogPanel, and log_view::NodePanel.

Definition at line 83 of file panel_interface.h.

bool log_view::PanelInterface::setFocus ( bool  enable)
virtual

Definition at line 206 of file panel_interface.cpp.

void log_view::PanelInterface::shift ( int  cols)
protectedvirtual

Definition at line 350 of file panel_interface.cpp.

void log_view::PanelInterface::toTop ( )
virtual

Definition at line 262 of file panel_interface.cpp.

bool log_view::PanelInterface::visible ( ) const
virtual

Definition at line 286 of file panel_interface.cpp.

int log_view::PanelInterface::width ( ) const
virtual

Definition at line 274 of file panel_interface.cpp.

int log_view::PanelInterface::x ( ) const
virtual

Definition at line 266 of file panel_interface.cpp.

int log_view::PanelInterface::y ( ) const
virtual

Definition at line 270 of file panel_interface.cpp.

Member Data Documentation

bool log_view::PanelInterface::cleared_ = false
protected

Definition at line 100 of file panel_interface.h.

bool log_view::PanelInterface::focus_ = false
protected

Definition at line 104 of file panel_interface.h.

bool log_view::PanelInterface::follow_ = true
protected

Definition at line 109 of file panel_interface.h.

int log_view::PanelInterface::height_
protected

Definition at line 99 of file panel_interface.h.

bool log_view::PanelInterface::hidden_ = false
protected

Definition at line 101 of file panel_interface.h.

int log_view::PanelInterface::input_loc_ = -1
protected

Definition at line 106 of file panel_interface.h.

std::string log_view::PanelInterface::input_text_
protected

Definition at line 105 of file panel_interface.h.

size_t log_view::PanelInterface::last_content_size_ = 0
protected

Definition at line 110 of file panel_interface.h.

int64_t log_view::PanelInterface::last_cursor_ = 0
protected

Definition at line 111 of file panel_interface.h.

size_t log_view::PanelInterface::max_length_ = 0
protected

Definition at line 112 of file panel_interface.h.

PANEL* log_view::PanelInterface::panel_ = nullptr
protected

Definition at line 95 of file panel_interface.h.

int log_view::PanelInterface::shift_ = 0
protected

Definition at line 113 of file panel_interface.h.

int log_view::PanelInterface::width_
protected

Definition at line 98 of file panel_interface.h.

WINDOW* log_view::PanelInterface::window_ = nullptr
protected

Definition at line 94 of file panel_interface.h.

int log_view::PanelInterface::x_
protected

Definition at line 96 of file panel_interface.h.

int log_view::PanelInterface::y_
protected

Definition at line 97 of file panel_interface.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