1 # This file was created automatically by SWIG.
12 from clip_dnd
import *
20 from stattool
import *
22 from controls
import *
24 from controls2
import *
26 from windows2
import *
30 from windows3
import *
39 def __init__(self
,this
):
42 def __del__(self
,oglcanvasc
=oglcanvasc
):
43 if self
.thisown
== 1 :
44 oglcanvasc
.delete_wxDiagram(self
)
45 def AddShape(self
, *_args
, **_kwargs
):
46 val
= apply(oglcanvasc
.wxDiagram_AddShape
,(self
,) + _args
, _kwargs
)
48 def Clear(self
, *_args
, **_kwargs
):
49 val
= apply(oglcanvasc
.wxDiagram_Clear
,(self
,) + _args
, _kwargs
)
51 def DeleteAllShapes(self
, *_args
, **_kwargs
):
52 val
= apply(oglcanvasc
.wxDiagram_DeleteAllShapes
,(self
,) + _args
, _kwargs
)
54 def DrawOutline(self
, *_args
, **_kwargs
):
55 val
= apply(oglcanvasc
.wxDiagram_DrawOutline
,(self
,) + _args
, _kwargs
)
57 def FindShape(self
, *_args
, **_kwargs
):
58 val
= apply(oglcanvasc
.wxDiagram_FindShape
,(self
,) + _args
, _kwargs
)
59 if val
: val
= wxPyShapePtr(val
)
61 def GetCanvas(self
, *_args
, **_kwargs
):
62 val
= apply(oglcanvasc
.wxDiagram_GetCanvas
,(self
,) + _args
, _kwargs
)
63 if val
: val
= wxPyShapeCanvasPtr(val
)
65 def GetCount(self
, *_args
, **_kwargs
):
66 val
= apply(oglcanvasc
.wxDiagram_GetCount
,(self
,) + _args
, _kwargs
)
68 def GetGridSpacing(self
, *_args
, **_kwargs
):
69 val
= apply(oglcanvasc
.wxDiagram_GetGridSpacing
,(self
,) + _args
, _kwargs
)
71 def GetMouseTolerance(self
, *_args
, **_kwargs
):
72 val
= apply(oglcanvasc
.wxDiagram_GetMouseTolerance
,(self
,) + _args
, _kwargs
)
74 def GetShapeList(self
, *_args
, **_kwargs
):
75 val
= apply(oglcanvasc
.wxDiagram_GetShapeList
,(self
,) + _args
, _kwargs
)
77 def GetQuickEditMode(self
, *_args
, **_kwargs
):
78 val
= apply(oglcanvasc
.wxDiagram_GetQuickEditMode
,(self
,) + _args
, _kwargs
)
80 def GetSnapToGrid(self
, *_args
, **_kwargs
):
81 val
= apply(oglcanvasc
.wxDiagram_GetSnapToGrid
,(self
,) + _args
, _kwargs
)
83 def InsertShape(self
, *_args
, **_kwargs
):
84 val
= apply(oglcanvasc
.wxDiagram_InsertShape
,(self
,) + _args
, _kwargs
)
86 def LoadFile(self
, *_args
, **_kwargs
):
87 val
= apply(oglcanvasc
.wxDiagram_LoadFile
,(self
,) + _args
, _kwargs
)
89 def ReadContainerGeometry(self
, *_args
, **_kwargs
):
90 val
= apply(oglcanvasc
.wxDiagram_ReadContainerGeometry
,(self
,) + _args
, _kwargs
)
92 def ReadLines(self
, *_args
, **_kwargs
):
93 val
= apply(oglcanvasc
.wxDiagram_ReadLines
,(self
,) + _args
, _kwargs
)
95 def ReadNodes(self
, *_args
, **_kwargs
):
96 val
= apply(oglcanvasc
.wxDiagram_ReadNodes
,(self
,) + _args
, _kwargs
)
98 def RecentreAll(self
, *_args
, **_kwargs
):
99 val
= apply(oglcanvasc
.wxDiagram_RecentreAll
,(self
,) + _args
, _kwargs
)
101 def Redraw(self
, *_args
, **_kwargs
):
102 val
= apply(oglcanvasc
.wxDiagram_Redraw
,(self
,) + _args
, _kwargs
)
104 def RemoveAllShapes(self
, *_args
, **_kwargs
):
105 val
= apply(oglcanvasc
.wxDiagram_RemoveAllShapes
,(self
,) + _args
, _kwargs
)
107 def RemoveShape(self
, *_args
, **_kwargs
):
108 val
= apply(oglcanvasc
.wxDiagram_RemoveShape
,(self
,) + _args
, _kwargs
)
110 def SaveFile(self
, *_args
, **_kwargs
):
111 val
= apply(oglcanvasc
.wxDiagram_SaveFile
,(self
,) + _args
, _kwargs
)
113 def SetCanvas(self
, *_args
, **_kwargs
):
114 val
= apply(oglcanvasc
.wxDiagram_SetCanvas
,(self
,) + _args
, _kwargs
)
116 def SetGridSpacing(self
, *_args
, **_kwargs
):
117 val
= apply(oglcanvasc
.wxDiagram_SetGridSpacing
,(self
,) + _args
, _kwargs
)
119 def SetMouseTolerance(self
, *_args
, **_kwargs
):
120 val
= apply(oglcanvasc
.wxDiagram_SetMouseTolerance
,(self
,) + _args
, _kwargs
)
122 def SetQuickEditMode(self
, *_args
, **_kwargs
):
123 val
= apply(oglcanvasc
.wxDiagram_SetQuickEditMode
,(self
,) + _args
, _kwargs
)
125 def SetSnapToGrid(self
, *_args
, **_kwargs
):
126 val
= apply(oglcanvasc
.wxDiagram_SetSnapToGrid
,(self
,) + _args
, _kwargs
)
128 def ShowAll(self
, *_args
, **_kwargs
):
129 val
= apply(oglcanvasc
.wxDiagram_ShowAll
,(self
,) + _args
, _kwargs
)
131 def Snap(self
, *_args
, **_kwargs
):
132 val
= apply(oglcanvasc
.wxDiagram_Snap
,(self
,) + _args
, _kwargs
)
135 return "<C wxDiagram instance at %s>" % (self
.this
,)
136 class wxDiagram(wxDiagramPtr
):
137 def __init__(self
,*_args
,**_kwargs
):
138 self
.this
= apply(oglcanvasc
.new_wxDiagram
,_args
,_kwargs
)
144 class wxPyShapeCanvasPtr(wxScrolledWindowPtr
):
145 def __init__(self
,this
):
148 def _setSelf(self
, *_args
, **_kwargs
):
149 val
= apply(oglcanvasc
.wxPyShapeCanvas__setSelf
,(self
,) + _args
, _kwargs
)
151 def AddShape(self
, *_args
, **_kwargs
):
152 val
= apply(oglcanvasc
.wxPyShapeCanvas_AddShape
,(self
,) + _args
, _kwargs
)
154 def FindShape(self
, *_args
, **_kwargs
):
155 val
= apply(oglcanvasc
.wxPyShapeCanvas_FindShape
,(self
,) + _args
, _kwargs
)
156 if val
: val
= wxPyShapePtr(val
)
158 def FindFirstSensitiveShape(self
, *_args
, **_kwargs
):
159 val
= apply(oglcanvasc
.wxPyShapeCanvas_FindFirstSensitiveShape
,(self
,) + _args
, _kwargs
)
160 if val
: val
= wxPyShapePtr(val
)
162 def GetDiagram(self
, *_args
, **_kwargs
):
163 val
= apply(oglcanvasc
.wxPyShapeCanvas_GetDiagram
,(self
,) + _args
, _kwargs
)
164 if val
: val
= wxDiagramPtr(val
)
166 def GetQuickEditMode(self
, *_args
, **_kwargs
):
167 val
= apply(oglcanvasc
.wxPyShapeCanvas_GetQuickEditMode
,(self
,) + _args
, _kwargs
)
169 def InsertShape(self
, *_args
, **_kwargs
):
170 val
= apply(oglcanvasc
.wxPyShapeCanvas_InsertShape
,(self
,) + _args
, _kwargs
)
172 def base_OnBeginDragLeft(self
, *_args
, **_kwargs
):
173 val
= apply(oglcanvasc
.wxPyShapeCanvas_base_OnBeginDragLeft
,(self
,) + _args
, _kwargs
)
175 def base_OnBeginDragRight(self
, *_args
, **_kwargs
):
176 val
= apply(oglcanvasc
.wxPyShapeCanvas_base_OnBeginDragRight
,(self
,) + _args
, _kwargs
)
178 def base_OnEndDragLeft(self
, *_args
, **_kwargs
):
179 val
= apply(oglcanvasc
.wxPyShapeCanvas_base_OnEndDragLeft
,(self
,) + _args
, _kwargs
)
181 def base_OnEndDragRight(self
, *_args
, **_kwargs
):
182 val
= apply(oglcanvasc
.wxPyShapeCanvas_base_OnEndDragRight
,(self
,) + _args
, _kwargs
)
184 def base_OnDragLeft(self
, *_args
, **_kwargs
):
185 val
= apply(oglcanvasc
.wxPyShapeCanvas_base_OnDragLeft
,(self
,) + _args
, _kwargs
)
187 def base_OnDragRight(self
, *_args
, **_kwargs
):
188 val
= apply(oglcanvasc
.wxPyShapeCanvas_base_OnDragRight
,(self
,) + _args
, _kwargs
)
190 def base_OnLeftClick(self
, *_args
, **_kwargs
):
191 val
= apply(oglcanvasc
.wxPyShapeCanvas_base_OnLeftClick
,(self
,) + _args
, _kwargs
)
193 def base_OnRightClick(self
, *_args
, **_kwargs
):
194 val
= apply(oglcanvasc
.wxPyShapeCanvas_base_OnRightClick
,(self
,) + _args
, _kwargs
)
196 def Redraw(self
, *_args
, **_kwargs
):
197 val
= apply(oglcanvasc
.wxPyShapeCanvas_Redraw
,(self
,) + _args
, _kwargs
)
199 def RemoveShape(self
, *_args
, **_kwargs
):
200 val
= apply(oglcanvasc
.wxPyShapeCanvas_RemoveShape
,(self
,) + _args
, _kwargs
)
202 def SetDiagram(self
, *_args
, **_kwargs
):
203 val
= apply(oglcanvasc
.wxPyShapeCanvas_SetDiagram
,(self
,) + _args
, _kwargs
)
205 def Snap(self
, *_args
, **_kwargs
):
206 val
= apply(oglcanvasc
.wxPyShapeCanvas_Snap
,(self
,) + _args
, _kwargs
)
209 return "<C wxPyShapeCanvas instance at %s>" % (self
.this
,)
210 class wxPyShapeCanvas(wxPyShapeCanvasPtr
):
211 def __init__(self
,*_args
,**_kwargs
):
212 self
.this
= apply(oglcanvasc
.new_wxPyShapeCanvas
,_args
,_kwargs
)
215 wx
._StdWindowCallbacks
(self
)
216 wx
._StdOnScrollCallbacks
(self
)
223 #-------------- FUNCTION WRAPPERS ------------------
227 #-------------- VARIABLE WRAPPERS ------------------