KDevelop API Documentation

PropertyLib::PPixmapEdit Class Reference

Property editor which shows a pixmap and allows to load it from file. More...

#include <ppixmapedit.h>

Inheritance diagram for PropertyLib::PPixmapEdit:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PPixmapEdit (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.
virtual void resizeEvent (QResizeEvent *ev)
virtual bool eventFilter (QObject *o, QEvent *ev)

Protected Slots

void updateProperty ()

Private Attributes

QLabelm_edit
QLabelm_popup
KPushButtonm_button

Detailed Description

Property editor which shows a pixmap and allows to load it from file.

Definition at line 33 of file ppixmapedit.h.


Constructor & Destructor Documentation

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

Definition at line 35 of file ppixmapedit.cpp.

References m_button, m_edit, m_popup, and updateProperty().


Member Function Documentation

void PropertyLib::PPixmapEdit::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 63 of file ppixmapedit.cpp.

bool PropertyLib::PPixmapEdit::eventFilter QObject o,
QEvent ev
[virtual]
 

Definition at line 95 of file ppixmapedit.cpp.

References m_button, m_edit, and m_popup.

void PropertyLib::PPixmapEdit::resizeEvent QResizeEvent ev  )  [virtual]
 

Definition at line 88 of file ppixmapedit.cpp.

References m_button, and m_edit.

void PropertyLib::PPixmapEdit::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 71 of file ppixmapedit.cpp.

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

void PropertyLib::PPixmapEdit::updateProperty  )  [protected, slot]
 

Definition at line 78 of file ppixmapedit.cpp.

References KFileDialog::getImageOpenURL(), KURL::isEmpty(), m_edit, KURL::path(), PropertyLib::PropertyWidget::propertyChanged(), and value().

Referenced by PPixmapEdit().

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

Returns:
the value currently entered in the editor widget.

Implements PropertyLib::PropertyWidget.

Definition at line 58 of file ppixmapedit.cpp.

References m_edit.

Referenced by updateProperty().


Member Data Documentation

KPushButton* PropertyLib::PPixmapEdit::m_button [private]
 

Definition at line 52 of file ppixmapedit.h.

Referenced by eventFilter(), PPixmapEdit(), and resizeEvent().

QLabel* PropertyLib::PPixmapEdit::m_edit [private]
 

Definition at line 50 of file ppixmapedit.h.

Referenced by eventFilter(), PPixmapEdit(), resizeEvent(), setValue(), updateProperty(), and value().

QLabel* PropertyLib::PPixmapEdit::m_popup [private]
 

Definition at line 51 of file ppixmapedit.h.

Referenced by eventFilter(), and PPixmapEdit().


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