gui::StringProperty Class Reference

Property editor widget for editing CString. More...

#include <stringproperty.h>

Inheritance diagram for gui::StringProperty:
gui::Property gui::IntProperty gui::NameProperty gui::RealProperty

List of all members.

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

Detailed Description

Property editor widget for editing CString.

Class for widget containing one editable property of type "String"
Used as one item type in property editor


Constructor & Destructor Documentation

gui::StringProperty::StringProperty ( 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, emitChange(), enableChange(), and gui::Property::modifyColor().

gui::StringProperty::~StringProperty (  )  [virtual]

default destructor

References ed.


Member Function Documentation

void gui::StringProperty::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::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

Parameters:
newText value of new text

References gui::Property::changed.

Referenced by StringProperty().

bool gui::StringProperty::isValid (  )  [virtual]

Check if edited property is currently valid.

Returns:
true if valid, false if not

Implements gui::Property.

References ed.

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

read internal value from given PDF object

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

Parameters:
e resize event containing new widget size

References ed.

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

Disable this control

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

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

Returns:
preferred size for this widget

References ed.


Member Data Documentation

QLineEdit* gui::StringProperty::ed [protected]

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