Back to index

kdeartwork  4.3.2
Signals | Public Member Functions | Protected Slots | Protected Attributes
KXSLineEditControl Class Reference

#include <kxscontrol.h>

Inheritance diagram for KXSLineEditControl:
Inheritance graph
[legend]
Collaboration diagram for KXSLineEditControl:
Collaboration graph
[legend]

List of all members.

Signals

void changed ()

Public Member Functions

 KXSLineEditControl (QWidget *parent, const QString &name, KConfig &config)
 KXSLineEditControl (QWidget *parent, const QString &name, const QXmlAttributes &attr)
virtual void read (KConfig &config)
virtual QString command ()
virtual void save (KConfig &config)

Protected Slots

void textChanged (const QString &)

Protected Attributes

QLineEdit * mEdit
QString mSwitch
QString mValue
QString mName
QString mLabel

Detailed Description

Definition at line 120 of file kxscontrol.h.


Constructor & Destructor Documentation

KXSLineEditControl::KXSLineEditControl ( QWidget *  parent,
const QString &  name,
KConfig &  config 
)

Definition at line 259 of file kxscontrol.cpp.

  : QWidget(parent), KXSStringItem(name, config)
{
  QVBoxLayout *l = new QVBoxLayout(this);
  QLabel *label = new QLabel(mLabel, this);
  l->addWidget(label);
  mEdit = new QLineEdit(this);
  connect(mEdit, SIGNAL(textChanged(const QString &)), SLOT(textChanged(const QString &)));
  l->addWidget(mEdit);
}

Here is the call graph for this function:

KXSLineEditControl::KXSLineEditControl ( QWidget *  parent,
const QString &  name,
const QXmlAttributes &  attr 
)

Definition at line 271 of file kxscontrol.cpp.

  : QWidget(parent), KXSStringItem(name, attr)
{
  QVBoxLayout *l = new QVBoxLayout(this);
  QLabel *label = new QLabel(i18n(mLabel.toUtf8()), this);
  l->addWidget(label);
  mEdit = new QLineEdit(this);
  connect(mEdit, SIGNAL(textChanged(const QString &)), SLOT(textChanged(const QString &)));
  l->addWidget(mEdit);
}

Here is the call graph for this function:


Member Function Documentation

void KXSLineEditControl::changed ( ) [signal]

Here is the caller graph for this function:

QString KXSStringItem::command ( ) [virtual, inherited]

Implements KXSConfigItem.

Definition at line 237 of file kxsitem.cpp.

{
  if (!mValue.isEmpty())
      return mSwitch.arg(mValue);
  return "";
}
void KXSLineEditControl::read ( KConfig &  config) [virtual]

Reimplemented from KXSStringItem.

Definition at line 289 of file kxscontrol.cpp.

{
    KXSStringItem::read(config);
    mEdit->setText(mValue);
}
void KXSStringItem::save ( KConfig &  config) [virtual, inherited]

Implements KXSConfigItem.

Definition at line 251 of file kxsitem.cpp.

{
  KConfigGroup grp = config.group(mName);
  grp.writeEntry("Value", mValue);
}
void KXSLineEditControl::textChanged ( const QString &  text) [protected, slot]

Definition at line 283 of file kxscontrol.cpp.

{
    mValue = text;
    emit changed();
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

QLineEdit* KXSLineEditControl::mEdit [protected]

Definition at line 136 of file kxscontrol.h.

QString KXSConfigItem::mLabel [protected, inherited]

Definition at line 43 of file kxsitem.h.

QString KXSConfigItem::mName [protected, inherited]

Definition at line 42 of file kxsitem.h.

QString KXSStringItem::mSwitch [protected, inherited]

Definition at line 128 of file kxsitem.h.

QString KXSStringItem::mValue [protected, inherited]

Definition at line 129 of file kxsitem.h.


The documentation for this class was generated from the following files: