Mercurial > hg > orthanc-stone
annotate Framework/Widgets/LayoutWidget.cpp @ 114:3541fc81331a wasm
starting WebAssembly
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 20 Sep 2017 16:11:52 +0200 |
parents | 2eca030792aa |
children | e2fe9352f240 |
rev | line source |
---|---|
0 | 1 /** |
2 * Stone of Orthanc | |
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | |
4 * Department, University Hospital of Liege, Belgium | |
40
7207a407bcd8
shared copyright with osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
16
diff
changeset
|
5 * Copyright (C) 2017 Osimis, Belgium |
0 | 6 * |
7 * This program is free software: you can redistribute it and/or | |
47 | 8 * modify it under the terms of the GNU Affero General Public License |
9 * as published by the Free Software Foundation, either version 3 of | |
10 * the License, or (at your option) any later version. | |
0 | 11 * |
12 * This program is distributed in the hope that it will be useful, but | |
13 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
47 | 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 * Affero General Public License for more details. | |
16 * | |
17 * You should have received a copy of the GNU Affero General Public License | |
0 | 18 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 **/ | |
20 | |
21 | |
22 #include "LayoutWidget.h" | |
23 | |
113
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
61
diff
changeset
|
24 #include <Core/Logging.h> |
2eca030792aa
using the Orthanc Framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
61
diff
changeset
|
25 #include <Core/OrthancException.h> |
0 | 26 |
27 #include <boost/math/special_functions/round.hpp> | |
28 | |
29 namespace OrthancStone | |
30 { | |
31 class LayoutWidget::LayoutMouseTracker : public IMouseTracker | |
32 { | |
33 private: | |
34 std::auto_ptr<IMouseTracker> tracker_; | |
35 int left_; | |
36 int top_; | |
37 unsigned int width_; | |
38 unsigned int height_; | |
39 | |
40 public: | |
41 LayoutMouseTracker(IMouseTracker* tracker, | |
42 int left, | |
43 int top, | |
44 unsigned int width, | |
45 unsigned int height) : | |
46 tracker_(tracker), | |
47 left_(left), | |
48 top_(top), | |
49 width_(width), | |
50 height_(height) | |
51 { | |
52 if (tracker == NULL) | |
53 { | |
54 throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError); | |
55 } | |
56 } | |
57 | |
58 virtual void Render(Orthanc::ImageAccessor& surface) | |
59 { | |
60 Orthanc::ImageAccessor accessor = surface.GetRegion(left_, top_, width_, height_); | |
61 tracker_->Render(accessor); | |
62 } | |
63 | |
64 virtual void MouseUp() | |
65 { | |
66 tracker_->MouseUp(); | |
67 } | |
68 | |
69 virtual void MouseMove(int x, | |
70 int y) | |
71 { | |
72 tracker_->MouseMove(x - left_, y - top_); | |
73 } | |
74 }; | |
75 | |
76 | |
77 class LayoutWidget::ChildWidget : public boost::noncopyable | |
78 { | |
79 private: | |
80 std::auto_ptr<IWidget> widget_; | |
81 int left_; | |
82 int top_; | |
83 unsigned int width_; | |
84 unsigned int height_; | |
53
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
85 bool hasUpdate_; |
0 | 86 |
87 public: | |
88 ChildWidget(IWidget* widget) : | |
53
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
89 widget_(widget), |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
90 hasUpdate_(widget->HasUpdateContent()) |
0 | 91 { |
92 assert(widget != NULL); | |
93 SetEmpty(); | |
94 } | |
95 | |
53
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
96 void UpdateContent() |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
97 { |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
98 if (hasUpdate_) |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
99 { |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
100 widget_->UpdateContent(); |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
101 } |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
102 } |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
103 |
0 | 104 IWidget& GetWidget() const |
105 { | |
106 return *widget_; | |
107 } | |
108 | |
109 void SetRectangle(unsigned int left, | |
110 unsigned int top, | |
111 unsigned int width, | |
112 unsigned int height) | |
113 { | |
114 left_ = left; | |
115 top_ = top; | |
116 width_ = width; | |
117 height_ = height; | |
118 | |
119 widget_->SetSize(width, height); | |
120 } | |
121 | |
122 void SetEmpty() | |
123 { | |
124 SetRectangle(0, 0, 0, 0); | |
125 } | |
126 | |
127 bool Contains(int x, | |
128 int y) const | |
129 { | |
130 return (x >= left_ && | |
131 y >= top_ && | |
132 x < left_ + static_cast<int>(width_) && | |
133 y < top_ + static_cast<int>(height_)); | |
134 } | |
135 | |
136 bool Render(Orthanc::ImageAccessor& target) | |
137 { | |
138 if (width_ == 0 || | |
139 height_ == 0) | |
140 { | |
141 return true; | |
142 } | |
143 else | |
144 { | |
145 Orthanc::ImageAccessor accessor = target.GetRegion(left_, top_, width_, height_); | |
146 return widget_->Render(accessor); | |
147 } | |
148 } | |
149 | |
150 IMouseTracker* CreateMouseTracker(MouseButton button, | |
151 int x, | |
152 int y, | |
153 KeyboardModifiers modifiers) | |
154 { | |
155 if (Contains(x, y)) | |
156 { | |
157 IMouseTracker* tracker = widget_->CreateMouseTracker(button, | |
158 x - left_, | |
159 y - top_, | |
160 modifiers); | |
161 if (tracker) | |
162 { | |
163 return new LayoutMouseTracker(tracker, left_, top_, width_, height_); | |
164 } | |
165 } | |
166 | |
167 return NULL; | |
168 } | |
169 | |
170 void RenderMouseOver(Orthanc::ImageAccessor& target, | |
171 int x, | |
172 int y) | |
173 { | |
174 if (Contains(x, y)) | |
175 { | |
176 Orthanc::ImageAccessor accessor = target.GetRegion(left_, top_, width_, height_); | |
177 | |
178 widget_->RenderMouseOver(accessor, x - left_, y - top_); | |
179 } | |
180 } | |
181 | |
182 void MouseWheel(MouseWheelDirection direction, | |
183 int x, | |
184 int y, | |
185 KeyboardModifiers modifiers) | |
186 { | |
187 if (Contains(x, y)) | |
188 { | |
189 widget_->MouseWheel(direction, x - left_, y - top_, modifiers); | |
190 } | |
191 } | |
54
01aa453d4d5b
IWidget::HasRenderMouseOver
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
53
diff
changeset
|
192 |
55 | 193 bool HasRenderMouseOver() |
54
01aa453d4d5b
IWidget::HasRenderMouseOver
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
53
diff
changeset
|
194 { |
55 | 195 return widget_->HasRenderMouseOver(); |
54
01aa453d4d5b
IWidget::HasRenderMouseOver
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
53
diff
changeset
|
196 } |
0 | 197 }; |
198 | |
199 | |
200 void LayoutWidget::ComputeChildrenExtents() | |
201 { | |
202 if (children_.size() == 0) | |
203 { | |
204 return; | |
205 } | |
206 | |
207 float internal = static_cast<float>(paddingInternal_); | |
208 | |
209 if (width_ <= paddingLeft_ + paddingRight_ || | |
210 height_ <= paddingTop_ + paddingBottom_) | |
211 { | |
212 for (size_t i = 0; i < children_.size(); i++) | |
213 { | |
214 children_[i]->SetEmpty(); | |
215 } | |
216 } | |
217 else if (isHorizontal_) | |
218 { | |
219 unsigned int padding = paddingLeft_ + paddingRight_ + (children_.size() - 1) * paddingInternal_; | |
220 float childWidth = ((static_cast<float>(width_) - static_cast<float>(padding)) / | |
221 static_cast<float>(children_.size())); | |
222 | |
223 for (size_t i = 0; i < children_.size(); i++) | |
224 { | |
225 float left = static_cast<float>(paddingLeft_) + static_cast<float>(i) * (childWidth + internal); | |
226 float right = left + childWidth; | |
227 | |
228 if (left >= right) | |
229 { | |
230 children_[i]->SetEmpty(); | |
231 } | |
232 else | |
233 { | |
234 children_[i]->SetRectangle(static_cast<unsigned int>(left), | |
235 paddingTop_, | |
236 boost::math::iround(right - left), | |
237 height_ - paddingTop_ - paddingBottom_); | |
238 } | |
239 } | |
240 } | |
241 else | |
242 { | |
243 unsigned int padding = paddingTop_ + paddingBottom_ + (children_.size() - 1) * paddingInternal_; | |
244 float childHeight = ((static_cast<float>(height_) - static_cast<float>(padding)) / | |
245 static_cast<float>(children_.size())); | |
246 | |
247 for (size_t i = 0; i < children_.size(); i++) | |
248 { | |
249 float top = static_cast<float>(paddingTop_) + static_cast<float>(i) * (childHeight + internal); | |
250 float bottom = top + childHeight; | |
251 | |
252 if (top >= bottom) | |
253 { | |
254 children_[i]->SetEmpty(); | |
255 } | |
256 else | |
257 { | |
258 children_[i]->SetRectangle(paddingTop_, | |
259 static_cast<unsigned int>(top), | |
260 width_ - paddingLeft_ - paddingRight_, | |
261 boost::math::iround(bottom - top)); | |
262 } | |
263 } | |
264 } | |
265 | |
266 NotifyChange(*this); | |
267 } | |
268 | |
269 | |
270 LayoutWidget::LayoutWidget() : | |
271 isHorizontal_(true), | |
272 width_(0), | |
273 height_(0), | |
274 paddingLeft_(0), | |
275 paddingTop_(0), | |
276 paddingRight_(0), | |
277 paddingBottom_(0), | |
278 paddingInternal_(0) | |
279 { | |
280 } | |
281 | |
282 | |
283 LayoutWidget::~LayoutWidget() | |
284 { | |
285 for (size_t i = 0; i < children_.size(); i++) | |
286 { | |
287 delete children_[i]; | |
288 } | |
289 } | |
290 | |
291 | |
61
ca644004d2ee
MAJOR - removal of Start/Stop and observers in IWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
55
diff
changeset
|
292 void LayoutWidget::SetDefaultView() |
ca644004d2ee
MAJOR - removal of Start/Stop and observers in IWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
55
diff
changeset
|
293 { |
ca644004d2ee
MAJOR - removal of Start/Stop and observers in IWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
55
diff
changeset
|
294 for (size_t i = 0; i < children_.size(); i++) |
ca644004d2ee
MAJOR - removal of Start/Stop and observers in IWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
55
diff
changeset
|
295 { |
ca644004d2ee
MAJOR - removal of Start/Stop and observers in IWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
55
diff
changeset
|
296 children_[i]->GetWidget().SetDefaultView(); |
ca644004d2ee
MAJOR - removal of Start/Stop and observers in IWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
55
diff
changeset
|
297 } |
ca644004d2ee
MAJOR - removal of Start/Stop and observers in IWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
55
diff
changeset
|
298 } |
ca644004d2ee
MAJOR - removal of Start/Stop and observers in IWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
55
diff
changeset
|
299 |
ca644004d2ee
MAJOR - removal of Start/Stop and observers in IWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
55
diff
changeset
|
300 |
0 | 301 void LayoutWidget::NotifyChange(const IWidget& widget) |
302 { | |
303 // One of the children has changed | |
304 WidgetBase::NotifyChange(); | |
305 } | |
306 | |
307 | |
308 void LayoutWidget::SetHorizontal() | |
309 { | |
310 isHorizontal_ = true; | |
311 ComputeChildrenExtents(); | |
312 } | |
313 | |
314 | |
315 void LayoutWidget::SetVertical() | |
316 { | |
317 isHorizontal_ = false; | |
318 ComputeChildrenExtents(); | |
319 } | |
320 | |
321 | |
322 void LayoutWidget::SetPadding(unsigned int left, | |
323 unsigned int top, | |
324 unsigned int right, | |
325 unsigned int bottom, | |
326 unsigned int spacing) | |
327 { | |
328 paddingLeft_ = left; | |
329 paddingTop_ = top; | |
330 paddingRight_ = right; | |
331 paddingBottom_ = bottom; | |
332 paddingInternal_ = spacing; | |
333 } | |
334 | |
335 | |
336 void LayoutWidget::SetPadding(unsigned int padding) | |
337 { | |
338 paddingLeft_ = padding; | |
339 paddingTop_ = padding; | |
340 paddingRight_ = padding; | |
341 paddingBottom_ = padding; | |
342 paddingInternal_ = padding; | |
343 } | |
344 | |
345 | |
346 IWidget& LayoutWidget::AddWidget(IWidget* widget) // Takes ownership | |
347 { | |
348 if (widget == NULL) | |
349 { | |
350 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); | |
351 } | |
352 | |
353 if (GetStatusBar() != NULL) | |
354 { | |
355 widget->SetStatusBar(*GetStatusBar()); | |
356 } | |
357 | |
358 children_.push_back(new ChildWidget(widget)); | |
61
ca644004d2ee
MAJOR - removal of Start/Stop and observers in IWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
55
diff
changeset
|
359 widget->SetParent(*this); |
0 | 360 |
361 ComputeChildrenExtents(); | |
362 | |
53
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
363 if (widget->HasUpdateContent()) |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
364 { |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
365 hasUpdateContent_ = true; |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
366 } |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
367 |
0 | 368 return *widget; |
369 } | |
370 | |
371 | |
372 void LayoutWidget::SetStatusBar(IStatusBar& statusBar) | |
373 { | |
374 WidgetBase::SetStatusBar(statusBar); | |
375 | |
376 for (size_t i = 0; i < children_.size(); i++) | |
377 { | |
378 children_[i]->GetWidget().SetStatusBar(statusBar); | |
379 } | |
380 } | |
381 | |
382 | |
383 void LayoutWidget::SetSize(unsigned int width, | |
384 unsigned int height) | |
385 { | |
386 width_ = width; | |
387 height_ = height; | |
388 ComputeChildrenExtents(); | |
389 } | |
390 | |
391 | |
392 bool LayoutWidget::Render(Orthanc::ImageAccessor& surface) | |
393 { | |
394 if (!WidgetBase::Render(surface)) | |
395 { | |
396 return false; | |
397 } | |
398 | |
399 for (size_t i = 0; i < children_.size(); i++) | |
400 { | |
401 if (!children_[i]->Render(surface)) | |
402 { | |
403 return false; | |
404 } | |
405 } | |
406 | |
407 return true; | |
408 } | |
409 | |
410 | |
411 IMouseTracker* LayoutWidget::CreateMouseTracker(MouseButton button, | |
412 int x, | |
413 int y, | |
414 KeyboardModifiers modifiers) | |
415 { | |
416 for (size_t i = 0; i < children_.size(); i++) | |
417 { | |
418 IMouseTracker* tracker = children_[i]->CreateMouseTracker(button, x, y, modifiers); | |
419 if (tracker != NULL) | |
420 { | |
421 return tracker; | |
422 } | |
423 } | |
424 | |
425 return NULL; | |
426 } | |
427 | |
428 | |
429 void LayoutWidget::RenderMouseOver(Orthanc::ImageAccessor& target, | |
430 int x, | |
431 int y) | |
432 { | |
433 for (size_t i = 0; i < children_.size(); i++) | |
434 { | |
435 children_[i]->RenderMouseOver(target, x, y); | |
436 } | |
437 } | |
438 | |
439 | |
440 void LayoutWidget::MouseWheel(MouseWheelDirection direction, | |
441 int x, | |
442 int y, | |
443 KeyboardModifiers modifiers) | |
444 { | |
445 for (size_t i = 0; i < children_.size(); i++) | |
446 { | |
447 children_[i]->MouseWheel(direction, x, y, modifiers); | |
448 } | |
449 } | |
450 | |
451 | |
452 void LayoutWidget::KeyPressed(char key, | |
453 KeyboardModifiers modifiers) | |
454 { | |
455 for (size_t i = 0; i < children_.size(); i++) | |
456 { | |
457 children_[i]->GetWidget().KeyPressed(key, modifiers); | |
458 } | |
459 } | |
53
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
460 |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
461 |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
462 void LayoutWidget::UpdateContent() |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
463 { |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
464 if (hasUpdateContent_) |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
465 { |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
466 for (size_t i = 0; i < children_.size(); i++) |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
467 { |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
468 children_[i]->UpdateContent(); |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
469 } |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
470 } |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
471 else |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
472 { |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
473 throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError); |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
474 } |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
475 } |
54
01aa453d4d5b
IWidget::HasRenderMouseOver
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
53
diff
changeset
|
476 |
01aa453d4d5b
IWidget::HasRenderMouseOver
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
53
diff
changeset
|
477 |
55 | 478 bool LayoutWidget::HasRenderMouseOver() |
54
01aa453d4d5b
IWidget::HasRenderMouseOver
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
53
diff
changeset
|
479 { |
01aa453d4d5b
IWidget::HasRenderMouseOver
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
53
diff
changeset
|
480 for (size_t i = 0; i < children_.size(); i++) |
01aa453d4d5b
IWidget::HasRenderMouseOver
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
53
diff
changeset
|
481 { |
55 | 482 if (children_[i]->HasRenderMouseOver()) |
54
01aa453d4d5b
IWidget::HasRenderMouseOver
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
53
diff
changeset
|
483 { |
01aa453d4d5b
IWidget::HasRenderMouseOver
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
53
diff
changeset
|
484 return true; |
01aa453d4d5b
IWidget::HasRenderMouseOver
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
53
diff
changeset
|
485 } |
01aa453d4d5b
IWidget::HasRenderMouseOver
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
53
diff
changeset
|
486 } |
01aa453d4d5b
IWidget::HasRenderMouseOver
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
53
diff
changeset
|
487 |
01aa453d4d5b
IWidget::HasRenderMouseOver
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
53
diff
changeset
|
488 return false; |
01aa453d4d5b
IWidget::HasRenderMouseOver
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
53
diff
changeset
|
489 } |
0 | 490 } |