1
<?xml version="1.0" encoding="UTF-8"?>
2
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
4
Father="DocumentObjectExtensionPy"
5
Name="GroupExtensionPy"
7
TwinPointer="GroupExtension"
8
Include="App/DocumentObjectGroup.h"
10
FatherInclude="App/DocumentObjectExtensionPy.h"
11
FatherNamespace="App">
13
<Author Licence="LGPL" Name="Werner Mayer" EMail="wmayer@users.sourceforge.net" />
14
<UserDocu>Extension class which allows grouping of document objects</UserDocu>
16
<Methode Name="newObject">
18
<UserDocu>Create and add an object with given type and name to the group</UserDocu>
21
<Methode Name="addObject">
23
<UserDocu>Add an object to the group. Returns all objects that have been added.</UserDocu>
26
<Methode Name="addObjects">
28
<UserDocu>Adds multiple objects to the group. Expects a list and returns all objects that have been added.</UserDocu>
31
<Methode Name="setObjects">
33
<UserDocu>Sets the objects of the group. Expects a list and returns all objects that are now in the group.</UserDocu>
36
<Methode Name="removeObject">
38
<UserDocu>Remove an object from the group and returns all objects that have been removed.</UserDocu>
41
<Methode Name="removeObjects">
43
<UserDocu>Remove multiple objects from the group. Expects a list and returns all objects that have been removed.</UserDocu>
46
<Methode Name="removeObjectsFromDocument">
48
<UserDocu>Remove all child objects from the group and document</UserDocu>
51
<Methode Name="getObject">
53
<UserDocu>Return the object with the given name</UserDocu>
56
<Methode Name="hasObject">
58
<UserDocu>hasObject(obj, recursive=false)
59
Checks if the group has a given object
60
@param obj the object to check for.
61
@param recursive if true check also if the obj is child of some sub group (default is false).