KDevelop API Documentation

PropertyLib::PSymbolCombo Class Reference

Property editor with char selector. More...

#include <psymbolcombo.h>

Inheritance diagram for PropertyLib::PSymbolCombo:

Inheritance graph
[legend]
Collaboration diagram for PropertyLib::PSymbolCombo:

Collaboration graph
[legend]
List of all members.

Public Slots

void selectChar ()

Public Member Functions

 PSymbolCombo (MultiProperty *property, QWidget *parent=0, const char *name=0)
virtual QVariant value () const
virtual void setValue (const QVariant &value, bool emitChange=true)
 Sets the value shown in the editor widget.
virtual void drawViewer (QPainter *p, const QColorGroup &cg, const QRect &r, const QVariant &value)
 Function to draw a property viewer when the editor isn't shown.

Private Slots

void updateProperty (const QString &val)

Private Attributes

QLineEditm_edit
QPushButtonm_select
QHBoxLayoutl

Detailed Description

Property editor with char selector.

Definition at line 35 of file psymbolcombo.h.


Constructor & Destructor Documentation

PropertyLib::PSymbolCombo::PSymbolCombo MultiProperty property,
QWidget parent = 0,
const char *  name = 0
 

Definition at line 38 of file psymbolcombo.cpp.

References l, m_edit, m_select, selectChar(), and updateProperty().


Member Function Documentation

void PropertyLib::PSymbolCombo::drawViewer QPainter p,
const QColorGroup cg,
const QRect r,
const QVariant value
[virtual]
 

Function to draw a property viewer when the editor isn't shown.

Reimplemented from PropertyLib::PropertyWidget.

Definition at line 120 of file psymbolcombo.cpp.

void PropertyLib::PSymbolCombo::selectChar  )  [slot]
 

Definition at line 83 of file psymbolcombo.cpp.

References KCharSelect::chr(), m_edit, and KCharSelect::setChar().

Referenced by PSymbolCombo().

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

Sets the value shown in the editor widget.

Set emitChange to false if you don't want to emit propertyChanged signal.

Implements PropertyLib::PropertyWidget.

Definition at line 67 of file psymbolcombo.cpp.

References m_edit, PropertyLib::PropertyWidget::propertyChanged(), and updateProperty().

void PropertyLib::PSymbolCombo::updateProperty const QString val  )  [private, slot]
 

Definition at line 115 of file psymbolcombo.cpp.

References PropertyLib::PropertyWidget::propertyChanged().

Referenced by PSymbolCombo(), and setValue().

QVariant PropertyLib::PSymbolCombo::value  )  const [virtual]
 

Returns:
the value currently entered in the editor widget.

Implements PropertyLib::PropertyWidget.

Definition at line 59 of file psymbolcombo.cpp.

References m_edit.


Member Data Documentation

QHBoxLayout* PropertyLib::PSymbolCombo::l [private]
 

Definition at line 57 of file psymbolcombo.h.

Referenced by PSymbolCombo().

QLineEdit* PropertyLib::PSymbolCombo::m_edit [private]
 

Definition at line 55 of file psymbolcombo.h.

Referenced by PSymbolCombo(), selectChar(), setValue(), and value().

QPushButton* PropertyLib::PSymbolCombo::m_select [private]
 

Definition at line 56 of file psymbolcombo.h.

Referenced by PSymbolCombo().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:33:34 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003