Property editor widget for editing CBool. More...
#include <boolproperty.h>
Public Member Functions | |
| virtual QSize | sizeHint () const |
| virtual void | resizeEvent (QResizeEvent *e) |
| BoolProperty (const QString &_name, QWidget *parent=0, PropertyFlags _flags=defaultPropertyMode) | |
| virtual | ~BoolProperty () |
| virtual void | setDisabled (bool disabled) |
| virtual void | applyReadOnly (bool _readonly) |
| virtual void | setValue (IProperty *pdfObject) |
| virtual void | readValue (IProperty *pdfObject) |
| virtual bool | isValid () |
Protected Slots | |
| void | emitChange () |
Protected Attributes | |
| QCheckBox * | ed |
Property editor widget for editing CBool.
BoolProperty - class for widget containing one editable property of type "Bool" (represented by checkbox)
Used as one item type in property editor
| gui::BoolProperty::BoolProperty | ( | const QString & | _name, | |
| QWidget * | parent = 0, |
|||
| PropertyFlags | _flags = defaultPropertyMode | |||
| ) |
Default constructor of property item
| parent | parent Property Editor containing this control | |
| _name | name of this property | |
| _flags | flags of this property items (default 0) |
References ed, and emitChange().
| gui::BoolProperty::~BoolProperty | ( | ) | [virtual] |
default destructor
References ed.
| void gui::BoolProperty::applyReadOnly | ( | bool | _readonly | ) | [virtual] |
Apply this value of "read only" to the property
| _readonly | True for read-only, false for read-write |
Implements gui::Property.
References ed.
| void gui::BoolProperty::emitChange | ( | ) | [protected, slot] |
Called when clicked on the checkbox
References gui::Property::propertyChanged().
Referenced by BoolProperty().
| bool gui::BoolProperty::isValid | ( | ) | [virtual] |
Check if edited property is currently valid.
Implements gui::Property.
| void gui::BoolProperty::readValue | ( | IProperty * | pdfObject | ) | [virtual] |
read internal value from given PDF object
| pdfObject | Object to read from |
Implements gui::Property.
References gui::Property::changed, ed, and pdfobjects::CObjectSimple< Tp >::getValue().
| void gui::BoolProperty::resizeEvent | ( | QResizeEvent * | e | ) | [virtual] |
Called on resizing of property editing control
| e | resize event containing new widget size |
References ed.
| void gui::BoolProperty::setDisabled | ( | bool | disabled | ) | [virtual] |
Disable this control
| disabled | True to disable, false to enable |
Implements gui::Property.
References ed.
| void gui::BoolProperty::setValue | ( | IProperty * | pdfObject | ) | [virtual] |
write internal value to given PDF object
| pdfObject | Object to write to |
Implements gui::Property.
References gui::Property::changed, ed, gui::Property::effectiveReadonly, and pdfobjects::CObjectSimple< Tp >::setValue().
| QSize gui::BoolProperty::sizeHint | ( | ) | const [virtual] |
return size hint of this property editing control
References ed.
QCheckBox* gui::BoolProperty::ed [protected] |
checkbox used for editing the value
Referenced by applyReadOnly(), BoolProperty(), readValue(), resizeEvent(), setDisabled(), setValue(), sizeHint(), and ~BoolProperty().