lib
KoProperty::Widget Class Reference
#include <widget.h>
Inheritance diagram for KoProperty::Widget:

Detailed Description
The base class for all item editors used in Editor.
- Author:
- Cedric Pasteur <cedric.pasteur@free.fr>
Alexander Dymo <cloudtemple@mskat.net>
Definition at line 36 of file widget.h.
Signals | |
void | valueChanged (Widget *widget) |
void | acceptInput (Widget *widget) |
void | rejectInput (Widget *widget) |
Public Member Functions | |
Widget (Property *property, QWidget *parent, const char *name="property_editor") | |
virtual | ~Widget () |
virtual QVariant | value () const =0 |
virtual void | setValue (const QVariant &value, bool emitChange=true)=0 |
virtual Property * | property () const |
virtual void | setProperty (Property *property) |
virtual void | drawViewer (QPainter *p, const QColorGroup &cg, const QRect &r, const QVariant &value) |
virtual void | undo () |
void | setFocusWidget (QWidget *focusProxy) |
bool | leavesTheSpaceForRevertButton () const |
bool | hasBorders () const |
bool | isReadOnly () const |
void | setReadOnly (bool readOnly) |
bool | visibleFlag () const |
Protected Member Functions | |
void | setEditor (QWidget *editor) |
virtual bool | eventFilter (QObject *watched, QEvent *e) |
virtual void | resizeEvent (QResizeEvent *e) |
void | setLeavesTheSpaceForRevertButton (bool set) |
void | setHasBorders (bool set) |
virtual void | setReadOnlyInternal (bool readOnly)=0 |
void | setVisibleFlag (bool visible) |
Protected Attributes | |
WidgetPrivate * | d |
Member Function Documentation
|
Function to draw a property viewer when the item editor isn't shown. Reimplemented in KoProperty::BoolEdit, KoProperty::ColorButton, KoProperty::ComboBox, KoProperty::CursorEdit, KoProperty::DateEdit, KoProperty::DateTimeEdit, KoProperty::DummyWidget, KoProperty::FontEdit, KoProperty::LineStyleEdit, KoProperty::PixmapEdit, KoProperty::PointEdit, KoProperty::RectEdit, KoProperty::SizeEdit, KoProperty::SizePolicyEdit, KoProperty::IntEdit, KoProperty::DoubleEdit, KoProperty::StringListEdit, KoProperty::SymbolCombo, and KoProperty::TimeEdit. Definition at line 91 of file widget.cpp. |
|
Filters some event for main widget, eg Enter or Esc key presses. Reimplemented in KoProperty::BoolEdit, KoProperty::ColorButton, KoProperty::FontEdit, and KoProperty::PixmapEdit. Definition at line 111 of file widget.cpp. |
|
Definition at line 187 of file widget.cpp. |
|
Definition at line 211 of file widget.cpp. |
|
Definition at line 169 of file widget.cpp. |
|
Definition at line 75 of file widget.cpp. |
|
Sets the widget that will receive focus when the Widget is selected. Definition at line 155 of file widget.cpp. |
|
Sets the name of edited property. Reimplemented in KoProperty::ComboBox, KoProperty::CursorEdit, and KoProperty::URLEdit. Definition at line 81 of file widget.cpp. |
|
Sets this widget to be read-only. Disables or enables editing in the appropriate widget(s).
Definition at line 217 of file widget.cpp. |
|
Called by setReadOnly(bool). For implementation: for read-only you should disable editing in the appropriate widget(s). Implemented in KoProperty::BoolEdit, KoProperty::ColorButton, KoProperty::ComboBox, KoProperty::DateEdit, KoProperty::DateTimeEdit, KoProperty::DummyWidget, KoProperty::FontEdit, KoProperty::LineStyleEdit, KoProperty::PixmapEdit, KoProperty::PointEdit, KoProperty::RectEdit, KoProperty::SizeEdit, KoProperty::SizePolicyEdit, KoProperty::IntEdit, KoProperty::DoubleEdit, KoProperty::StringEdit, KoProperty::StringListEdit, KoProperty::SymbolCombo, KoProperty::TimeEdit, and KoProperty::URLEdit. |
|
Sets the value shown in the item editor widget. Set emitChange to false if you don't want to emit propertyChanged signal. Implemented in KoProperty::BoolEdit, KoProperty::ColorButton, KoProperty::ComboBox, KoProperty::CursorEdit, KoProperty::DateEdit, KoProperty::DateTimeEdit, KoProperty::DummyWidget, KoProperty::FontEdit, KoProperty::LineStyleEdit, KoProperty::PixmapEdit, KoProperty::PointEdit, KoProperty::RectEdit, KoProperty::SizeEdit, KoProperty::SizePolicyEdit, KoProperty::IntEdit, KoProperty::DoubleEdit, KoProperty::StringEdit, KoProperty::StringListEdit, KoProperty::SymbolCombo, KoProperty::TimeEdit, and KoProperty::URLEdit. |
|
Used only in setReadOnlyInternal() to make the widget visible or invisible. This flag is checked by Editor when the widget is about to show. By default widgets are visible. Definition at line 230 of file widget.cpp. |
|
Reverts the property value to previous setting. Definition at line 104 of file widget.cpp. |
|
Implemented in KoProperty::BoolEdit, KoProperty::ColorButton, KoProperty::ComboBox, KoProperty::CursorEdit, KoProperty::DateEdit, KoProperty::DateTimeEdit, KoProperty::DummyWidget, KoProperty::FontEdit, KoProperty::LineStyleEdit, KoProperty::PixmapEdit, KoProperty::PointEdit, KoProperty::RectEdit, KoProperty::SizeEdit, KoProperty::SizePolicyEdit, KoProperty::IntEdit, KoProperty::DoubleEdit, KoProperty::StringEdit, KoProperty::StringListEdit, KoProperty::SymbolCombo, KoProperty::TimeEdit, and KoProperty::URLEdit. |
The documentation for this class was generated from the following files: