YLogView Class Reference

Implementation of the LogView widget. More...

#include <YLogView.h>

Inheritance diagram for YLogView:

YWidget List of all members.

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

Detailed Description

Implementation of the LogView widget.


Constructor & Destructor Documentation

YLogView::YLogView const YWidgetOpt opt,
const YCPString label,
int  visibleLines,
int  maxLines
 

Constructor.


Member Function Documentation

void YLogView::appendLine const string &  line  ) 
 

Append one single line to the log text.

void YLogView::appendText const YCPString text  ) 
 

Append one or more lines to the log text.

YCPValue YLogView::changeWidget const YCPSymbol property,
const YCPValue newvalue
[virtual]
 

Implements the ui command changeWidget for the widget specific properties.

Reimplemented from YWidget.

void YLogView::clearText  ) 
 

Clear the log text.

YCPString YLogView::label  )  const [inline]
 

Get the label above the log lines.

int YLogView::lines  )  const [inline]
 

Return the current number of lines.

string YLogView::logText  ) 
 

Retrieve the entire log text as one large string of concatenated lines delimited with newlines.

int YLogView::maxLines  )  const [inline]
 

Get the maximum number of lines to store.

YCPValue YLogView::queryWidget const YCPSymbol property  )  [virtual]
 

Implements the ui command changeWidget for the widget specific properties.

Reimplemented from YWidget.

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.

virtual void YLogView::setLogText const YCPString text  )  [pure virtual]
 

Set the log text.

const char* YLogView::shortcutProperty  )  [inline, virtual]
 

The name of the widget property that holds the keyboard shortcut. Inherited from YWidget.

Reimplemented from YWidget.

int YLogView::visibleLines  )  const [inline]
 

Get the number of visible lines.

virtual char* YLogView::widgetClass  )  [inline, virtual]
 

Returns a descriptive name of this widget class for logging, debugging etc.

Reimplemented from YWidget.


Member Data Documentation

YCPString YLogView::_label [private]
 

deque<string> YLogView::_logText [private]
 

int YLogView::_maxLines [private]
 

int YLogView::_visibleLines [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 18:07:47 2006 for yast2-core by  doxygen 1.4.6