Property Types
These are the values that the type field of a PropDescription record can take:Basic property types
In the XML file, STRING, FILE and MULTISTRING have an identical representation.
- PROP_TYPE_CHAR: a single character property.
- PROP_TYPE_BOOL: a boolean value; appears like a checkbox.
- PROP_TYPE_INT: an integer value; appears like an edit widget with an up/down spin control.
- PROP_TYPE_ENUM: a value taken in a list of possible values. Appears like a drop-down list. The extra_data field of the PropDescription must point to a NULL-terminated constant array of PropEnumData
- PROP_TYPE_STRING: a single line of text. Appears like a single-line edit widget. The value can not contain any \n character.
- PROP_TYPE_MULTISTRING: some text, possibly with multiple lines. The edit widgets will have a height of ((gint)(extra_data)) (ie, extra_data is a value like GINT_TO_PTR(5) if you want five lines).
- PROP_TYPE_FILE: just like PROP_TYPE_STRING, except that there is a button next to the edit widget, which pops up a file chooser dialog.
- PROP_TYPE_REAL: a floating-point value. Appears like a single-line edit widget.
- PROP_TYPE_LINESTYLE: a line style selector widget.
- PROP_TYPE_ARROW: an arrow style selector widget.
- PROP_TYPE_COLOUR: an colour selector widget.
- PROP_TYPE_FONT: a font selector widget.
Visual aspect properties
These property types are solely used for organising the property dialog; they have no impact on the behaviour of the dialog.
- PROP_TYPE_STATIC: some static text (the contents of the tooltip field of the PropDescription is used)
- heh, time to go to work.
Invisible properties
These property types are only used for copy/paste and XML operations; they never appear on a property dialog
- PROP_TYPE_TEXT: this describe a Text subobject inside the object. (Text objects are typically editable directly in the main window).
- PROP_TYPE_POINT: a single point.
- PROP_TYPE_BEZPOINT: a single Bezier point (point plus tangency characteristics)
- PROP_TYPE_RECT: a pair of points describing a rectangle.
- PROP_TYPE_ENDPOINTS: a pair of points describing the endpoints of a line.
- PROP_TYPE_CONNPOINT_LINE: a ConnPoint?_Line.
Special stuff, not generally useful
- PROP_TYPE_INVALID: an invalid property.
- PROP_TYPE_NOOP: takes spaces, does nothing.
- PROP_TYPE_UNIMPLEMENTED: a non-implemented property.
-- CyrilleChepelov - 04 Sep 2002
- PROP_TYPE_ENUMARRAY, PROP_TYPE_INTARRAY: I don't remember :-(
| Edit -:- Attach -:- Ref-By -:- Printable -:- More |