1
<?xml version="1.0" encoding="UTF-8"?>
2
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
8
Include="Gui/Document.h"
10
FatherInclude="Base/PersistencePy.h"
11
FatherNamespace="Base">
13
<Author Licence="LGPL" Name="Werner Mayer" EMail="wmayer@users.sourceforge.net" />
14
<UserDocu>This is a Document class</UserDocu>
18
<UserDocu>show(objName) -> None
23
Name of the `Gui.ViewProvider` to show.</UserDocu>
28
<UserDocu>hide(objName) -> None
33
Name of the `Gui.ViewProvider` to hide.</UserDocu>
36
<Methode Name="setPos">
38
<UserDocu>setPos(objName, matrix) -> None
40
Set the position of an object.
43
Name of the `Gui.ViewProvider`.
46
Transformation to apply on the object.</UserDocu>
49
<Methode Name="setEdit">
51
<UserDocu>setEdit(obj, mod=0, subName) -> bool
53
Set an object in edit mode.
55
obj : str, App.DocumentObject, Gui.ViewPrivider
56
Object to set in edit mode.
60
Subelement name. Optional.</UserDocu>
63
<Methode Name="getInEdit">
65
<UserDocu>getInEdit() -> Gui.ViewProviderDocumentObject or None
67
Returns the current object in edit mode or None if there is no such object.</UserDocu>
70
<Methode Name="resetEdit">
72
<UserDocu>resetEdit() -> None
74
End the current editing.</UserDocu>
77
<Methode Name="addAnnotation">
79
<UserDocu>addAnnotation(annoName, fileName, modName) -> None
81
Add an Inventor object from a file.
88
Display mode name. Optional.</UserDocu>
91
<Methode Name="update">
93
<UserDocu>update() -> None
95
Update the view representations of all objects.</UserDocu>
98
<Methode Name="getObject">
100
<UserDocu>getObject(objName) -> object or None
102
Return the object with the given name. If no one exists, return None.
105
Object name.</UserDocu>
108
<Methode Name="activeObject">
110
<UserDocu>activeObject() -> object or None
112
The active object of the document. Deprecated, use ActiveObject.</UserDocu>
115
<Methode Name="activeView">
117
<UserDocu>activeView() -> object or None
119
The active view of the document. Deprecated, use ActiveView.</UserDocu>
122
<Methode Name="mdiViewsOfType" Const="true">
124
<UserDocu>mdiViewsOfType(type) -> list of MDIView
126
Return a list of mdi views of a given type.
129
Type name.</UserDocu>
132
<Methode Name="save">
134
<UserDocu>save() -> bool
136
Attempts to save the document</UserDocu>
139
<Methode Name="saveAs">
141
<UserDocu>saveAs() -> bool
143
Attempts to save the document under a new name</UserDocu>
146
<Methode Name="sendMsgToViews">
148
<UserDocu>sendMsgToViews(msg) -> None
150
Send a message to all views of the document.
155
<Methode Name="mergeProject">
157
<UserDocu>mergeProject(fileName) -> None
159
Merges this document with another project file.
162
File name.</UserDocu>
165
<Methode Name="toggleTreeItem">
167
<UserDocu>toggleTreeItem(obj, mod=0, subName) -> None
169
Change TreeItem of a document object.
171
obj : App.DocumentObject
174
0: Toggle, 1: Collapse, 2: Expand, 3: Expand path.
176
Subelement name. Optional.</UserDocu>
179
<Methode Name="scrollToTreeItem">
181
<UserDocu>scrollToTreeItem(obj) -> None
183
Scroll the tree view to the item of a view object.
185
obj : Gui.ViewProviderDocumentObject</UserDocu>
188
<Methode Name="toggleInSceneGraph">
190
<UserDocu>toggleInSceneGraph(obj) -> None
192
Add or remove view object from scene graph of all views depending
193
on its canAddToSceneGraph().
195
obj : Gui.ViewProvider</UserDocu>
198
<Attribute Name="ActiveObject" ReadOnly="false">
200
<UserDocu>The active object of the document.</UserDocu>
202
<Parameter Name="ActiveObject" Type="Object" />
204
<Attribute Name="ActiveView" ReadOnly="false">
206
<UserDocu>The active view of the document.</UserDocu>
208
<Parameter Name="ActiveView" Type="Object" />
210
<Attribute Name="EditingTransform">
212
<UserDocu>The editing transformation matrix.</UserDocu>
214
<Parameter Name="EditingTransform" Type="Object" />
216
<Attribute Name="InEditInfo">
218
<UserDocu>A tuple(obj,subname,subElement,editMode) of editing object reference, or None if no object is in edit.</UserDocu>
220
<Parameter Name="InEditInfo" Type="Object" />
222
<Attribute Name="EditMode" ReadOnly="true">
224
<UserDocu>Current edit mode. Only meaningful when there is a current object in edit.</UserDocu>
226
<Parameter Name="EditMode" Type="Int" />
228
<Attribute Name="Document" ReadOnly="true">
230
<UserDocu>The related App document to this Gui document.</UserDocu>
232
<Parameter Name="Document" Type="Object" />
234
<Attribute Name="Transacting" ReadOnly="true">
236
<UserDocu>Indicate whether the document is undoing/redoing.</UserDocu>
238
<Parameter Name="Transacting" Type="Boolean" />
240
<Attribute Name="Modified">
242
<UserDocu>Returns True if the document is marked as modified, and False otherwise.</UserDocu>
244
<Parameter Name="Modified" Type="Boolean" />
246
<Attribute Name="TreeRootObjects" ReadOnly="true">
248
<UserDocu>The list of tree root objects.</UserDocu>
250
<Parameter Name="TreeRootObjects" Type="List" />