gui::BoolProperty Class Reference

Property editor widget for editing CBool. More...

#include <boolproperty.h>

Inheritance diagram for gui::BoolProperty:
gui::Property

List of all members.

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

Detailed Description

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


Constructor & Destructor Documentation

gui::BoolProperty::BoolProperty ( const QString &  _name,
QWidget *  parent = 0,
PropertyFlags  _flags = defaultPropertyMode 
)

Default constructor of property item

Parameters:
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.


Member Function Documentation

void gui::BoolProperty::applyReadOnly ( bool  _readonly  )  [virtual]

Apply this value of "read only" to the property

Parameters:
_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.

Returns:
true if valid, false if not

Implements gui::Property.

void gui::BoolProperty::readValue ( IProperty pdfObject  )  [virtual]

read internal value from given PDF object

Parameters:
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

Parameters:
e resize event containing new widget size

References ed.

void gui::BoolProperty::setDisabled ( bool  disabled  )  [virtual]

Disable this control

Parameters:
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

Parameters:
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

Returns:
preferred size for this widget

References ed.


Member Data Documentation

QCheckBox* gui::BoolProperty::ed [protected]

checkbox used for editing the value

Referenced by applyReadOnly(), BoolProperty(), readValue(), resizeEvent(), setDisabled(), setValue(), sizeHint(), and ~BoolProperty().


The documentation for this class was generated from the following files: