summaryrefslogtreecommitdiff
path: root/demos/composer/protected/pages
diff options
context:
space:
mode:
authorcarl <>2006-03-06 14:01:05 +0000
committercarl <>2006-03-06 14:01:05 +0000
commit5b22e50d36d11c50ef3b9cd0b4e2d5563c4b9c93 (patch)
tree1543e14fee900b9d0566b66c71f3f722b3cfb312 /demos/composer/protected/pages
parent7f5c8baf22896b611a29252d40ff5860105f0648 (diff)
Forgot Home.page in PradoSoft Composer design
Diffstat (limited to 'demos/composer/protected/pages')
-rw-r--r--demos/composer/protected/pages/Home.page361
1 files changed, 184 insertions, 177 deletions
diff --git a/demos/composer/protected/pages/Home.page b/demos/composer/protected/pages/Home.page
index d77bf3ca..efdd1cda 100644
--- a/demos/composer/protected/pages/Home.page
+++ b/demos/composer/protected/pages/Home.page
@@ -1,177 +1,184 @@
-<%@ MasterClass="Application.pages.Layout" Theme="Simple" %>
-<com:TContent ID="body" >
-
-<com:TPanel 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 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->Parent->DataItem->Name %> CssClass="slTextBox"/>
- </td>
- <td>
- <com:TDropDownList ID="PropertyType" SelectedValue=<%# $this->Parent->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->Parent->DataItem->DefaultValue %> CssClass="slTextBox"/>
- </td>
- <td>
- <com:TDropDownList ID="Storage" SelectedValue=<%# $this->Parent->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->Parent->DataItem->IsProtected %> />
- <com:TCheckBox ID="ReadOnly" Text="read-only" Checked=<%# $this->Parent->DataItem->ReadOnly %> />
- </td>
- <td>
- <com:TTextBox ID="Comments" Text=<%# $this->Parent->DataItem->Comments %> CssClass="slTextBox"/>
- </td>
- <td>
- <com:TButton
- Text="Remove"
- CommandName="remove"
- CommandParameter=<%# $this->Parent->ItemIndex %>
- />
- <com:TButton
- Text="Up"
- CommandName="up"
- CommandParameter=<%# $this->Parent->ItemIndex %>
- Enabled=<%# $this->Parent->ItemIndex > 0%>
- />
- <com:TButton
- Text="Down"
- CommandName="down"
- CommandParameter=<%# $this->Parent->ItemIndex %>
- Enabled=<%# $this->Parent->ItemIndex < $this->Page->ClassDefinition->Properties->Count-1 %>
- />
- </td>
-</tr>
-</prop:ItemTemplate>
-
-</com:TRepeater>
-
-<com:TButton Text="New Property" OnCommand="propertyAction" CommandName="add" />
-
-</com:TPanel>
-
-<com:TPanel GroupingText="Event Definitions">
-<com:TRepeater ID="EventList" OnItemCommand="eventAction">
-
-<prop:EmptyTemplate>
-No events defined.<br/>
-</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->Parent->DataItem->Name %> CssClass="slTextBox"/>
- </td>
- <td>
- <com:TTextBox ID="Comments" Text=<%# $this->Parent->DataItem->Comments %> CssClass="slTextBox"/>
- </td>
- <td>
- <com:TButton
- Text="Remove"
- CommandName="remove"
- CommandParameter=<%# $this->Parent->ItemIndex %>
- />
- <com:TButton
- Text="Up"
- CommandName="up"
- CommandParameter=<%# $this->Parent->ItemIndex %>
- Enabled=<%# $this->Parent->ItemIndex > 0%>
- />
- <com:TButton
- Text="Down"
- CommandName="down"
- CommandParameter=<%# $this->Parent->ItemIndex %>
- Enabled=<%# $this->Parent->ItemIndex < $this->Page->ClassDefinition->Events->Count-1 %>
- />
- </td>
-</tr>
-</prop:ItemTemplate>
-
-</com:TRepeater>
-
-<com:TButton Text="New Event" OnCommand="eventAction" CommandName="add" />
-
-</com:TPanel>
-
-<br/>
-Comments
-<br/>
-<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"/>
-<br/>
-
-<hr/>
-<com:TButton Text="Generate Code" OnClick="generateCode" />
-<com:TTextHighlighter>
-<com:TLiteral ID="SourceCode" />
-</com:TTextHighlighter>
-
-</com:TContent>
+<%@ 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->Parent->DataItem->Name %> CssClass="slTextBox"/>
+ </td>
+ <td>
+ <com:TDropDownList ID="PropertyType" SelectedValue=<%# $this->Parent->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->Parent->DataItem->DefaultValue %> CssClass="slTextBox"/>
+ </td>
+ <td>
+ <com:TDropDownList ID="Storage" SelectedValue=<%# $this->Parent->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->Parent->DataItem->IsProtected %> />
+ <com:TCheckBox ID="ReadOnly" Text="read-only" Checked=<%# $this->Parent->DataItem->ReadOnly %> />
+ </td>
+ <td>
+ <com:TTextBox ID="Comments" Text=<%# $this->Parent->DataItem->Comments %> CssClass="slTextBox"/>
+ </td>
+ <td>
+ <com:TButton
+ Text="Remove"
+ CommandName="remove"
+ CommandParameter=<%# $this->Parent->ItemIndex %>
+ CssClass="button"
+ />
+ <com:TButton
+ Text="Up"
+ CommandName="up"
+ CommandParameter=<%# $this->Parent->ItemIndex %>
+ Enabled=<%# $this->Parent->ItemIndex > 0%>
+ CssClass="button"
+ />
+ <com:TButton
+ Text="Down"
+ CommandName="down"
+ CommandParameter=<%# $this->Parent->ItemIndex %>
+ Enabled=<%# $this->Parent->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->Parent->DataItem->Name %> CssClass="slTextBox"/>
+ </td>
+ <td>
+ <com:TTextBox ID="Comments" Text=<%# $this->Parent->DataItem->Comments %> CssClass="slTextBox"/>
+ </td>
+ <td>
+ <com:TButton
+ Text="Remove"
+ CommandName="remove"
+ CommandParameter=<%# $this->Parent->ItemIndex %>
+ CssClass="button"
+ />
+ <com:TButton
+ Text="Up"
+ CommandName="up"
+ CommandParameter=<%# $this->Parent->ItemIndex %>
+ Enabled=<%# $this->Parent->ItemIndex > 0%>
+ CssClass="button"
+ />
+ <com:TButton
+ Text="Down"
+ CommandName="down"
+ CommandParameter=<%# $this->Parent->ItemIndex %>
+ Enabled=<%# $this->Parent->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>