KDevelop API Documentation

PComboBox Class Reference

#include <pcombobox.h>

Inheritance diagram for PComboBox:

QComboBox PropertyWidget List of all members.

Signals

void propertyChanged (QString name, QVariant newValue)

Public Member Functions

 PComboBox (const PropertyEditor *editor, const QString name, const QVariant value, QMap< QString, QString > *v_corresp, QWidget *parent=0, const char *name=0)
 This constructor is used for read-only selection combo.

 PComboBox (const PropertyEditor *editor, const QString name, const QVariant value, QMap< QString, QString > *v_corresp, bool rw, QWidget *parent=0, const char *name=0)
 This constructor is used for read-write selection combo.

virtual QVariant value () const
virtual void setValue (const QVariant value, bool emitChange=true)

Protected Member Functions

virtual void fillBox ()

Private Slots

void updateProperty (int val)

Private Member Functions

void init (const PropertyEditor *editor, const QString &pname, const QVariant &value)

Private Attributes

QMap< QString, QString > * corresp
 map<description, value>

QMap< QString, QStringr_corresp
 map<value, description>


Constructor & Destructor Documentation

PComboBox::PComboBox const PropertyEditor editor,
const QString  name,
const QVariant  value,
QMap< QString, QString > *  v_corresp,
QWidget parent = 0,
const char *  name = 0
 

This constructor is used for read-only selection combo.

It provides a value from v_corresp list

Definition at line 23 of file pcombobox.cpp.

References init(), and PComboBox().

Referenced by PComboBox().

PComboBox::PComboBox const PropertyEditor editor,
const QString  name,
const QVariant  value,
QMap< QString, QString > *  v_corresp,
bool  rw,
QWidget parent = 0,
const char *  name = 0
 

This constructor is used for read-write selection combo.

It provides a value from v_corresp list

Definition at line 29 of file pcombobox.cpp.

References init(), and PComboBox().


Member Function Documentation

void PComboBox::fillBox  )  [protected, virtual]
 

Definition at line 44 of file pcombobox.cpp.

References corresp, and r_corresp.

Referenced by init().

void PComboBox::init const PropertyEditor editor,
const QString pname,
const QVariant value
[private]
 

Definition at line 35 of file pcombobox.cpp.

References fillBox(), init(), propertyChanged(), setValue(), and updateProperty().

Referenced by init(), and PComboBox().

void PComboBox::propertyChanged QString  name,
QVariant  newValue
[signal]
 

Referenced by init(), setValue(), and updateProperty().

void PComboBox::setValue const QVariant  value,
bool  emitChange = true
[virtual]
 

Implements PropertyWidget.

Definition at line 60 of file pcombobox.cpp.

References PropertyWidget::pname(), propertyChanged(), r_corresp, and setValue().

Referenced by init(), and setValue().

void PComboBox::updateProperty int  val  )  [private, slot]
 

Definition at line 74 of file pcombobox.cpp.

References PropertyWidget::pname(), propertyChanged(), updateProperty(), and value().

Referenced by init(), and updateProperty().

QVariant PComboBox::value  )  const [virtual]
 

Implements PropertyWidget.

Definition at line 53 of file pcombobox.cpp.

References corresp.

Referenced by updateProperty().


Member Data Documentation

QMap<QString, QString>* PComboBox::corresp [private]
 

map<description, value>

Definition at line 43 of file pcombobox.h.

Referenced by fillBox(), and value().

QMap<QString, QString> PComboBox::r_corresp [private]
 

map<value, description>

Definition at line 45 of file pcombobox.h.

Referenced by fillBox(), and setValue().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Oct 19 08:02:05 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003