Scrolled TTY-like window for logging, etc.
More...
#include <tty_scroll.h>
|
| | TtyScroll (wxWindow *parent, int n_lines) |
| | Create a TtyScroll instance.
|
| |
| virtual void | Add (const Logline &line) |
| | Add a line to bottom of window, typically discarding top-most line.
|
| |
| virtual void | Clear () |
| | Clear the log window.
|
| |
| void | Pause (bool pause) |
| | Set the window to ignore Add() or not depending on pause.
|
| |
| void | CopyToClipboard () const |
| | Copy message contents to clipboard.
|
| |
| void | SetFilter (const NavmsgFilter &filter) |
| | Apply a display filter.
|
| |
| const NavmsgFilter & | GetFilter () |
| | Return current display filter.
|
| |
| void | SetQuickFilter (const std::string s) |
| | Apply a quick filter directly matched against lines.
|
| |
| void | SetColors (std::unique_ptr< ColorByState > color_by_state) |
| | Set color scheme.
|
| |
|
| void | DrawLine (wxDC &dc, const Logline &ll, int data_pos, int y) |
| | Draw a single line in the log window.
|
| |
| virtual void | OnDraw (wxDC &dc) |
| |
| void | OnSize (wxSizeEvent &event) |
| |
Scrolled TTY-like window for logging, etc.
Definition at line 79 of file tty_scroll.h.
◆ TtyScroll()
| TtyScroll::TtyScroll |
( |
wxWindow * |
parent, |
|
|
int |
n_lines |
|
) |
| |
Create a TtyScroll instance.
- Parameters
-
| parent | Parent window |
| n_lines | Number of visible lines i. e., window height. |
Definition at line 166 of file tty_scroll.cpp.
◆ Add()
| void TtyScroll::Add |
( |
const Logline & |
line | ) |
|
|
virtual |
Add a line to bottom of window, typically discarding top-most line.
Subject to checks with respect to paused state and filter possibly discarding argument line.
Definition at line 189 of file tty_scroll.cpp.
◆ Clear()
| void TtyScroll::Clear |
( |
| ) |
|
|
virtual |
◆ CopyToClipboard()
| void TtyScroll::CopyToClipboard |
( |
| ) |
const |
◆ DrawLine()
| void TtyScroll::DrawLine |
( |
wxDC & |
dc, |
|
|
const Logline & |
ll, |
|
|
int |
data_pos, |
|
|
int |
y |
|
) |
| |
|
protected |
◆ GetFilter()
Return current display filter.
Definition at line 110 of file tty_scroll.h.
◆ OnDraw()
| void TtyScroll::OnDraw |
( |
wxDC & |
dc | ) |
|
|
protectedvirtual |
◆ OnSize()
| void TtyScroll::OnSize |
( |
wxSizeEvent & |
event | ) |
|
|
protected |
◆ Pause()
| void TtyScroll::Pause |
( |
bool |
pause | ) |
|
|
inline |
Set the window to ignore Add() or not depending on pause.
Definition at line 101 of file tty_scroll.h.
◆ SetColors()
| void TtyScroll::SetColors |
( |
std::unique_ptr< ColorByState > |
color_by_state | ) |
|
◆ SetFilter()
◆ SetQuickFilter()
| void TtyScroll::SetQuickFilter |
( |
const std::string |
s | ) |
|
|
inline |
Apply a quick filter directly matched against lines.
Definition at line 113 of file tty_scroll.h.
◆ m_color_by_state
◆ m_filter
◆ m_is_paused
| bool TtyScroll::m_is_paused |
|
protected |
◆ m_line_height
| wxCoord TtyScroll::m_line_height |
|
protected |
◆ m_lines
| std::deque<Logline> TtyScroll::m_lines |
|
protected |
◆ m_n_lines
| size_t TtyScroll::m_n_lines |
|
protected |
◆ m_quick_filter
| std::string TtyScroll::m_quick_filter |
|
protected |
◆ m_text_width
| wxCoord TtyScroll::m_text_width |
|
protected |
The documentation for this class was generated from the following files: