annotate window/menuitem.cc @ 31:5ae5533b3a9a

* Added some license headers
author thib
date Sat, 07 Mar 2009 21:36:46 +0000
parents 223b71206888
children 15a18fbe6f21
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
223b71206888 Initial import
thib
parents:
diff changeset
1 /*
223b71206888 Initial import
thib
parents:
diff changeset
2 * Copyright (c) 2004-2006 Kazunori "jagarl" Ueno
223b71206888 Initial import
thib
parents:
diff changeset
3 * All rights reserved.
223b71206888 Initial import
thib
parents:
diff changeset
4 *
223b71206888 Initial import
thib
parents:
diff changeset
5 * Redistribution and use in source and binary forms, with or without
223b71206888 Initial import
thib
parents:
diff changeset
6 * modification, are permitted provided that the following conditions
223b71206888 Initial import
thib
parents:
diff changeset
7 * are met:
223b71206888 Initial import
thib
parents:
diff changeset
8 * 1. Redistributions of source code must retain the above copyright
223b71206888 Initial import
thib
parents:
diff changeset
9 * notice, this list of conditions and the following disclaimer.
223b71206888 Initial import
thib
parents:
diff changeset
10 * 2. Redistributions in binary form must reproduce the above copyright
223b71206888 Initial import
thib
parents:
diff changeset
11 * notice, this list of conditions and the following disclaimer in the
223b71206888 Initial import
thib
parents:
diff changeset
12 * documentation and/or other materials provided with the distribution.
223b71206888 Initial import
thib
parents:
diff changeset
13 * 3. The name of the author may not be used to endorse or promote products
223b71206888 Initial import
thib
parents:
diff changeset
14 * derived from this software without specific prior written permission.
223b71206888 Initial import
thib
parents:
diff changeset
15 *
223b71206888 Initial import
thib
parents:
diff changeset
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
223b71206888 Initial import
thib
parents:
diff changeset
17 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
223b71206888 Initial import
thib
parents:
diff changeset
18 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
223b71206888 Initial import
thib
parents:
diff changeset
19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
223b71206888 Initial import
thib
parents:
diff changeset
20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
223b71206888 Initial import
thib
parents:
diff changeset
21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
223b71206888 Initial import
thib
parents:
diff changeset
22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
223b71206888 Initial import
thib
parents:
diff changeset
23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
223b71206888 Initial import
thib
parents:
diff changeset
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
223b71206888 Initial import
thib
parents:
diff changeset
25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
223b71206888 Initial import
thib
parents:
diff changeset
26 */
223b71206888 Initial import
thib
parents:
diff changeset
27
223b71206888 Initial import
thib
parents:
diff changeset
28
223b71206888 Initial import
thib
parents:
diff changeset
29 #include"menuitem.h"
223b71206888 Initial import
thib
parents:
diff changeset
30
223b71206888 Initial import
thib
parents:
diff changeset
31 #define Button WidButton
223b71206888 Initial import
thib
parents:
diff changeset
32 #define Scale WidScale
223b71206888 Initial import
thib
parents:
diff changeset
33 #define Label WidLabel
223b71206888 Initial import
thib
parents:
diff changeset
34 #define TextButton WidTextButton
223b71206888 Initial import
thib
parents:
diff changeset
35 #define Text WidText
223b71206888 Initial import
thib
parents:
diff changeset
36
223b71206888 Initial import
thib
parents:
diff changeset
37 #define MenuItem WidMenuItem
223b71206888 Initial import
thib
parents:
diff changeset
38 #define RadioGroup WidRadioGroup
223b71206888 Initial import
thib
parents:
diff changeset
39 #define ScaleMenu WidScaleMenu
223b71206888 Initial import
thib
parents:
diff changeset
40 void fill(Surface* src, const Rect& rect, int r, int g, int b, int a = 0xff);
223b71206888 Initial import
thib
parents:
diff changeset
41
223b71206888 Initial import
thib
parents:
diff changeset
42 MenuItem::MenuItem(PicContainer* parent, const Rect& r_orig, int _x_size, int _y_size, int* _value_ptr) :
223b71206888 Initial import
thib
parents:
diff changeset
43 x_size(_x_size), y_size(_y_size), value_ptr(_value_ptr), set_func(0), set_pointer(0) {
223b71206888 Initial import
thib
parents:
diff changeset
44 SetPic(parent->create_node(r_orig, 0));
223b71206888 Initial import
thib
parents:
diff changeset
45 menu_width = r_orig.width();
223b71206888 Initial import
thib
parents:
diff changeset
46 menu_height = r_orig.height();
223b71206888 Initial import
thib
parents:
diff changeset
47 label = 0;
223b71206888 Initial import
thib
parents:
diff changeset
48 lb_width = 0; lb_right = 0;
223b71206888 Initial import
thib
parents:
diff changeset
49 lb_left = -1; lb_bottom = -1;
223b71206888 Initial import
thib
parents:
diff changeset
50 int i;
223b71206888 Initial import
thib
parents:
diff changeset
51 for (i=0; i<x_size*y_size; i++) item.push_back(0);
223b71206888 Initial import
thib
parents:
diff changeset
52 };
223b71206888 Initial import
thib
parents:
diff changeset
53 void MenuItem::SetLabelLeft(PicWidget* lb, const Rect& min_rect, const Rect& min_margin) {
223b71206888 Initial import
thib
parents:
diff changeset
54 lb_width = min_rect.width();
223b71206888 Initial import
thib
parents:
diff changeset
55 lb_right = min_margin.width();
223b71206888 Initial import
thib
parents:
diff changeset
56 lb_left = -1;
223b71206888 Initial import
thib
parents:
diff changeset
57 lb_bottom = -1;
223b71206888 Initial import
thib
parents:
diff changeset
58 label = lb;
223b71206888 Initial import
thib
parents:
diff changeset
59 }
223b71206888 Initial import
thib
parents:
diff changeset
60 void MenuItem::SetLabelTop(PicWidget* lb, const Rect& left_margin, const Rect& bottom_margin) {
223b71206888 Initial import
thib
parents:
diff changeset
61 lb_left = left_margin.width();
223b71206888 Initial import
thib
parents:
diff changeset
62 lb_bottom = bottom_margin.height();
223b71206888 Initial import
thib
parents:
diff changeset
63 lb_width = -1;
223b71206888 Initial import
thib
parents:
diff changeset
64 lb_right = -1;
223b71206888 Initial import
thib
parents:
diff changeset
65 label = lb;
223b71206888 Initial import
thib
parents:
diff changeset
66 }
223b71206888 Initial import
thib
parents:
diff changeset
67 void MenuItem::SetValue(int new_value) {
223b71206888 Initial import
thib
parents:
diff changeset
68 SetValueImpl(new_value);
223b71206888 Initial import
thib
parents:
diff changeset
69 if (value_ptr) *value_ptr = new_value;
223b71206888 Initial import
thib
parents:
diff changeset
70 if (set_func) (*set_func)(set_pointer, this);
223b71206888 Initial import
thib
parents:
diff changeset
71 }
223b71206888 Initial import
thib
parents:
diff changeset
72 void MenuItem::activate(void) {
223b71206888 Initial import
thib
parents:
diff changeset
73 iterator it;
223b71206888 Initial import
thib
parents:
diff changeset
74 for (it=item.begin(); it!=item.end(); it++) {
223b71206888 Initial import
thib
parents:
diff changeset
75 if (*it == 0) continue;
223b71206888 Initial import
thib
parents:
diff changeset
76 (*it)->activate();
223b71206888 Initial import
thib
parents:
diff changeset
77 }
223b71206888 Initial import
thib
parents:
diff changeset
78 }
223b71206888 Initial import
thib
parents:
diff changeset
79 void MenuItem::deactivate(void) {
223b71206888 Initial import
thib
parents:
diff changeset
80 iterator it;
223b71206888 Initial import
thib
parents:
diff changeset
81 for (it=item.begin(); it!=item.end(); it++) {
223b71206888 Initial import
thib
parents:
diff changeset
82 if (*it == 0) continue;
223b71206888 Initial import
thib
parents:
diff changeset
83 (*it)->deactivate();
223b71206888 Initial import
thib
parents:
diff changeset
84 }
223b71206888 Initial import
thib
parents:
diff changeset
85 }
223b71206888 Initial import
thib
parents:
diff changeset
86 void MenuItem::pack(void) {
223b71206888 Initial import
thib
parents:
diff changeset
87 int x_min = 0, y_min = 0;
223b71206888 Initial import
thib
parents:
diff changeset
88 if (lb_width == -1) { // 上にラベルを貼る
223b71206888 Initial import
thib
parents:
diff changeset
89 if (lb_left < 0) lb_left = 0;
223b71206888 Initial import
thib
parents:
diff changeset
90 if (lb_bottom < 0) lb_bottom = 0;
223b71206888 Initial import
thib
parents:
diff changeset
91 if (label && label->Pic()) {
223b71206888 Initial import
thib
parents:
diff changeset
92 label->Pic()->Move(lb_left, 0);
223b71206888 Initial import
thib
parents:
diff changeset
93 y_min = lb_bottom + label->Pic()->Height();
223b71206888 Initial import
thib
parents:
diff changeset
94 } else {
223b71206888 Initial import
thib
parents:
diff changeset
95 y_min = lb_bottom;
223b71206888 Initial import
thib
parents:
diff changeset
96 }
223b71206888 Initial import
thib
parents:
diff changeset
97 } else { // 左にラベルを貼る
223b71206888 Initial import
thib
parents:
diff changeset
98 if (lb_right < 0) lb_right = 0;
223b71206888 Initial import
thib
parents:
diff changeset
99 if (label && label->Pic()) {
223b71206888 Initial import
thib
parents:
diff changeset
100 int label_width = label->Pic()->Width();
223b71206888 Initial import
thib
parents:
diff changeset
101 int label_height = label->Pic()->Height();
223b71206888 Initial import
thib
parents:
diff changeset
102 if (label_width > lb_width - lb_right) {
223b71206888 Initial import
thib
parents:
diff changeset
103 x_min = label_width + lb_right;
223b71206888 Initial import
thib
parents:
diff changeset
104 } else {
223b71206888 Initial import
thib
parents:
diff changeset
105 x_min = lb_width;
223b71206888 Initial import
thib
parents:
diff changeset
106 }
223b71206888 Initial import
thib
parents:
diff changeset
107 } else {
223b71206888 Initial import
thib
parents:
diff changeset
108 x_min = lb_width;
223b71206888 Initial import
thib
parents:
diff changeset
109 }
223b71206888 Initial import
thib
parents:
diff changeset
110 }
223b71206888 Initial import
thib
parents:
diff changeset
111 int* item_width = new int[x_size];
223b71206888 Initial import
thib
parents:
diff changeset
112 int* item_height = new int[y_size];
223b71206888 Initial import
thib
parents:
diff changeset
113 int* item_x = new int[x_size];
223b71206888 Initial import
thib
parents:
diff changeset
114 int* item_y = new int[y_size];
223b71206888 Initial import
thib
parents:
diff changeset
115 int i,j;
223b71206888 Initial import
thib
parents:
diff changeset
116 for (i=0; i<x_size; i++) item_width[i]=0;
223b71206888 Initial import
thib
parents:
diff changeset
117 for (i=0; i<y_size; i++) item_height[i]=0;
223b71206888 Initial import
thib
parents:
diff changeset
118
223b71206888 Initial import
thib
parents:
diff changeset
119 iterator it = item.begin();
223b71206888 Initial import
thib
parents:
diff changeset
120 for (i=0; i<y_size; i++) {
223b71206888 Initial import
thib
parents:
diff changeset
121 for (j=0; j<x_size; j++) {
223b71206888 Initial import
thib
parents:
diff changeset
122 if (*it != 0 && (*it)->Pic() != 0) {
223b71206888 Initial import
thib
parents:
diff changeset
123 PicBase* pic = (*it)->Pic();
223b71206888 Initial import
thib
parents:
diff changeset
124 if (item_width[j] < pic->Width()) item_width[j] = pic->Width();
223b71206888 Initial import
thib
parents:
diff changeset
125 if (item_height[i] < pic->Height()) item_height[i] = pic->Height();
223b71206888 Initial import
thib
parents:
diff changeset
126 }
223b71206888 Initial import
thib
parents:
diff changeset
127 it++;
223b71206888 Initial import
thib
parents:
diff changeset
128 }
223b71206888 Initial import
thib
parents:
diff changeset
129 }
223b71206888 Initial import
thib
parents:
diff changeset
130 int width=0, height=0;
223b71206888 Initial import
thib
parents:
diff changeset
131 for (i=0; i<x_size; i++) {
223b71206888 Initial import
thib
parents:
diff changeset
132 width += item_width[i];
223b71206888 Initial import
thib
parents:
diff changeset
133 }
223b71206888 Initial import
thib
parents:
diff changeset
134 for (i=0; i<y_size; i++) {
223b71206888 Initial import
thib
parents:
diff changeset
135 height += item_height[i];
223b71206888 Initial import
thib
parents:
diff changeset
136 }
223b71206888 Initial import
thib
parents:
diff changeset
137
223b71206888 Initial import
thib
parents:
diff changeset
138 int x=x_min, y=y_min;
223b71206888 Initial import
thib
parents:
diff changeset
139 // width / height の再割り当て
223b71206888 Initial import
thib
parents:
diff changeset
140 if (menu_width > width + x_min) {
223b71206888 Initial import
thib
parents:
diff changeset
141 int dif = menu_width - width - x_min;
223b71206888 Initial import
thib
parents:
diff changeset
142 int n = x_size + 1;
223b71206888 Initial import
thib
parents:
diff changeset
143 x += dif/n;
223b71206888 Initial import
thib
parents:
diff changeset
144 for (i=0; i<x_size; i++) {
223b71206888 Initial import
thib
parents:
diff changeset
145 item_x[i] = x + item_width[i] / 2;
223b71206888 Initial import
thib
parents:
diff changeset
146 x += item_width[i] + dif*(i+2)/n - dif*(i+1)/n;
223b71206888 Initial import
thib
parents:
diff changeset
147 }
223b71206888 Initial import
thib
parents:
diff changeset
148 } else {
223b71206888 Initial import
thib
parents:
diff changeset
149 if (menu_width == 0) {
223b71206888 Initial import
thib
parents:
diff changeset
150 Pic()->SetSurfaceRect(Rect(0, 0, width+x_min, Pic()->Height()));
223b71206888 Initial import
thib
parents:
diff changeset
151 }
223b71206888 Initial import
thib
parents:
diff changeset
152 for (i=0; i<x_size; i++) {
223b71206888 Initial import
thib
parents:
diff changeset
153 item_x[i] = x + item_width[i] / 2;
223b71206888 Initial import
thib
parents:
diff changeset
154 x += item_width[i];
223b71206888 Initial import
thib
parents:
diff changeset
155 }
223b71206888 Initial import
thib
parents:
diff changeset
156 }
223b71206888 Initial import
thib
parents:
diff changeset
157 if (menu_height > height+y_min) {
223b71206888 Initial import
thib
parents:
diff changeset
158 int dif = menu_height - height - y_min;
223b71206888 Initial import
thib
parents:
diff changeset
159 int n = y_size + 1;
223b71206888 Initial import
thib
parents:
diff changeset
160 y += dif/n;
223b71206888 Initial import
thib
parents:
diff changeset
161 for (i=0; i<y_size; i++) {
223b71206888 Initial import
thib
parents:
diff changeset
162 item_y[i] = y + item_height[i] / 2;
223b71206888 Initial import
thib
parents:
diff changeset
163 y += item_height[i] + dif*(i+2)/n - dif*(i+1)/n;
223b71206888 Initial import
thib
parents:
diff changeset
164 }
223b71206888 Initial import
thib
parents:
diff changeset
165 } else {
223b71206888 Initial import
thib
parents:
diff changeset
166 if (menu_height == 0) {
223b71206888 Initial import
thib
parents:
diff changeset
167 Pic()->SetSurfaceRect(Rect(0, 0, Pic()->Width(), height+y_min));
223b71206888 Initial import
thib
parents:
diff changeset
168 }
223b71206888 Initial import
thib
parents:
diff changeset
169 for (i=0; i<y_size; i++) {
223b71206888 Initial import
thib
parents:
diff changeset
170 item_y[i] = y + item_height[i] / 2;
223b71206888 Initial import
thib
parents:
diff changeset
171 y += item_height[i];
223b71206888 Initial import
thib
parents:
diff changeset
172 }
223b71206888 Initial import
thib
parents:
diff changeset
173 }
223b71206888 Initial import
thib
parents:
diff changeset
174 // 位置の再割り当て
223b71206888 Initial import
thib
parents:
diff changeset
175 it = item.begin();
223b71206888 Initial import
thib
parents:
diff changeset
176 for (i=0; i<y_size; i++) {
223b71206888 Initial import
thib
parents:
diff changeset
177 for (j=0; j<x_size; j++) {
223b71206888 Initial import
thib
parents:
diff changeset
178 if (*it != 0 && (*it)->Pic() != 0) {
223b71206888 Initial import
thib
parents:
diff changeset
179 PicBase* pic = (*it)->Pic();
223b71206888 Initial import
thib
parents:
diff changeset
180 int x0 = item_x[j]-pic->Width()/2;
223b71206888 Initial import
thib
parents:
diff changeset
181 int y0 = item_y[i]-pic->Height()/2;
223b71206888 Initial import
thib
parents:
diff changeset
182 pic->Move(x0, y0);
223b71206888 Initial import
thib
parents:
diff changeset
183 }
223b71206888 Initial import
thib
parents:
diff changeset
184 it++;
223b71206888 Initial import
thib
parents:
diff changeset
185 }
223b71206888 Initial import
thib
parents:
diff changeset
186 }
223b71206888 Initial import
thib
parents:
diff changeset
187 // 左にラベルがある場合、ラベルの高さ方向のセンタリング
223b71206888 Initial import
thib
parents:
diff changeset
188 if (label && label->Pic() && lb_width != -1) {
223b71206888 Initial import
thib
parents:
diff changeset
189 int label_width = label->Pic()->Width();
223b71206888 Initial import
thib
parents:
diff changeset
190 int label_height = label->Pic()->Height();
223b71206888 Initial import
thib
parents:
diff changeset
191 label->Pic()->Move(x_min-label_width-lb_right, (Pic()->Height() - label_height) / 2);
223b71206888 Initial import
thib
parents:
diff changeset
192 }
223b71206888 Initial import
thib
parents:
diff changeset
193
223b71206888 Initial import
thib
parents:
diff changeset
194 delete[] item_width;
223b71206888 Initial import
thib
parents:
diff changeset
195 delete[] item_height;
223b71206888 Initial import
thib
parents:
diff changeset
196 delete[] item_x;
223b71206888 Initial import
thib
parents:
diff changeset
197 delete[] item_y;
223b71206888 Initial import
thib
parents:
diff changeset
198 };
223b71206888 Initial import
thib
parents:
diff changeset
199
223b71206888 Initial import
thib
parents:
diff changeset
200 RadioButton::RadioButton(Event::Container& _container, PicContainer* _parent, const Rect& r_orig, int _x_size, int _y_size, int* _value_ptr, const Rect& _button_r, int _text_size, const Color& _fore, const Color& _pressed, const Color& _back) :
223b71206888 Initial import
thib
parents:
diff changeset
201 MenuItem(_parent, r_orig, _x_size, _y_size,_value_ptr),
223b71206888 Initial import
thib
parents:
diff changeset
202 container(_container), parent(_parent), text_size(_text_size), button_rect(_button_r), buttons(0),
223b71206888 Initial import
thib
parents:
diff changeset
203 fore_color(_fore), pressed_color(_pressed), back_color(_back) {
223b71206888 Initial import
thib
parents:
diff changeset
204 }
223b71206888 Initial import
thib
parents:
diff changeset
205 void RadioButton::Add(const char* s, bool is_center) {
223b71206888 Initial import
thib
parents:
diff changeset
206 Add(s, fore_color, pressed_color, back_color, is_center);
223b71206888 Initial import
thib
parents:
diff changeset
207 }
223b71206888 Initial import
thib
parents:
diff changeset
208 void RadioButton::Add(const char* s, const Color& fore, const Color& pressed, const Color& back, bool is_center) {
223b71206888 Initial import
thib
parents:
diff changeset
209 if (buttons >= x_size*y_size) {
223b71206888 Initial import
thib
parents:
diff changeset
210 fprintf(stderr,"too many buttons (%d/%d) in RadioButton::Add ; text = %s\n",x_size,y_size,s);
223b71206888 Initial import
thib
parents:
diff changeset
211 return;
223b71206888 Initial import
thib
parents:
diff changeset
212 }
223b71206888 Initial import
thib
parents:
diff changeset
213 TextButton* wid = new TextButton(container, PicNode(), s, text_size, TextButton::Attribute(is_center ? TextButton::CENTER : 0), button_rect, 1, fore, pressed, back);
223b71206888 Initial import
thib
parents:
diff changeset
214
223b71206888 Initial import
thib
parents:
diff changeset
215 wid->press_func = &PressCallback;
223b71206888 Initial import
thib
parents:
diff changeset
216 wid->press_pointer = (void*)this;
223b71206888 Initial import
thib
parents:
diff changeset
217
223b71206888 Initial import
thib
parents:
diff changeset
218 if (value_ptr && buttons == *value_ptr) wid->Toggle(true);
223b71206888 Initial import
thib
parents:
diff changeset
219 int x_pos, y_pos;
223b71206888 Initial import
thib
parents:
diff changeset
220 if (y_size == 0) x_pos=buttons;
223b71206888 Initial import
thib
parents:
diff changeset
221 else x_pos = buttons / y_size, y_pos = buttons % y_size;
223b71206888 Initial import
thib
parents:
diff changeset
222 item[x_pos + y_pos*x_size] = wid;
223b71206888 Initial import
thib
parents:
diff changeset
223 buttons++;
223b71206888 Initial import
thib
parents:
diff changeset
224 };
223b71206888 Initial import
thib
parents:
diff changeset
225 void RadioButton::PressCallback(void* pointer, Button* from) {
223b71206888 Initial import
thib
parents:
diff changeset
226 RadioButton* wid = (RadioButton*)pointer;
223b71206888 Initial import
thib
parents:
diff changeset
227 int i;
223b71206888 Initial import
thib
parents:
diff changeset
228 for (i=0; i<wid->x_size*wid->y_size; i++) {
223b71206888 Initial import
thib
parents:
diff changeset
229 if (from == wid->item[i]) {
223b71206888 Initial import
thib
parents:
diff changeset
230 wid->SetValue(i);
223b71206888 Initial import
thib
parents:
diff changeset
231 return;
223b71206888 Initial import
thib
parents:
diff changeset
232 }
223b71206888 Initial import
thib
parents:
diff changeset
233 }
223b71206888 Initial import
thib
parents:
diff changeset
234 return;
223b71206888 Initial import
thib
parents:
diff changeset
235 }
223b71206888 Initial import
thib
parents:
diff changeset
236 void RadioButton::SetValueImpl(int new_value) {
223b71206888 Initial import
thib
parents:
diff changeset
237 int i;
223b71206888 Initial import
thib
parents:
diff changeset
238 for (i=0; i<x_size*y_size; i++) {
223b71206888 Initial import
thib
parents:
diff changeset
239 Button* wid = dynamic_cast<Button*>(item[i]);
223b71206888 Initial import
thib
parents:
diff changeset
240 if (wid) {
223b71206888 Initial import
thib
parents:
diff changeset
241 if (i == new_value) wid->Toggle(true);
223b71206888 Initial import
thib
parents:
diff changeset
242 else wid->Toggle(false);
223b71206888 Initial import
thib
parents:
diff changeset
243 }
223b71206888 Initial import
thib
parents:
diff changeset
244 }
223b71206888 Initial import
thib
parents:
diff changeset
245 }