Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Examples

YMultiLineEdit Class Reference

Implementation of the MultiLineEdit widget. More...

#include <YMultiLineEdit.h>

Inheritance diagram for YMultiLineEdit:

YWidget List of all members.

Public Member Functions

 YMultiLineEdit (const YWidgetOpt &opt, const YCPString &label)
virtual char * widgetClass ()
YCPValue changeWidget (const YCPSymbol &property, const YCPValue &newvalue)
YCPValue queryWidget (const YCPSymbol &property)
virtual void setLabel (const YCPString &newLabel)
virtual void setText (const YCPString &text)=0
virtual YCPString text ()=0
YCPString label () const
const char * shortcutProperty ()

Private Member Functions

virtual void saveUserInput (YMacroRecorder *macroRecorder)

Private Attributes

YCPString _label

Detailed Description

Implementation of the MultiLineEdit widget.

MultiLineEdit

MultiLineEdit1.ycp MultiLineEdit2.ycp MultiLineEdit3.ycp

This widget is a multiple line text entry field with a label above it. An initial text can be provided.

Notice: You can and should set a keyboard shortcut within the label. When the user presses the hotkey, the corresponding MultiLineEdit widget will get the keyboard focus.


Constructor & Destructor Documentation

YMultiLineEdit::YMultiLineEdit const YWidgetOpt opt,
const YCPString label
 

Constructor.


Member Function Documentation

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

Implements the ui command changeWidget for the widget specific properties.

string Value The text contents as one large string containing newlines.

string Label The label above the log text.

Reimplemented from YWidget.

YCPString YMultiLineEdit::label  )  const [inline]
 

Get the label above the log lines.

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

Implements the ui command changeWidget for the widget specific properties.

Reimplemented from YWidget.

void YMultiLineEdit::saveUserInput YMacroRecorder macroRecorder  )  [private, virtual]
 

Save the widget's user input to a macro recorder. Intentionally declared as "private" so all macro recording internals are handled by the abstract libyui level, not by a specific UI.

Reimplemented from YWidget.

void YMultiLineEdit::setLabel const YCPString newLabel  )  [virtual]
 

Set the label above the log lines. Overload this, but call YMultiLineEdit::setLabel at the end of your own function.

virtual void YMultiLineEdit::setText const YCPString text  )  [pure virtual]
 

Set the edited text.

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

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

Reimplemented from YWidget.

virtual YCPString YMultiLineEdit::text  )  [pure virtual]
 

Get the edited text.

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

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

Reimplemented from YWidget.


Member Data Documentation

YCPString YMultiLineEdit::_label [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Nov 9 18:15:25 2007 for yast2-core by doxygen 1.3.6