#include <widget.h>
Inherits TQWidget.
Inherited by KoProperty::BoolEdit, KoProperty::ColorButton, KoProperty::ComboBox, KoProperty::DateEdit, KoProperty::DateTimeEdit, KoProperty::DoubleEdit, KoProperty::DummyWidget, KoProperty::FontEdit, KoProperty::IntEdit, KoProperty::LineStyleEdit, KoProperty::PixmapEdit, KoProperty::PointEdit, KoProperty::RectEdit, KoProperty::SizeEdit, KoProperty::SizePolicyEdit, KoProperty::StringEdit, KoProperty::StringListEdit, KoProperty::SymbolCombo, KoProperty::TimeEdit, and KoProperty::URLEdit.
|
|
void | valueChanged (Widget *widget) |
| |
|
void | acceptInput (Widget *widget) |
| |
|
void | rejectInput (Widget *widget) |
| |
◆ Widget()
| Widget::Widget |
( |
Property * |
property, |
|
|
TQWidget * |
parent, |
|
|
const char * |
name = "property_editor" |
|
) |
| |
◆ ~Widget()
◆ drawViewer()
| void Widget::drawViewer |
( |
TQPainter * |
p, |
|
|
const TQColorGroup & |
cg, |
|
|
const TQRect & |
r, |
|
|
const TQVariant & |
value |
|
) |
| |
|
virtual |
Function to draw a property viewer when the item editor isn't shown.
Definition at line 88 of file widget.cpp.
◆ eventFilter()
| bool Widget::eventFilter |
( |
TQObject * |
watched, |
|
|
TQEvent * |
e |
|
) |
| |
|
protectedvirtual |
Filters some event for main widget, eg Enter or Esc key presses.
Definition at line 108 of file widget.cpp.
◆ hasBorders()
| bool Widget::hasBorders |
( |
| ) |
const |
- Returns
- true if this editor has borders. Editors with borders have slightly larger height and width set by property editor widget.
Definition at line 184 of file widget.cpp.
◆ isReadOnly()
| bool Widget::isReadOnly |
( |
| ) |
const |
- Returns
- true if the widget is read-only. Read-only property widget does not allow to change its property value. The flag is inherited from the underlying property and property set. Editor::setValue() method will still work, however.
- See also
- Set::isReadOnly().
Definition at line 208 of file widget.cpp.
◆ leavesTheSpaceForRevertButton()
| bool Widget::leavesTheSpaceForRevertButton |
( |
| ) |
const |
- See also
- d->leaveTheSpaceForRevertButton description
Definition at line 166 of file widget.cpp.
◆ property()
- Returns
- edited property.
Definition at line 72 of file widget.cpp.
◆ resizeEvent()
| void Widget::resizeEvent |
( |
TQResizeEvent * |
e | ) |
|
|
protectedvirtual |
◆ setEditor()
| void Widget::setEditor |
( |
TQWidget * |
editor | ) |
|
|
protected |
◆ setFocusWidget()
| void Widget::setFocusWidget |
( |
TQWidget * |
focusProxy | ) |
|
Sets the widget that will receive focus when the Widget is selected.
Definition at line 152 of file widget.cpp.
◆ setHasBorders()
| void Widget::setHasBorders |
( |
bool |
set | ) |
|
|
protected |
◆ setLeavesTheSpaceForRevertButton()
| void Widget::setLeavesTheSpaceForRevertButton |
( |
bool |
set | ) |
|
|
protected |
◆ setProperty()
| void Widget::setProperty |
( |
Property * |
property | ) |
|
|
virtual |
Sets the name of edited property.
Definition at line 78 of file widget.cpp.
◆ setReadOnly()
| void Widget::setReadOnly |
( |
bool |
readOnly | ) |
|
Sets this widget to be read-only. Disables or enables editing in the appropriate widget(s).
- See also
- isReadOnly()
Definition at line 214 of file widget.cpp.
◆ setReadOnlyInternal()
| virtual void KoProperty::Widget::setReadOnlyInternal |
( |
bool |
readOnly | ) |
|
|
protectedpure virtual |
Called by setReadOnly(bool). For implementation: for read-only you should disable editing in the appropriate widget(s).
◆ setValue()
| virtual void KoProperty::Widget::setValue |
( |
const TQVariant & |
value, |
|
|
bool |
emitChange = true |
|
) |
| |
|
pure virtual |
Sets the value shown in the item editor widget. Set emitChange to false if you don't want to emit propertyChanged signal.
◆ setVisibleFlag()
| void Widget::setVisibleFlag |
( |
bool |
visible | ) |
|
|
protected |
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 227 of file widget.cpp.
◆ undo()
Reverts the property value to previous setting.
Definition at line 101 of file widget.cpp.
◆ value()
| virtual TQVariant KoProperty::Widget::value |
( |
| ) |
const |
|
pure virtual |
- Returns
- the value currently entered in the item editor widget.
◆ visibleFlag()
| bool Widget::visibleFlag |
( |
| ) |
const |
| WidgetPrivate* KoProperty::Widget::d |
|
protected |
The documentation for this class was generated from the following files: