Property editor widget for editing CName. More...
#include <nameproperty.h>
Public Member Functions | |
| NameProperty (const QString &_name, QWidget *parent=0, PropertyFlags _flags=defaultPropertyMode) | |
| virtual | ~NameProperty () |
| virtual void | setValue (pdfobjects::IProperty *pdfObject) |
| virtual void | readValue (pdfobjects::IProperty *pdfObject) |
Property editor widget for editing CName.
Class for widget containing one editable property of type "Name"
Basically, CName is CString, but we might want differentiation in case we'll handle names specially in future
Used as one item type in property editor
| gui::NameProperty::NameProperty | ( | 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) |
| gui::NameProperty::~NameProperty | ( | ) | [virtual] |
default destructor
| void gui::NameProperty::readValue | ( | pdfobjects::IProperty * | pdfObject | ) | [virtual] |
read internal value from given PDF object
| pdfObject | Object to read from |
Reimplemented from gui::StringProperty.
References gui::Property::changed, util::convertToUnicode(), gui::StringProperty::ed, pdfobjects::CObjectSimple< Tp >::getValue(), and util::PDF.
| void gui::NameProperty::setValue | ( | pdfobjects::IProperty * | pdfObject | ) | [virtual] |
write internal value to given PDF object
| pdfObject | Object to write to |
Reimplemented from gui::StringProperty.
References gui::Property::changed, util::convertFromUnicode(), gui::StringProperty::ed, gui::Property::effectiveReadonly, util::PDF, and pdfobjects::CObjectSimple< Tp >::setValue().