Mercurial > hg > orthanc-stone
comparison Applications/Generic/GuiAdapter.h @ 1290:7def6ab2929f bugs/2020-02-invisible-slice
Removal of debugging logs
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Fri, 21 Feb 2020 15:20:29 +0100 |
parents | 343aa1dfaa90 |
children | 6ab03e429f06 |
comparison
equal
deleted
inserted
replaced
1289:343aa1dfaa90 | 1290:7def6ab2929f |
---|---|
233 static int instanceCount = 0; | 233 static int instanceCount = 0; |
234 ORTHANC_ASSERT(instanceCount == 0); | 234 ORTHANC_ASSERT(instanceCount == 0); |
235 instanceCount = 1; | 235 instanceCount = 1; |
236 } | 236 } |
237 | 237 |
238 | |
239 #if 0 | |
240 void RegisterWidget(boost::shared_ptr<IGuiAdapterWidget> widget); | |
241 #endif | |
242 | |
243 /** | 238 /** |
244 emscripten_set_resize_callback("#window", NULL, false, OnWindowResize); | 239 emscripten_set_resize_callback("#window", NULL, false, OnWindowResize); |
245 | 240 |
246 emscripten_set_wheel_callback("mycanvas1", widget1_.get(), false, OnXXXMouseWheel); | 241 emscripten_set_wheel_callback("mycanvas1", widget1_.get(), false, OnXXXMouseWheel); |
247 emscripten_set_wheel_callback("mycanvas2", widget2_.get(), false, OnXXXMouseWheel); | 242 emscripten_set_wheel_callback("mycanvas2", widget2_.get(), false, OnXXXMouseWheel); |
362 /** | 357 /** |
363 This executes all the registered headers if needed (in wasm, the browser | 358 This executes all the registered headers if needed (in wasm, the browser |
364 deals with this) | 359 deals with this) |
365 */ | 360 */ |
366 void ViewportsUpdateSize(); | 361 void ViewportsUpdateSize(); |
367 | |
368 | |
369 #if 0 | |
370 std::vector<boost::weak_ptr<IGuiAdapterWidget> > widgets_; | |
371 | |
372 template<typename F> void VisitWidgets(F func) | |
373 { | |
374 for (size_t i = 0; i < widgets_.size(); i++) | |
375 { | |
376 boost::shared_ptr<IGuiAdapterWidget> widget = widgets_[i].lock(); | |
377 | |
378 // TODO: we need to clean widgets! | |
379 if (widget.get() != NULL) | |
380 { | |
381 func(widget); | |
382 } | |
383 } | |
384 } | |
385 #endif | |
386 }; | 362 }; |
387 } | 363 } |