• R/O
  • SSH
  • HTTPS

tenarai: 提交


Commit MetaInfo

修訂122 (tree)
時間2008-10-19 18:03:13
作者junkikuchi

Log Message

updated.

Change Summary

差異

--- trunk/init_model.rb (revision 121)
+++ trunk/init_model.rb (revision 122)
@@ -5,7 +5,7 @@
55 :name => 'admin',
66 :class => 'Service',
77 :row => {'name' => 'admin'},
8- :relation => {'default_view' => 'view:admin'},
8+ :relation => {'default_view' => 'view:admin.view'},
99 },
1010 ],
1111
@@ -16,6 +16,12 @@
1616 :row => {'name' => 'admin'},
1717 :relation => {'resource' => 'widget:admin'},
1818 },
19+ {
20+ :name => 'admin.view',
21+ :class => 'View',
22+ :row => {'name' => 'view'},
23+ :relation => {'resource' => 'widget:admin.view.widget'},
24+ },
1925 ],
2026
2127 'widget' => [
@@ -23,21 +29,25 @@
2329 :name => 'admin',
2430 :class => 'Widget::HTML',
2531 :relation => {'view' => 'view:admin'},
32+ :css => [
33+ ['*_font_text-align', 'left'],
34+ ['ul li_margin_margin-left', '10px']
35+ ]
2636 },
2737 {
2838 :name => 'admin.yui',
2939 :class => 'Widget::YUI',
30- :relation => {'view' => 'view:admin'},
40+ :relation => {'view' => 'view:admin.view'},
3141 },
3242 {
3343 :name => 'admin.yui.reset_css',
3444 :class => 'Widget::YUI::ResetCSS',
35- :relation => {'view' => 'view:admin'},
45+ :relation => {'view' => 'view:admin.view'},
3646 },
3747 {
3848 :name => 'admin.yui.layout',
3949 :class => 'Widget::YUI::Layout',
40- :relation => {'view' => 'view:admin'},
50+ :relation => {'view' => 'view:admin.view'},
4151 :css => [
4252 ['.yui-layout-unit-top_background_background-color', '#c3d9ff'],
4353 ['.yui-layout-unit-right_background_background-color', '#e1ecfe'],
@@ -58,74 +68,86 @@
5868 ],
5969 :property => {
6070 :top_body => "'hd'",
61- :top_height => '100',
71+ :top_height => '50',
6272
6373 :right_body => "'property'",
6474 :right_width => '200',
6575 :right_resize => 'true',
76+ :right_scroll => 'true',
6677
6778 :bottom_body => "'ft'",
68- :bottom_height => '50',
79+ :bottom_height => '25',
6980
7081 :left_body => "'selecter'",
7182 :left_width => '200',
7283 :left_resize => 'true',
84+ :left_scroll => 'true',
7385
7486 :center_body => "'preview'"
7587 }
7688 },
7789 {
78- :name => 'admin.doc',
90+ :name => 'admin.view',
91+ :class => 'Widget::View',
92+ :relation => {'view' => 'view:admin.view'},
93+ },
94+ {
95+ :name => 'admin.view.widget',
96+ :class => 'Widget::Widget',
97+ :relation => {'view' => 'view:admin.view'},
98+ },
99+ {
100+ :name => 'admin.view.widget.doc',
79101 :class => 'Widget::Panel',
80- :relation => {'view' => 'view:admin'},
102+ :relation => {'view' => 'view:admin.view'},
81103 :property => {
82104 :html_attr_id => 'doc3'
83105 }
84106 },
85107 {
86- :name => 'admin.doc.hd',
108+ :name => 'admin.view.widget.doc.hd',
87109 :class => 'Widget::Panel',
88- :relation => {'view' => 'view:admin'},
110+ :relation => {'view' => 'view:admin.view'},
89111 :property => {
90112 :html_attr_id => 'hd'
91113 }
92114 },
93115 {
94- :name => 'admin.doc.bd',
116+ :name => 'admin.view.widget.doc.bd',
95117 :class => 'Widget::Panel',
96- :relation => {'view' => 'view:admin'},
118+ :relation => {'view' => 'view:admin.view'},
97119 :property => {
98120 :html_attr_id => 'bd'
99121 }
100122 },
101123 {
102- :name => 'admin.doc.bd.yui-main',
124+ :name => 'admin.view.widget.doc.bd.yui-main',
103125 :class => 'Widget::Panel',
104- :relation => {'view' => 'view:admin'},
126+ :relation => {'view' => 'view:admin.view'},
105127 :property => {
106128 :html_attr_id => 'yui-main'
107129 }
108130 },
109131 {
110- :name => 'admin.doc.bd.yui-main.yui-b',
132+ :name => 'admin.view.widget.doc.bd.yui-main.yui-b',
111133 :class => 'Widget::Panel',
112- :relation => {'view' => 'view:admin'},
134+ :relation => {'view' => 'view:admin.view'},
113135 :property => {
114136 :html_attr_class => 'yui-b'
115137 }
116138 },
117139 {
118- :name => 'admin.doc.bd.yui-main.yui-b.yui-gb',
140+ :name => 'admin.view.widget.doc.bd.yui-main.yui-b.yui-gb',
119141 :class => 'Widget::Panel',
120- :relation => {'view' => 'view:admin'},
142+ :relation => {'view' => 'view:admin.view'},
121143 :property => {
122144 :html_attr_class => 'yui-gb'
123145 }
124146 },
125147 {
126- :name => 'admin.doc.bd.yui-main.yui-b.yui-gb.selecter',
148+ :name => 'admin.view.widget.doc.bd.yui-main.yui-b.yui-gb.selecter',
127149 :class => 'Widget::Panel',
128- :relation => {'view' => 'view:admin'},
150+ :relation => {'view' => 'view:admin.view'},
129151 :property => {
130152 :html_attr_id => 'selecter',
131153 :html_attr_class => 'yui-u first'
@@ -132,9 +154,19 @@
132154 }
133155 },
134156 {
135- :name => 'admin.doc.bd.yui-main.yui-b.yui-gb.preview',
157+ :name => 'admin.view.widget.doc.bd.yui-main.yui-b.yui-gb.selecter.view-tree',
158+ :class => 'Widget::View::Tree',
159+ :relation => {'view' => 'view:admin.view'},
160+ },
161+ {
162+ :name => 'admin.view.widget.doc.bd.yui-main.yui-b.yui-gb.selecter.widget-tree',
163+ :class => 'Widget::Widget::Tree',
164+ :relation => {'view' => 'view:admin.view'},
165+ },
166+ {
167+ :name => 'admin.view.widget.doc.bd.yui-main.yui-b.yui-gb.preview',
136168 :class => 'Widget::Panel',
137- :relation => {'view' => 'view:admin'},
169+ :relation => {'view' => 'view:admin.view'},
138170 :property => {
139171 :html_attr_id => 'preview',
140172 :html_attr_class => 'yui-u'
@@ -141,9 +173,9 @@
141173 }
142174 },
143175 {
144- :name => 'admin.doc.bd.yui-main.yui-b.yui-gb.property',
176+ :name => 'admin.view.widget.doc.bd.yui-main.yui-b.yui-gb.property',
145177 :class => 'Widget::Panel',
146- :relation => {'view' => 'view:admin'},
178+ :relation => {'view' => 'view:admin.view'},
147179 :property => {
148180 :html_attr_id => 'property',
149181 :html_attr_class => 'yui-u'
@@ -150,9 +182,19 @@
150182 }
151183 },
152184 {
153- :name => 'admin.doc.ft',
185+ :name => 'admin.view.widget.doc.bd.yui-main.yui-b.yui-gb.property.widget-property',
186+ :class => 'Widget::Widget::Property',
187+ :relation => {'view' => 'view:admin.view'},
188+ },
189+ {
190+ :name => 'admin.view.widget.doc.bd.yui-main.yui-b.yui-gb.property.widget-css',
191+ :class => 'Widget::Widget::CSS',
192+ :relation => {'view' => 'view:admin.view'},
193+ },
194+ {
195+ :name => 'admin.view.widget.doc.ft',
154196 :class => 'Widget::Panel',
155- :relation => {'view' => 'view:admin'},
197+ :relation => {'view' => 'view:admin.view'},
156198 :property => {
157199 :html_attr_id => 'ft'
158200 }
--- trunk/lib/tenarai/container.rb (revision 121)
+++ trunk/lib/tenarai/container.rb (revision 122)
@@ -44,6 +44,15 @@
4444 val
4545 end
4646
47+ def []=(key, val)
48+ if key?(key)
49+ fetch(key).value = val
50+ else
51+ self << Tenarai::Container::Value.new(key, val)
52+ end
53+ fetch(key)
54+ end
55+
4756 def key?(key)
4857 !@container.assoc(key).nil?
4958 end
Show on old repository browser