console_widget.cpp¶
file src/app/widgets/console_widget.cpp ยท Applications
Implementation of ConsoleWidget: filtering, buffering and the timed flush into the view.
Source src/app/widgets/console_widget.cpp
Namespaces¶
| Namespace | Description |
|---|---|
nmeasim::app |
The Qt Widgets desktop application: the main window, its dock panels, the map, the instruments and the settings dialog, built on nmeasim::io. |
Summary¶
File-local variables
| Name | Description |
|---|---|
kMaxLines |
Lines kept in the view and in the buffer. |
kFlushIntervalMs |
Interval between flushes into the view, in milliseconds. |
File-local variables¶
kMaxLines¶
int kMaxLines{2000}
Lines kept in the view and in the buffer.
A user-interface choice that bounds the memory of the view and the cost of re-colouring it after a theme change.
Declared in src/app/widgets/console_widget.cpp:21
kFlushIntervalMs¶
int kFlushIntervalMs{150}
Interval between flushes into the view, in milliseconds.
Batching lines this way keeps the number of repaints near seven per second whatever the output rate.
Declared in src/app/widgets/console_widget.cpp:24