KDevelop API Documentation

PropertyLib::PStringListEdit Class Reference

Property editor with string list editor. More...

#include <pstringlistedit.h>

Inheritance diagram for PropertyLib::PStringListEdit:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PStringListEdit (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 showEditor ()

Private Attributes

QLineEditedit
QPushButtonpbSelect
QHBoxLayoutl
QStringList m_list

Detailed Description

Property editor with string list editor.

Definition at line 34 of file pstringlistedit.h.


Constructor & Destructor Documentation

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

Definition at line 34 of file pstringlistedit.cpp.

References edit, l, pbSelect, and showEditor().


Member Function Documentation

void PropertyLib::PStringListEdit::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 95 of file pstringlistedit.cpp.

void PropertyLib::PStringListEdit::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 55 of file pstringlistedit.cpp.

References edit, m_list, and PropertyLib::PropertyWidget::propertyChanged().

void PropertyLib::PStringListEdit::showEditor  )  [private, slot]
 

Definition at line 63 of file pstringlistedit.cpp.

References edit, KEditListBox::insertStringList(), KEditListBox::items, KEditListBox, m_list, and PropertyLib::PropertyWidget::propertyChanged().

Referenced by PStringListEdit().

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

Returns:
the value currently entered in the editor widget.

Implements PropertyLib::PropertyWidget.

Definition at line 50 of file pstringlistedit.cpp.

References m_list.


Member Data Documentation

QLineEdit* PropertyLib::PStringListEdit::edit [private]
 

Definition at line 52 of file pstringlistedit.h.

Referenced by PStringListEdit(), setValue(), and showEditor().

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

Definition at line 54 of file pstringlistedit.h.

Referenced by PStringListEdit().

QStringList PropertyLib::PStringListEdit::m_list [private]
 

Definition at line 56 of file pstringlistedit.h.

Referenced by setValue(), showEditor(), and value().

QPushButton* PropertyLib::PStringListEdit::pbSelect [private]
 

Definition at line 53 of file pstringlistedit.h.

Referenced by PStringListEdit().


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:33 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003