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.

LogView


Constructor & Destructor Documentation

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

Constructor.


Member Function Documentation

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

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

Reimplemented from YWidget.

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

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.

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

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]

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

Reimplemented from YWidget.


Member Data Documentation

YCPString YLogView::_label [private]

int YLogView::_visibleLines [private]

int YLogView::_maxLines [private]

deque<string> YLogView::_logText [private]


The documentation for this class was generated from the following files:
Generated on Tue Nov 6 01:20:23 2007 for yast2-core by  doxygen 1.5.0