Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

YQTextEntry Class Reference

#include <YQTextEntry.h>

Inheritance diagram for YQTextEntry:

YTextEntry YWidget List of all members.

Public Member Functions

 YQTextEntry (QWidget *parent, const YWidgetOpt &opt, const YCPString &label, const YCPString &text)
void setEnabling (bool enabled)
long nicesize (YUIDimension dim)
void setSize (long newWidth, long newHeight)
void setText (const YCPString &text)
YCPString getText ()
void setLabel (const YCPString &label)
void setValidChars (const YCPString &validChars)
void setInputMaxLength (const YCPInteger &numberOfChars)
virtual bool setKeyboardFocus ()
bool isValidText (const QString &text) const

Protected Slots

void changed (const QString &)

Protected Attributes

QLabel * _qt_label
QLineEdit * _qt_lineedit
QY2CharValidator_validator
bool _shrinkable

Constructor & Destructor Documentation

YQTextEntry::YQTextEntry QWidget *  parent,
const YWidgetOpt opt,
const YCPString label,
const YCPString text
 

Constructor.


Member Function Documentation

void YQTextEntry::changed const QString &   )  [protected, slot]
 

Triggered when the text in the TextEntry changes. This _may_ be of interest to the module.

YCPString YQTextEntry::getText  )  [virtual]
 

Gets the text currently entered in the text entry

Implements YTextEntry.

bool YQTextEntry::isValidText const QString &  text  )  const
 

Returns 'true' if a given text is valid according to ValidChars.

long YQTextEntry::nicesize YUIDimension  dim  )  [virtual]
 

Minimum size the widget should have to make it look and feel nice. Dimension, either YD_HORIZ or YD_VERT

Implements YWidget.

void YQTextEntry::setEnabling bool  enabled  )  [virtual]
 

Inherited from YWidget: Sets the enabled state of the widget. All new widgets are enabled per definition. Only enabled widgets can take user input.

Reimplemented from YWidget.

void YQTextEntry::setInputMaxLength const YCPInteger numberOfChars  )  [virtual]
 

Specify the amount of characters which can be inserted.

Reimplemented from YTextEntry.

Reimplemented from YTextEntry.

bool YQTextEntry::setKeyboardFocus  )  [virtual]
 

Accept the keyboard focus.

Reimplemented from YWidget.

void YQTextEntry::setLabel const YCPString label  )  [virtual]
 

Changes the label of the text entry.

Reimplemented from YTextEntry.

void YQTextEntry::setSize long  newWidth,
long  newHeight
[virtual]
 

Sets the new size of the widget.

Reimplemented from YWidget.

void YQTextEntry::setText const YCPString text  )  [virtual]
 

Set the text in the entry to a new value

Implements YTextEntry.

void YQTextEntry::setValidChars const YCPString validChars  )  [virtual]
 

Change the valid input characters.

Reimplemented from YTextEntry.

Reimplemented from YTextEntry.


Member Data Documentation

QLabel* YQTextEntry::_qt_label [protected]
 

Pointer to the qt widget representing the label

QLineEdit* YQTextEntry::_qt_lineedit [protected]
 

Pointer to the qt widget representing the text entry

bool YQTextEntry::_shrinkable [protected]
 

true if the horizontal nice size should be very small

QY2CharValidator* YQTextEntry::_validator [protected]
 

Pointer to the validator object


The documentation for this class was generated from the following files:
Generated on Wed Sep 14 10:59:04 2005 for yast2-qt by  doxygen 1.4.4