#include <set.h>
◆ Set() [1/3]
| Set::Set |
( |
TQObject * | parent = 0, |
|
|
const TQString & | typeName = TQString() ) |
|
explicit |
◆ Set() [2/3]
| Set::Set |
( |
const Set & | set | ) |
|
|
explicit |
Constructs a deep copy of set. The new object will not have a TQObject parent even if set has such parent.
Definition at line 142 of file set.cpp.
◆ ~Set()
◆ Set() [3/3]
| Set::Set |
( |
bool | propertyOwner | ) |
|
|
protected |
Constructs a set which owns or does not own it's properties.
Definition at line 149 of file set.cpp.
◆ aboutToBeCleared
| void KoProperty::Set::aboutToBeCleared |
( |
| ) |
|
|
signal |
Emitted when property set object is about to be cleared (using clear()). This signal is also emmited from destructor before emitting aboutToBeDeleted().
◆ aboutToBeDeleted
| void KoProperty::Set::aboutToBeDeleted |
( |
| ) |
|
|
signal |
Emitted when property set object is about to be deleted.
◆ aboutToDeleteProperty
Emitted when property is about to be deleted.
◆ addProperty()
| void Set::addProperty |
( |
Property * | property, |
|
|
TQCString | group = "common" ) |
Adds the property to the set, in the group. You can use any group name, except "common" (which is already used for basic group).
Definition at line 196 of file set.cpp.
◆ addPropertyInternal()
| void Set::addPropertyInternal |
( |
Property * | property, |
|
|
TQCString | group, |
|
|
bool | updateSortingKey ) |
|
protected |
Adds the property to the set, in the group. You can use any group name, except "common" (which is already used for basic group). If updateSortingKey is true, the sorting key will be set automatically to count().
Definition at line 168 of file set.cpp.
◆ addToGroup()
| void Set::addToGroup |
( |
const TQCString & | group, |
|
|
Property * | property ) |
|
protected |
Adds property to a group.
Definition at line 252 of file set.cpp.
◆ changeProperty()
| void Set::changeProperty |
( |
const TQCString & | property, |
|
|
const TQVariant & | value ) |
◆ clear()
Removes all properties from the property set and destroys them.
Definition at line 226 of file set.cpp.
◆ contains()
| bool Set::contains |
( |
const TQCString & | name | ) |
const |
- Returns
- true if the set contains property names name.
Definition at line 356 of file set.cpp.
◆ count()
| uint Set::count |
( |
| ) |
const |
- Returns
- the number of items in the set.
Definition at line 332 of file set.cpp.
◆ debug()
Prints debug output for this set.
Definition at line 406 of file set.cpp.
◆ groupDescription()
| TQString Set::groupDescription |
( |
const TQCString & | group | ) |
const |
- Returns
- the i18n'ed description string for group that will be shown in Editor to represent group. If there is no special description set for the group, group is just returned.
Definition at line 310 of file set.cpp.
◆ groupIcon()
| TQString Set::groupIcon |
( |
const TQCString & | group | ) |
const |
- Returns
- the icons name for group.
Definition at line 324 of file set.cpp.
◆ groupNames()
| const TQValueList< TQCString > & Set::groupNames |
( |
| ) |
const |
- Returns
- a list of all group names. The order is the same as the order of creation.
Definition at line 292 of file set.cpp.
◆ informAboutClearing()
| void Set::informAboutClearing |
( |
bool & | cleared | ) |
|
|
protected |
◆ isEmpty()
| bool Set::isEmpty |
( |
| ) |
const |
- Returns
- true if the set is empty, i.e. count() == 0; otherwise returns false.
Definition at line 338 of file set.cpp.
◆ isReadOnly()
| bool Set::isReadOnly |
( |
| ) |
const |
- Returns
- true if the set is read-only. In read-only property set, no property can be modified regardless of read-only flag of any property (see Property::isReadOnly()). On the other hand, if Property::isReadOnly() is true of a property and Set::isReadOnly() is false, the property is still read-only. Read-only property set prevents editing in the property editor. By default the set is read-write.
Definition at line 344 of file set.cpp.
◆ operator=()
| const Set & Set::operator= |
( |
const Set & | set | ) |
|
Creates a deep copy of set and assigns it to this property set.
updateSortingKey, because the key is already set in Property copy ctor.
Definition at line 374 of file set.cpp.
◆ operator[]()
| Property & Set::operator[] |
( |
const TQCString & | name | ) |
const |
Accesses a property by it's name. Property reference is returned, so all property modifications are allowed. If there is no such property, null property is returned, so it's good practice to use contains() is you're unsure if the property exists. For example, to set a value of a property, use: /code Set set; ... if (!set.contains("myProperty")) { dosomething; } set["myProperty"].setValue("My Value"); /endcode - Returns
- Property with given name.
Definition at line 368 of file set.cpp.
◆ prevSelection()
| TQCString Set::prevSelection |
( |
| ) |
const |
Used by property editor to preserve previous selection when this set is assigned again.
Definition at line 420 of file set.cpp.
◆ property()
| Property & Set::property |
( |
const TQCString & | name | ) |
const |
- Returns
- property named with name. If no such property is found, null property (Property::null) is returned.
Definition at line 362 of file set.cpp.
◆ propertyChanged
Emitted when the value of the property is changed.
◆ propertyNamesForGroup()
| const TQValueList< TQCString > & Set::propertyNamesForGroup |
( |
const TQCString & | group | ) |
const |
- Returns
- a list of all property names. The order is the same as the order of creation.
Definition at line 298 of file set.cpp.
◆ propertyReset
Emitted when the value of the property is reset.
◆ removeFromGroup()
| void Set::removeFromGroup |
( |
Property * | property | ) |
|
|
protected |
Removes property from a group.
Definition at line 274 of file set.cpp.
◆ removeProperty() [1/2]
| void Set::removeProperty |
( |
const TQCString & | name | ) |
|
◆ removeProperty() [2/2]
| void Set::removeProperty |
( |
Property * | property | ) |
|
Removes property from the set. Emits aboutToDeleteProperty before removing.
Definition at line 202 of file set.cpp.
◆ setGroupDescription()
| void Set::setGroupDescription |
( |
const TQCString & | group, |
|
|
const TQString & | desc ) |
Sets the i18n'ed string that will be shown in Editor to represent group.
Definition at line 304 of file set.cpp.
◆ setGroupIcon()
| void Set::setGroupIcon |
( |
const TQCString & | group, |
|
|
const TQString & | icon ) |
Sets the icon name icon to be displayed for group.
Definition at line 318 of file set.cpp.
◆ setPrevSelection()
| void Set::setPrevSelection |
( |
const TQCString & | prevSelection | ) |
|
◆ setReadOnly()
| void Set::setReadOnly |
( |
bool | readOnly | ) |
|
◆ typeName()
| TQString Set::typeName |
( |
| ) |
const |
A name of this property set type, that is usable when we want to know if two property set objects have the same type. This avoids e.g. reloading of all Editor's contents. Also, this allows to know if two property set objects are compatible by their property sets. For comparing purposes, type names are case insensitive.
Definition at line 432 of file set.cpp.
◆ Buffer
◆ Iterator
◆ Property
| SetPrivate* KoProperty::Set::d |
|
protected |
The documentation for this class was generated from the following files:
|