summaryrefslogtreecommitdiff
path: root/demos/composer/protected/pages/Home.page
blob: 51aaed8e2a15082d32c2cfc1016df3c34a547ba5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<%@ MasterClass="Application.pages.Layout" Theme="PradoSoft" %>
<com:TContent ID="body" >

<com:TPanel CssClass="classinfo" GroupingText="Class Information">
class
<com:TTextBox ID="ClassName"
	Text=<%#$this->Page->ClassDefinition->ClassName%>
	CssClass="slTextBox"/>
extends
<com:TTextBox ID="ParentClass"
	Text=<%#$this->Page->ClassDefinition->ParentClass%>
	CssClass="slTextBox"/>
implements <com:TTextBox ID="Interfaces" CssClass="slTextBox"/>
</com:TPanel>

<com:TPanel CssClass="propertydef" GroupingText="Property Definitions">
<com:TRepeater ID="PropertyList" OnItemCommand="propertyAction">

<prop:EmptyTemplate>
No properties defined.<br/>
</prop:EmptyTemplate>

<prop:HeaderTemplate>
<table>
<tr>
  <th>Name</th>
  <th>Type</th>
  <th>Default Value</th>
  <th>Storage Mode</th>
  <th>Accessibility</th>
  <th>Comments</th>
  <th>Actions</th>
</tr>
</prop:HeaderTemplate>

<prop:FooterTemplate>
</table>
</prop:FooterTemplate>

<prop:ItemTemplate>
<tr>
  <td>
  <com:TTextBox ID="PropertyName" Text=<%# $this->DataItem->Name %> CssClass="slTextBox"/>
  </td>
  <td>
  <com:TDropDownList ID="PropertyType" SelectedValue=<%# $this->DataItem->Type %> >
    <com:TListItem Text="string" />
    <com:TListItem Text="integer" />
    <com:TListItem Text="boolean" />
    <com:TListItem Text="enumerable" />
    <com:TListItem Text="float" />
    <com:TListItem Text="mixed" />
  </com:TDropDownList>
  </td>
  <td>
  <com:TTextBox ID="DefaultValue" Text=<%# $this->DataItem->DefaultValue %> CssClass="slTextBox"/>
  </td>
  <td>
  <com:TDropDownList ID="Storage" SelectedValue=<%# $this->DataItem->Storage %> >
    <com:TListItem Text="ViewState" />
    <com:TListItem Text="ControlState" />
    <com:TListItem Text="Memory" />
  </com:TDropDownList>
  </td>
  <td>
  <com:TCheckBox ID="IsProtected" Text="protected" Checked=<%# $this->DataItem->IsProtected %> />
  <com:TCheckBox ID="ReadOnly" Text="read-only" Checked=<%# $this->DataItem->ReadOnly %> />
  </td>
  <td>
  <com:TTextBox ID="Comments" Text=<%# $this->DataItem->Comments %> CssClass="slTextBox"/>
  </td>
  <td>
  <com:TButton
  		Text="Remove"
  		CommandName="remove"
  		CommandParameter=<%# $this->ItemIndex %>
  		CssClass="button"
  		/>
  <com:TButton
  		Text="Up"
  		CommandName="up"
  		CommandParameter=<%# $this->ItemIndex %>
  		Enabled=<%# $this->ItemIndex > 0%>
  		CssClass="button"
  		/>
  <com:TButton
  		Text="Down"
  		CommandName="down"
  		CommandParameter=<%# $this->ItemIndex %>
  		Enabled=<%# $this->ItemIndex < $this->Page->ClassDefinition->Properties->Count-1 %>
  		CssClass="button"
  		/>
  </td>
</tr>
</prop:ItemTemplate>

</com:TRepeater>
<p>
<com:TButton Text="New Property" OnCommand="propertyAction" CommandName="add" CssClass="button" />
</p>
</com:TPanel>

<com:TPanel CssClass="eventdef" GroupingText="Event Definitions">
<com:TRepeater ID="EventList" OnItemCommand="eventAction">

<prop:EmptyTemplate>
<p>No events defined</p>
</prop:EmptyTemplate>

<prop:HeaderTemplate>
<table>
<tr>
  <th>Name</th>
  <th>Comments</th>
  <th>Actions</th>
</tr>
</prop:HeaderTemplate>

<prop:FooterTemplate>
</table>
</prop:FooterTemplate>

<prop:ItemTemplate>
<tr>
  <td>
  <com:TTextBox ID="EventName" Text=<%# $this->DataItem->Name %> CssClass="slTextBox"/>
  </td>
  <td>
  <com:TTextBox ID="Comments" Text=<%# $this->DataItem->Comments %> CssClass="slTextBox"/>
  </td>
  <td>
  <com:TButton
  		Text="Remove"
  		CommandName="remove"
  		CommandParameter=<%# $this->ItemIndex %>
  		CssClass="button"
  		/>
  <com:TButton
  		Text="Up"
  		CommandName="up"
  		CommandParameter=<%# $this->ItemIndex %>
  		Enabled=<%# $this->ItemIndex > 0%>
  		CssClass="button"
  		/>
  <com:TButton
  		Text="Down"
  		CommandName="down"
  		CommandParameter=<%# $this->ItemIndex %>
  		Enabled=<%# $this->ItemIndex < $this->Page->ClassDefinition->Events->Count-1 %>
  		CssClass="button"
  		/>
  </td>
</tr>
</prop:ItemTemplate>

</com:TRepeater>
<p>
<com:TButton Text="New Event" OnCommand="eventAction" CommandName="add" CssClass="button" />
</p>
</com:TPanel>

<com:TPanel CssClass="comments" GroupingText="Comments">
<com:TTextBox ID="Comments" TextMode="MultiLine" Columns="80" Rows="6" />
<br/>
Author Name
<com:TTextBox ID="AuthorName"
	Text=<%#$this->Page->ClassDefinition->Author%>
	CssClass="slTextBox"/>
Author Email
<com:TTextBox ID="AuthorEmail"
	Text=<%#$this->Page->ClassDefinition->Email%>
	CssClass="slTextBox"/>
    <p>
    <com:TButton Text="Generate Code" OnClick="generateCode" CssClass="button" />
    </p>
</com:TPanel>

<com:TPanel CssClass="generator">
    <com:TTextHighlighter>
        <com:TLiteral ID="SourceCode" />
    </com:TTextHighlighter>
</com:TPanel>

</com:TContent>