1<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
2<!--
3wxFormBuilder - A Visual Dialog Editor for wxWidgets.
4Copyright (C) 2005 José Antonio Hurtado
5
6This program is free software; you can redistribute it and/or
7modify it under the terms of the GNU General Public License
8as published by the Free Software Foundation; either version 2
9of the License, or (at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
18Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19
20Written by
21  José Antonio Hurtado - joseantonio.hurtado@gmail.com
22  Juan Antonio Ortega  - jortegalalmolda@gmail.com
23
24PHP code generation written by
25 Jefferson González - jgmdev@gmail.com
26-->
27<codegen language="PHP">
28
29  <templates class="wxTreeCtrl">
30    <template name="construction">@$this->$name = new #class( #wxparent $name, $id, $pos, $size, $style #ifnotnull $window_style @{ |$window_style @} #ifnotnull $window_name @{, wxDefaultValidator, $window_name @} );</template>
31	<template name="evt_connect_OnTreeGetInfo">@$this->$name->Connect( wxEVT_COMMAND_TREE_GET_INFO, #handler );</template>
32	<template name="evt_connect_OnTreeSetInfo">@$this->$name->Connect( wxEVT_COMMAND_TREE_SET_INFO, #handler );</template>
33	<template name="evt_connect_OnTreeItemGetTooltip">@$this->$name->Connect( wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP, #handler );</template>
34	<template name="evt_connect_OnTreeStateImageClick">@$this->$name->Connect( wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK, #handler );</template>
35  </templates>
36
37  <templates class="wxDataViewCtrl">
38	<template name="declaration">#class* $name;</template>
39	<template name="construction">
40		@/* WARNING: PHP code generation isn't supported for this widget yet. */#nl
41		@$this->$name = new wxWindow( #wxparent $name );
42	</template>
43	<template name="evt_connect_OnDataViewCtrlSelectionChanged">// event wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED isn't currently supported by wxPHP</template>
44	<template name="evt_connect_OnDataViewCtrlItemActivated">// event wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED isn't currently supported by wxPHP</template>
45	<template name="evt_connect_OnDataViewCtrlItemStartEditing">// event wxEVT_COMMAND_DATAVIEW_ITEM_START_EDITING isn't currently supported by wxPHP</template>
46	<template name="evt_connect_OnDataViewCtrlItemEditingStarted">// event wxEVT_COMMAND_DATAVIEW_ITEM_EDITING_STARTED isn't currently supported by wxPHP</template>
47	<template name="evt_connect_OnDataViewCtrlItemEditingDone">// event wxEVT_COMMAND_DATAVIEW_ITEM_EDITING_DONE isn't currently supported by wxPHP</template>
48	<template name="evt_connect_OnDataViewCtrlItemCollapsing">// event wxEVT_COMMAND_DATAVIEW_ITEM_COLLAPSING isn't currently supported by wxPHP</template>
49	<template name="evt_connect_OnDataViewCtrlItemCollapsed">// event wxEVT_COMMAND_DATAVIEW_ITEM_COLLAPSED isn't currently supported by wxPHP</template>
50	<template name="evt_connect_OnDataViewCtrlItemExpanding">// event wxEVT_COMMAND_DATAVIEW_ITEM_EXPANDING isn't currently supported by wxPHP</template>
51	<template name="evt_connect_OnDataViewCtrlItemExpanded">// event wxEVT_COMMAND_DATAVIEW_ITEM_EXPANDED isn't currently supported by wxPHP</template>
52	<template name="evt_connect_OnDataViewCtrlItemValueChanged">// event wxEVT_COMMAND_DATAVIEW_ITEM_VALUE_CHANGED isn't currently supported by wxPHP</template>
53	<template name="evt_connect_OnDataViewCtrlItemContextMenu">// event wxEVT_COMMAND_DATAVIEW_ITEM_CONTEXT_MENU isn't currently supported by wxPHP</template>
54	<template name="evt_connect_OnDataViewCtrlColumnHeaderClick">// event wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_CLICK isn't currently supported by wxPHP</template>
55	<template name="evt_connect_OnDataViewCtrlColumnHeaderRightClick">// event wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_RIGHT_CLICK isn't currently supported by wxPHP</template>
56	<template name="evt_connect_OnDataViewCtrlColumnSorted">// event wxEVT_COMMAND_DATAVIEW_COLUMN_SORTED isn't currently supported by wxPHP</template>
57	<template name="evt_connect_OnDataViewCtrlColumnReordered">// event wxEVT_COMMAND_DATAVIEW_COLUMN_REORDERED isn't currently supported by wxPHP</template>
58	<template name="evt_connect_OnDataViewCtrlItemBeginDrag">// event wxEVT_COMMAND_DATAVIEW_ITEM_BEGIN_DRAG isn't currently supported by wxPHP</template>
59	<template name="evt_connect_OnDataViewCtrlItemDropPossible">// event wxEVT_COMMAND_DATAVIEW_ITEM_DROP_POSSIBLE isn't currently supported by wxPHP</template>
60	<template name="evt_connect_OnDataViewCtrlItemDrop">// event wxEVT_COMMAND_DATAVIEW_ITEM_DROP isn't currently supported by wxPHP</template>
61  </templates>
62
63  <templates class="wxDataViewTreeCtrl">
64	<template name="declaration">#class* $name;</template>
65	<template name="construction">
66		@/* WARNING: PHP code generation isn't supported for this widget yet. */#nl
67		@$this->$name = new wxWindow( #wxparent $name );
68	</template>
69	<template name="evt_connect_OnDataViewTreeCtrlSelectionChanged">// event wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED isn't currently supported by wxPHP</template>
70	<template name="evt_connect_OnDataViewTreeCtrlItemActivated">// event wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED isn't currently supported by wxPHP</template>
71	<template name="evt_connect_OnDataViewTreeCtrlItemStartEditing">// event wxEVT_COMMAND_DATAVIEW_ITEM_START_EDITING isn't currently supported by wxPHP</template>
72	<template name="evt_connect_OnDataViewTreeCtrlItemEditingStarted">// event wxEVT_COMMAND_DATAVIEW_ITEM_EDITING_STARTED isn't currently supported by wxPHP</template>
73	<template name="evt_connect_OnDataViewTreeCtrlItemEditingDone">// event wxEVT_COMMAND_DATAVIEW_ITEM_EDITING_DONE isn't currently supported by wxPHP</template>
74	<template name="evt_connect_OnDataViewTreeCtrlItemCollapsing">// event wxEVT_COMMAND_DATAVIEW_ITEM_COLLAPSING isn't currently supported by wxPHP</template>
75	<template name="evt_connect_OnDataViewTreeCtrlItemCollapsed">// event wxEVT_COMMAND_DATAVIEW_ITEM_COLLAPSED isn't currently supported by wxPHP</template>
76	<template name="evt_connect_OnDataViewTreeCtrlItemExpanding">// event wxEVT_COMMAND_DATAVIEW_ITEM_EXPANDING isn't currently supported by wxPHP</template>
77	<template name="evt_connect_OnDataViewTreeCtrlItemExpanded">// event wxEVT_COMMAND_DATAVIEW_ITEM_EXPANDED isn't currently supported by wxPHP</template>
78	<template name="evt_connect_OnDataViewTreeCtrlItemValueChanged">// event wxEVT_COMMAND_DATAVIEW_ITEM_VALUE_CHANGED isn't currently supported by wxPHP</template>
79	<template name="evt_connect_OnDataViewTreeCtrlItemContextMenu">// event wxEVT_COMMAND_DATAVIEW_ITEM_CONTEXT_MENU isn't currently supported by wxPHP</template>
80	<template name="evt_connect_OnDataViewTreeCtrlColumnHeaderClick">// event wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_CLICK isn't currently supported by wxPHP</template>
81	<template name="evt_connect_OnDataViewTreeCtrlColumnHeaderRightClick">// event wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_RIGHT_CLICK isn't currently supported by wxPHP</template>
82	<template name="evt_connect_OnDataViewTreeCtrlColumnSorted">// event wxEVT_COMMAND_DATAVIEW_COLUMN_SORTED isn't currently supported by wxPHP</template>
83	<template name="evt_connect_OnDataViewTreeCtrlColumnReordered">// event wxEVT_COMMAND_DATAVIEW_COLUMN_REORDERED isn't currently supported by wxPHP</template>
84	<template name="evt_connect_OnDataViewTreeCtrlItemBeginDrag">// event wxEVT_COMMAND_DATAVIEW_ITEM_BEGIN_DRAG isn't currently supported by wxPHP</template>
85	<template name="evt_connect_OnDataViewTreeCtrlItemDropPossible">// event wxEVT_COMMAND_DATAVIEW_ITEM_DROP_POSSIBLE isn't currently supported by wxPHP</template>
86	<template name="evt_connect_OnDataViewTreeCtrlItemDrop">// event wxEVT_COMMAND_DATAVIEW_ITEM_DROP isn't currently supported by wxPHP</template>
87  </templates>
88
89  <templates class="wxDataViewListCtrl">
90	<template name="declaration">#class* $name;</template>
91	<template name="construction">
92		@/* WARNING: PHP code generation isn't supported for this widget yet. */#nl
93		@$this->$name = new wxWindow( #wxparent $name );
94	</template>
95	<template name="evt_connect_OnDataViewListCtrlSelectionChanged">// event wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED isn't currently supported by wxPHP</template>
96	<template name="evt_connect_OnDataViewListCtrlItemActivated">// event wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED isn't currently supported by wxPHP</template>
97	<template name="evt_connect_OnDataViewListCtrlItemStartEditing">// event wxEVT_COMMAND_DATAVIEW_ITEM_START_EDITING isn't currently supported by wxPHP</template>
98	<template name="evt_connect_OnDataViewListCtrlItemEditingStarted">// event wxEVT_COMMAND_DATAVIEW_ITEM_EDITING_STARTED isn't currently supported by wxPHP</template>
99	<template name="evt_connect_OnDataViewListCtrlItemEditingDone">// event wxEVT_COMMAND_DATAVIEW_ITEM_EDITING_DONE isn't currently supported by wxPHP</template>
100	<template name="evt_connect_OnDataViewListCtrlItemCollapsing">// event wxEVT_COMMAND_DATAVIEW_ITEM_COLLAPSING isn't currently supported by wxPHP</template>
101	<template name="evt_connect_OnDataViewListCtrlItemCollapsed">// event wxEVT_COMMAND_DATAVIEW_ITEM_COLLAPSED isn't currently supported by wxPHP</template>
102	<template name="evt_connect_OnDataViewListCtrlItemExpanding">// event wxEVT_COMMAND_DATAVIEW_ITEM_EXPANDING isn't currently supported by wxPHP</template>
103	<template name="evt_connect_OnDataViewListCtrlItemExpanded">// event wxEVT_COMMAND_DATAVIEW_ITEM_EXPANDED isn't currently supported by wxPHP</template>
104	<template name="evt_connect_OnDataViewListCtrlItemValueChanged">// event wxEVT_COMMAND_DATAVIEW_ITEM_VALUE_CHANGED isn't currently supported by wxPHP</template>
105	<template name="evt_connect_OnDataViewListCtrlItemContextMenu">// event wxEVT_COMMAND_DATAVIEW_ITEM_CONTEXT_MENU isn't currently supported by wxPHP</template>
106	<template name="evt_connect_OnDataViewListCtrlColumnHeaderClick">// event wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_CLICK isn't currently supported by wxPHP</template>
107	<template name="evt_connect_OnDataViewListCtrlColumnHeaderRightClick">// event wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_RIGHT_CLICK isn't currently supported by wxPHP</template>
108	<template name="evt_connect_OnDataViewListCtrlColumnSorted">// event wxEVT_COMMAND_DATAVIEW_COLUMN_SORTED isn't currently supported by wxPHP</template>
109	<template name="evt_connect_OnDataViewListCtrlColumnReordered">// event wxEVT_COMMAND_DATAVIEW_COLUMN_REORDERED isn't currently supported by wxPHP</template>
110	<template name="evt_connect_OnDataViewListCtrlItemBeginDrag">// event wxEVT_COMMAND_DATAVIEW_ITEM_BEGIN_DRAG isn't currently supported by wxPHP</template>
111	<template name="evt_connect_OnDataViewListCtrlItemDropPossible">// event wxEVT_COMMAND_DATAVIEW_ITEM_DROP_POSSIBLE isn't currently supported by wxPHP</template>
112	<template name="evt_connect_OnDataViewListCtrlItemDrop">// event wxEVT_COMMAND_DATAVIEW_ITEM_DROP isn't currently supported by wxPHP</template>
113  </templates>
114
115  <templates class="dataViewListColumn">
116	<template name="construction">
117		@/* WARNING: PHP code generation isn't supported for this widget yet. */#nl
118	</template>
119  </templates>
120
121  <templates class="wxCheckListBox">
122	<template name="construction">
123		@$$name #append Choices = array($choices); #nl
124		@$this->$name = new #class( #wxparent $name, $id, $pos, $size, @$$name #append Choices, $style #ifnotnull $window_style @{ |$window_style @} #ifnotnull $window_name @{, wxDefaultValidator, $window_name @} );
125		</template>
126	<template name="evt_connect_OnCheckListBoxToggled">@$this->$name->Connect( wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, #handler );</template>
127	<template name="evt_connect_OnCheckListBox">@$this->$name->Connect( wxEVT_COMMAND_LISTBOX_SELECTED, #handler );</template>
128	<template name="evt_connect_OnCheckListBoxDClick">@$this->$name->Connect( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, #handler );</template>
129  </templates>
130
131  <templates class="wxGrid">
132	<template name="include" />
133	<template name="construction">@$this->$name = new #class( #wxparent $name, $id, $pos, $size, $window_style #ifnotnull $window_name @{, $window_name @} );</template>
134	<template name="settings">
135    	#nl @# Grid
136    	#nl @$this->$name->CreateGrid( $rows, $cols );
137		#nl @$this->$name->EnableEditing( $editing );
138		#nl @$this->$name->EnableGridLines( $grid_lines );
139		#ifnotnull $grid_line_color
140		@{
141			#nl @$this->$name->SetGridLineColour( $grid_line_color );
142		@}
143		#nl @$this->$name->EnableDragGridSize( $drag_grid_size );
144		#nl @$this->$name->SetMargins( $margin_width, $margin_height );
145		#nl
146		#nl @# Columns
147		#foreach $column_sizes
148		@{ @$this->$name->SetColSize( #npred, #pred ); @}
149		#ifnotequal $autosize_cols "0"
150		@{
151			#nl @$this->$name->AutoSizeColumns();
152		@}
153		#nl @$this->$name->EnableDragColMove( $drag_col_move );
154		#nl @$this->$name->EnableDragColSize( $drag_col_size );
155		#nl @$this->$name->SetColLabelSize( $col_label_size );
156		#foreach $col_label_values
157		@{ @$this->$name->SetColLabelValue( #npred, #pred ); @}
158		#nl @$this->$name->SetColLabelAlignment( $col_label_horiz_alignment, $col_label_vert_alignment );
159		#nl
160		#nl @# Rows
161		#foreach $row_sizes
162		@{ @$this->$name->SetRowSize( #npred, #pred ); @}
163		#ifnotequal $autosize_rows "0"
164		@{
165			#nl @$this->$name->AutoSizeRows();
166		@}
167		#nl @$this->$name->EnableDragRowSize( $drag_row_size );
168		#nl @$this->$name->SetRowLabelSize( $row_label_size );
169		#foreach $row_label_values
170		@{ @$this->$name->SetRowLabelValue( #npred, #pred ); @}
171		#nl @$this->$name->SetRowLabelAlignment( $row_label_horiz_alignment, $row_label_vert_alignment );
172		#nl
173		#nl @# Label Appearance
174		#ifnotnull $label_bg
175		@{
176			#nl @$this->$name->SetLabelBackgroundColour( $label_bg );
177		@}
178		#ifnotnull $label_font
179		@{
180			#nl @$this->$name->SetLabelFont( $label_font );
181		@}
182		#ifnotnull $label_text
183		@{
184			#nl @$this->$name->SetLabelTextColour( $label_text );
185		@}
186		#nl
187		#nl @# Cell Defaults
188		#ifnotnull $cell_bg
189		@{
190			#nl @$this->$name->SetDefaultCellBackgroundColour( $cell_bg );
191		@}
192		#ifnotnull $cell_text
193		@{
194			#nl @$this->$name->SetDefaultCellTextColour( $cell_text );
195		@}
196		#ifnotnull $cell_font
197		@{
198			#nl @$this->$name->SetDefaultCellFont( $cell_font );
199		@}
200		#nl @$this->$name->SetDefaultCellAlignment( $cell_horiz_alignment, $cell_vert_alignment );
201    </template>
202	<template name="evt_connect_OnGridCellLeftClick">@$this->$name->Connect( wxEVT_GRID_CELL_LEFT_CLICK, #handler );</template>
203	<template name="evt_connect_OnGridCellRightClick">@$this->$name->Connect( wxEVT_GRID_CELL_RIGHT_CLICK, #handler );</template>
204	<template name="evt_connect_OnGridCellLeftDClick">@$this->$name->Connect( wxEVT_GRID_CELL_LEFT_DCLICK, #handler );</template>
205	<template name="evt_connect_OnGridCellRightDClick">@$this->$name->Connect( wxEVT_GRID_CELL_RIGHT_DCLICK, #handler );</template>
206	<template name="evt_connect_OnGridLabelLeftClick">@$this->$name->Connect( wxEVT_GRID_LABEL_LEFT_CLICK, #handler );</template>
207	<template name="evt_connect_OnGridLabelRightClick">@$this->$name->Connect( wxEVT_GRID_LABEL_RIGHT_CLICK, #handler );</template>
208	<template name="evt_connect_OnGridLabelLeftDClick">@$this->$name->Connect( wxEVT_GRID_LABEL_LEFT_DCLICK, #handler );</template>
209	<template name="evt_connect_OnGridLabelRightDClick">@$this->$name->Connect( wxEVT_GRID_LABEL_RIGHT_DCLICK, #handler );</template>
210	<template name="evt_connect_OnGridCellChange">@$this->$name->Connect( wxEVT_GRID_CELL_CHANGE, #handler );</template>
211	<template name="evt_connect_OnGridSelectCell">@$this->$name->Connect( wxEVT_GRID_SELECT_CELL, #handler );</template>
212	<template name="evt_connect_OnGridEditorHidden">@$this->$name->Connect( wxEVT_GRID_EDITOR_HIDDEN, #handler );</template>
213	<template name="evt_connect_OnGridEditorShown">@$this->$name->Connect( wxEVT_GRID_EDITOR_SHOWN, #handler );</template>
214	<template name="evt_connect_OnGridCmdCellLeftClick">@$this->$name->Connect( wxEVT_GRID_CELL_LEFT_CLICK, #handler );</template>
215	<template name="evt_connect_OnGridCmdCellRightClick">@$this->$name->Connect( wxEVT_GRID_CELL_RIGHT_CLICK, #handler );</template>
216	<template name="evt_connect_OnGridCmdCellLeftDClick">@$this->$name->Connect( wxEVT_GRID_CELL_LEFT_DCLICK, #handler );</template>
217	<template name="evt_connect_OnGridCmdCellRightDClick">@$this->$name->Connect( wxEVT_GRID_CELL_RIGHT_DCLICK, #handler );</template>
218	<template name="evt_connect_OnGridCmdLabelLeftClick">@$this->$name->Connect( wxEVT_GRID_LABEL_LEFT_CLICK, #handler );</template>
219	<template name="evt_connect_OnGridCmdLabelRightClick">@$this->$name->Connect( wxEVT_GRID_LABEL_RIGHT_CLICK, #handler );</template>
220	<template name="evt_connect_OnGridCmdLabelLeftDClick">@$this->$name->Connect( wxEVT_GRID_LABEL_LEFT_DCLICK, #handler );</template>
221	<template name="evt_connect_OnGridCmdLabelRightDClick">@$this->$name->Connect( wxEVT_GRID_LABEL_RIGHT_DCLICK, #handler );</template>
222	<template name="evt_connect_OnGridCmdCellChange">@$this->$name->Connect( wxEVT_GRID_CELL_CHANGE, #handler );</template>
223	<template name="evt_connect_OnGridCmdSelectCell">@$this->$name->Connect( wxEVT_GRID_SELECT_CELL, #handler );</template>
224	<template name="evt_connect_OnGridCmdEditorHidden">@$this->$name->Connect( wxEVT_GRID_EDITOR_HIDDEN, #handler );</template>
225	<template name="evt_connect_OnGridCmdEditorShown">@$this->$name->Connect( wxEVT_GRID_EDITOR_SHOWN, #handler );</template>
226	<template name="evt_connect_OnGridColSize">@$this->$name->Connect( wxEVT_GRID_COL_SIZE, #handler );</template>
227	<template name="evt_connect_OnGridRowSize">@$this->$name->Connect( wxEVT_GRID_ROW_SIZE, #handler );</template>
228	<template name="evt_connect_OnGridCmdColSize">@$this->$name->Connect( wxEVT_GRID_COL_SIZE, #handler );</template>
229	<template name="evt_connect_OnGridCmdRowSize">@$this->$name->Connect( wxEVT_GRID_ROW_SIZE, #handler );</template>
230	<template name="evt_connect_OnGridRangeSelect">@$this->$name->Connect( wxEVT_GRID_RANGE_SELECT, #handler );</template>
231	<template name="evt_connect_OnGridCmdRangeSelect">@$this->$name->Connect( wxEVT_GRID_RANGE_SELECT, #handler );</template>
232	<template name="evt_connect_OnGridEditorCreated">@$this->$name->Connect( wxEVT_GRID_EDITOR_CREATED, #handler );</template>
233	<template name="evt_connect_OnGridCmdEditorCreated">@$this->$name->Connect( wxEVT_GRID_EDITOR_CREATED, #handler );</template>
234  </templates>
235
236	<templates class="wxPropertyGrid">
237		<template name="construction">
238			@/* WARNING: PHP code generation isn't supported for this widget yet. */#nl
239			@$this->$name = new wxWindow( #wxparent $name );
240		</template>
241	</templates>
242
243	<templates class="wxPropertyGridManager">
244		<template name="construction">
245			@/* WARNING: PHP code generation isn't supported for this widget yet. */#nl
246			@$this->$name = new wxWindow( #wxparent $name );
247		</template>
248	</templates>
249
250	<templates class="propGridItem">
251		<template name="construction">
252			@/* WARNING: PHP code generation isn't supported for this widget yet. */#nl
253		</template>
254	</templates>
255
256	<templates class="propGridPage">
257		<template name="construction">
258			@/* WARNING: PHP code generation isn't supported for this widget yet. */#nl
259		</template>
260	</templates>
261
262</codegen>
263