Lumiera  0.pre.03
»edityourfreedom«
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ErrorLogWidget Class Reference

#include "gui/widget/error-log-widget.hpp"

Description

Todo:
WIP-WIP as of 9/2017 Just a text display box with scrollbars. Need to add formatting etc.

Definition at line 58 of file error-log-widget.hpp.

Public Member Functions

 ErrorLogWidget ()
 
 ~ErrorLogWidget ()
 
void showMsg (NotifyLevel severity, string const &text)
 

Private Member Functions

void addEntry (string const &text)
 add message entry to the (ever growing) text buffer. More...
 

Private Attributes

Gtk::TextView textLog_
 

Constructor & Destructor Documentation

~ErrorLogWidget ( )
inline

Definition at line 62 of file error-log-widget.hpp.

ErrorLogWidget ( )
inline

Definition at line 64 of file error-log-widget.hpp.

Member Function Documentation

void showMsg ( NotifyLevel  severity,
string const &  text 
)
inline

Definition at line 81 of file error-log-widget.hpp.

References ErrorLogWidget::addEntry(), gui::NOTE_ERROR, and gui::NOTE_WARN.

Referenced by InfoBoxPanel::experiment_1().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void addEntry ( string const &  text)
inlineprivate

add message entry to the (ever growing) text buffer.

Remarks
According to the Gtkmm tutorial, TextView::scroll_to(iter) is not reliable; rather we need to use a text mark and set that text mark to the insert position. Actually, there is always one predefined text mark called "insert", which corresponds to the text cursor. Thus it suffices to navigate to text end, insert and scroll into view.

Definition at line 109 of file error-log-widget.hpp.

Referenced by ErrorLogWidget::showMsg().

+ Here is the caller graph for this function:

Member Data Documentation

Gtk::TextView textLog_
private

Definition at line 100 of file error-log-widget.hpp.

+ Inheritance diagram for ErrorLogWidget:
+ Collaboration diagram for ErrorLogWidget:

The documentation for this class was generated from the following file: