#include <YLogView.h>
Inheritance diagram for YLogView:

Public Member Functions | |
| YLogView (const YWidgetOpt &opt, const YCPString &label, int visibleLines, int maxLines) | |
| virtual char * | widgetClass () |
| YCPValue | changeWidget (const YCPSymbol &property, const YCPValue &newvalue) |
| YCPValue | queryWidget (const YCPSymbol &property) |
| virtual void | setLogText (const YCPString &text)=0 |
| YCPString | label () const |
| int | visibleLines () const |
| int | maxLines () const |
| virtual void | setLabel (const YCPString &newLabel) |
| string | logText () |
| void | appendText (const YCPString &text) |
| void | appendLine (const string &line) |
| void | clearText () |
| int | lines () const |
| const char * | shortcutProperty () |
Private Attributes | |
| YCPString | _label |
| int | _visibleLines |
| int | _maxLines |
| deque< string > | _logText |
LogView
| YLogView::YLogView | ( | const YWidgetOpt & | opt, | |
| const YCPString & | label, | |||
| int | visibleLines, | |||
| int | maxLines | |||
| ) |
Constructor.
| virtual char* YLogView::widgetClass | ( | ) | [inline, virtual] |
Returns a descriptive name of this widget class for logging, debugging etc.
Reimplemented from YWidget.
Implements the ui command changeWidget for the widget specific properties.
All log lines. Set this property to replace or clear the entire contents. Can only be set, not queried.
Reimplemented from YWidget.
Implements the ui command changeWidget for the widget specific properties.
Reimplemented from YWidget.
| virtual void YLogView::setLogText | ( | const YCPString & | text | ) | [pure virtual] |
Set the log text.
| YCPString YLogView::label | ( | ) | const [inline] |
Get the label above the log lines.
| int YLogView::visibleLines | ( | ) | const [inline] |
Get the number of visible lines.
| int YLogView::maxLines | ( | ) | const [inline] |
Get the maximum number of lines to store.
| void YLogView::setLabel | ( | const YCPString & | newLabel | ) | [virtual] |
Set the label above the log lines. Overload this, but call YLogView::setLabel at the end of your own function.
| string YLogView::logText | ( | ) |
Retrieve the entire log text as one large string of concatenated lines delimited with newlines.
| void YLogView::appendText | ( | const YCPString & | text | ) |
Append one or more lines to the log text.
| void YLogView::appendLine | ( | const string & | line | ) |
Append one single line to the log text.
| void YLogView::clearText | ( | ) |
Clear the log text.
| int YLogView::lines | ( | ) | const [inline] |
Return the current number of lines.
| const char* YLogView::shortcutProperty | ( | ) | [inline, virtual] |
YCPString YLogView::_label [private] |
int YLogView::_visibleLines [private] |
int YLogView::_maxLines [private] |
deque<string> YLogView::_logText [private] |
1.5.0