Property editor widget for editing CString. More...
#include <stringproperty.h>
Public Member Functions | |
| virtual QSize | sizeHint () const |
| virtual void | resizeEvent (QResizeEvent *e) |
| StringProperty (const QString &_name, QWidget *parent=0, PropertyFlags _flags=defaultPropertyMode) | |
| virtual | ~StringProperty () |
| virtual void | setValue (IProperty *pdfObject) |
| virtual void | readValue (IProperty *pdfObject) |
| virtual void | setDisabled (bool disabled) |
| virtual void | applyReadOnly (bool _readonly) |
| virtual bool | isValid () |
Protected Slots | |
| void | emitChange () |
| void | enableChange (const QString &newText) |
Protected Attributes | |
| QLineEdit * | ed |
Property editor widget for editing CString.
Class for widget containing one editable property of type "String"
Used as one item type in property editor
| gui::StringProperty::StringProperty | ( | 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, emitChange(), enableChange(), and gui::Property::modifyColor().
| gui::StringProperty::~StringProperty | ( | ) | [virtual] |
default destructor
References ed.
| void gui::StringProperty::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::StringProperty::emitChange | ( | ) | [protected, slot] |
Called when text is accepted
References gui::Property::changed, and gui::Property::propertyChanged().
Referenced by StringProperty().
| void gui::StringProperty::enableChange | ( | const QString & | newText | ) | [protected, slot] |
Called when text changes
| newText | value of new text |
References gui::Property::changed.
Referenced by StringProperty().
| bool gui::StringProperty::isValid | ( | ) | [virtual] |
Check if edited property is currently valid.
Implements gui::Property.
References ed.
| void gui::StringProperty::readValue | ( | IProperty * | pdfObject | ) | [virtual] |
read internal value from given PDF object
| pdfObject | Object to read from |
Implements gui::Property.
Reimplemented in gui::IntProperty, gui::NameProperty, and gui::RealProperty.
References gui::Property::changed, util::convertToUnicode(), ed, pdfobjects::CObjectSimple< Tp >::getValue(), and util::PDF.
| void gui::StringProperty::resizeEvent | ( | QResizeEvent * | e | ) | [virtual] |
Called on resizing of property editing control
| e | resize event containing new widget size |
References ed.
| void gui::StringProperty::setDisabled | ( | bool | disabled | ) | [virtual] |
Disable this control
| disabled | True to disable, false to enable |
Implements gui::Property.
References ed.
| void gui::StringProperty::setValue | ( | IProperty * | pdfObject | ) | [virtual] |
write internal value to given PDF object
| pdfObject | Object to write to |
Implements gui::Property.
Reimplemented in gui::IntProperty, gui::NameProperty, and gui::RealProperty.
References gui::Property::changed, util::convertFromUnicode(), ed, gui::Property::effectiveReadonly, util::PDF, and pdfobjects::CObjectSimple< Tp >::setValue().
| QSize gui::StringProperty::sizeHint | ( | ) | const [virtual] |
return size hint of this property editing control
References ed.
QLineEdit* gui::StringProperty::ed [protected] |
one line edit control used for editing the value
Referenced by applyReadOnly(), gui::IntProperty::IntProperty(), isValid(), readValue(), gui::RealProperty::readValue(), gui::NameProperty::readValue(), gui::IntProperty::readValue(), gui::RealProperty::RealProperty(), resizeEvent(), setDisabled(), setValue(), gui::RealProperty::setValue(), gui::NameProperty::setValue(), gui::IntProperty::setValue(), sizeHint(), StringProperty(), and ~StringProperty().