KDevelop API Documentation

PropertyLib::PYesNoButton Class Reference

Property editor with yes-no button to edit boolean values. More...

#include <pyesnobutton.h>

Inheritance diagram for PropertyLib::PYesNoButton:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PYesNoButton (MultiProperty *property, QWidget *parent=0, const char *name=0)
virtual QVariant value () const
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.
virtual void setValue (const QVariant &value, bool emitChange)
 Sets the value shown in the editor widget.

Protected Slots

void updateProperty (bool toggled)

Private Attributes

QPushButtonm_edit

Detailed Description

Property editor with yes-no button to edit boolean values.

Definition at line 32 of file pyesnobutton.h.


Constructor & Destructor Documentation

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

Definition at line 30 of file pyesnobutton.cpp.

References m_edit, and updateProperty().


Member Function Documentation

void PropertyLib::PYesNoButton::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 47 of file pyesnobutton.cpp.

void PropertyLib::PYesNoButton::setValue const QVariant value,
bool  emitChange
[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 52 of file pyesnobutton.cpp.

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

void PropertyLib::PYesNoButton::updateProperty bool  toggled  )  [protected, slot]
 

Definition at line 62 of file pyesnobutton.cpp.

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

Referenced by PYesNoButton(), and setValue().

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

Returns:
the value currently entered in the editor widget.

Implements PropertyLib::PropertyWidget.

Definition at line 42 of file pyesnobutton.cpp.

References m_edit.

Referenced by updateProperty().


Member Data Documentation

QPushButton* PropertyLib::PYesNoButton::m_edit [private]
 

Definition at line 46 of file pyesnobutton.h.

Referenced by PYesNoButton(), setValue(), updateProperty(), and value().


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 Tue Feb 22 09:52:09 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003