lib
KoProperty Namespace Reference
Detailed Description
Namespace for a set of classes implementing generic properties framework.Main classes of this framework are:
- Property, representing a single property with its own type and value
- Set, a set of properties
- Editor, a widget for displaying and editing properties provided by a Set object. Every property has its own row displayed using EditorItem object, within Editor widget. Widget class provides editing feature for EditorItem objects if a user selects a given item.
KoProperty framework also supports adding custom property types and custom property editor types using Custom Property and CustomPropertyFactory. If you cannot store your value type in a QVariant, consider using composed properties (see FactoryManager for more information) or storing it in CustomProperty yourself with handleValue() set to true.
Take a look at the test application, available in /koproperty/test to see how to use KoProperty.
Classes | |
| class | CustomProperty |
| class | SizeCustomProperty |
| class | PointCustomProperty |
| class | RectCustomProperty |
| class | SizePolicyCustomProperty |
| class | Editor |
| A listview to edit properties Editor widgets use property options using Property::option(const char *) to override default behaviour of editor items. Currently supported options are:. More... | |
| class | EditorItem |
| Item for a single property displayed within Editor object. More... | |
| class | EditorGroupItem |
| class | EditorDummyItem |
| class | BoolEdit |
| class | ThreeStateBoolEdit |
| class | ColorButton |
| class | ComboBox |
| class | CursorEdit |
| class | DateEdit |
| class | DateTimeEdit |
| class | DummyWidget |
| class | FontEdit |
| class | LineStyleEdit |
| class | PixmapEdit |
| class | PointEdit |
| class | RectEdit |
| class | SizeEdit |
| class | SizePolicyEdit |
| class | IntSpinBox |
| class | IntEdit |
| class | DoubleSpinBox |
| class | DoubleEdit |
| class | StringEdit |
| class | StringListEdit |
| class | SymbolCombo |
| class | TimeEdit |
| class | URLEdit |
| class | CustomPropertyFactory |
| class | FactoryManager |
| class | Property |
| The base class representing a single property. More... | |
| class | Set |
| Lists holding properties in groups. More... | |
| class | Buffer |
| class | GroupContainer |
| class | Widget |
| The base class for all item editors used in Editor. More... | |
| class | WidgetProxy |
|
More... | |
Enumerations | |
| enum | PropertyType { Auto = QVariant::Invalid - 1, Invalid = QVariant::Invalid, Map = QVariant::Map, List = QVariant::List, String = QVariant::String, StringList = QVariant::StringList, Font = QVariant::Font, Pixmap = QVariant::Pixmap, Rect = QVariant::Rect, Size = QVariant::Size, Color = QVariant::Color, Point = QVariant::Point, Integer = QVariant::Int, Boolean = QVariant::Bool, Double = QVariant::Double, CString = QVariant::CString, Cursor = QVariant::Cursor, SizePolicy = QVariant::SizePolicy, Date = QVariant::Date, Time = QVariant::Time, DateTime = QVariant::DateTime, ValueFromList = 2000, Symbol = 2001, FontName, FileURL, PictureFileURL, DirectoryURL, LineStyle, Size_Height = 3001, Size_Width, Point_X, Point_Y, Rect_X, Rect_Y, Rect_Width, Rect_Height, SizePolicy_HorData, SizePolicy_VerData, SizePolicy_HorStretch, SizePolicy_VerStretch, UserDefined = 4000 } |
Functions | |
| bool | hasParent (QObject *par, QObject *o) |
| static void | paintListViewExpander (QPainter *p, QWidget *w, int height, const QColorGroup &cg, bool isOpen) |
|
QMap< QCString, QVariant > | propertyValues (const Set &set) |
Variables | |
| static bool | kofficeAppDirAdded = false |
| static Property | Set_nonConstNull |
Enumeration Type Documentation
Helper function to create a value list from two string lists.
PropertyType. Integers that represent the type of the property. Plugin defined properties should have a type number >= UserDefined .
- Enumerator:
Definition at line 65 of file property.h.
Function Documentation
| bool KoProperty::hasParent | ( | QObject * | par, | |
| QObject * | o | |||
| ) | [inline] |

