[Marble-devel] Re: Review Request: Remove MarbleDataFacade; use MarbleModel instead

Bernhard Beschow bbeschow at cs.tu-berlin.de
Wed Mar 30 16:38:33 CEST 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://svn.reviewboard.kde.org/r/6624/
-----------------------------------------------------------

(Updated March 30, 2011, 2:38 p.m.)


Review request for marble and Thibaut Gridel.


Changes
-------

Final patch (as committed).


Summary
-------

MarbleDataFacade is basically a wrapper for MarbleModel and is used in RenderPlugins. Since MarbleModel is exported, MarbleDataFacace seems redundant.

Besides porting RenderPlugins to use const MarbleModel* rather than MarbleDataFacade*, the patch introduces the following changes:
* move all models, trees, and proxies from MarbleDataFacade to MarbleModel
* introduce convenience method MarbleModel::planetId() const;

Please have a look if there lifetime issues.


Diffs (updated)
-----

  /trunk/KDE/kdeedu/marble/docs/release_notes/APIChanges-0.12.txt 1226565 
  /trunk/KDE/kdeedu/marble/src/lib/AbstractDataPlugin.cpp 1226565 
  /trunk/KDE/kdeedu/marble/src/lib/AbstractDataPluginModel.h 1226565 
  /trunk/KDE/kdeedu/marble/src/lib/AbstractDataPluginModel.cpp 1226565 
  /trunk/KDE/kdeedu/marble/src/lib/BookmarkManagerDialog.cpp 1226565 
  /trunk/KDE/kdeedu/marble/src/lib/CMakeLists.txt 1226565 
  /trunk/KDE/kdeedu/marble/src/lib/FileManager.h 1226565 
  /trunk/KDE/kdeedu/marble/src/lib/FileManager.cpp 1226565 
  /trunk/KDE/kdeedu/marble/src/lib/FileViewWidget.cpp 1226565 
  /trunk/KDE/kdeedu/marble/src/lib/LayerManager.h 1226565 
  /trunk/KDE/kdeedu/marble/src/lib/LayerManager.cpp 1226565 
  /trunk/KDE/kdeedu/marble/src/lib/MarbleDataFacade.h 1226565 
  /trunk/KDE/kdeedu/marble/src/lib/MarbleDataFacade.cpp 1226565 
  /trunk/KDE/kdeedu/marble/src/lib/MarbleMap.cpp 1226565 
  /trunk/KDE/kdeedu/marble/src/lib/MarbleModel.h 1226565 
  /trunk/KDE/kdeedu/marble/src/lib/MarbleModel.cpp 1226565 
  /trunk/KDE/kdeedu/marble/src/lib/PlacemarkLayout.h 1226565 
  /trunk/KDE/kdeedu/marble/src/lib/RenderPlugin.h 1226565 
  /trunk/KDE/kdeedu/marble/src/lib/RenderPlugin.cpp 1226565 
  /trunk/KDE/kdeedu/marble/src/plugins/render/aprs/AprsPlugin.cpp 1226565 
  /trunk/KDE/kdeedu/marble/src/plugins/render/earthquake/EarthquakeModel.h 1226565 
  /trunk/KDE/kdeedu/marble/src/plugins/render/earthquake/EarthquakeModel.cpp 1226565 
  /trunk/KDE/kdeedu/marble/src/plugins/render/fileview/FileViewFloatItem.cpp 1226565 
  /trunk/KDE/kdeedu/marble/src/plugins/render/graticule/GraticulePlugin.cpp 1226565 
  /trunk/KDE/kdeedu/marble/src/plugins/render/inhibit-screensaver/InhibitScreensaverPlugin.cpp 1226565 
  /trunk/KDE/kdeedu/marble/src/plugins/render/mapscale/MapScaleFloatItem.cpp 1226565 
  /trunk/KDE/kdeedu/marble/src/plugins/render/opendesktop/OpenDesktopModel.h 1226565 
  /trunk/KDE/kdeedu/marble/src/plugins/render/opendesktop/OpenDesktopModel.cpp 1226565 
  /trunk/KDE/kdeedu/marble/src/plugins/render/overviewmap/OverviewMap.cpp 1226565 
  /trunk/KDE/kdeedu/marble/src/plugins/render/photo/PhotoPluginModel.h 1226565 
  /trunk/KDE/kdeedu/marble/src/plugins/render/photo/PhotoPluginModel.cpp 1226565 
  /trunk/KDE/kdeedu/marble/src/plugins/render/positionmarker/PositionMarker.cpp 1226565 
  /trunk/KDE/kdeedu/marble/src/plugins/render/routing/RoutingPlugin.cpp 1226565 
  /trunk/KDE/kdeedu/marble/src/plugins/render/stars/StarsPlugin.cpp 1226565 
  /trunk/KDE/kdeedu/marble/src/plugins/render/weather/AbstractWeatherService.h 1226565 
  /trunk/KDE/kdeedu/marble/src/plugins/render/weather/BBCItemGetter.h 1226565 
  /trunk/KDE/kdeedu/marble/src/plugins/render/weather/BBCItemGetter.cpp 1226565 
  /trunk/KDE/kdeedu/marble/src/plugins/render/weather/BBCWeatherService.h 1226565 
  /trunk/KDE/kdeedu/marble/src/plugins/render/weather/BBCWeatherService.cpp 1226565 
  /trunk/KDE/kdeedu/marble/src/plugins/render/weather/FakeWeatherService.h 1226565 
  /trunk/KDE/kdeedu/marble/src/plugins/render/weather/FakeWeatherService.cpp 1226565 
  /trunk/KDE/kdeedu/marble/src/plugins/render/weather/WeatherModel.h 1226565 
  /trunk/KDE/kdeedu/marble/src/plugins/render/weather/WeatherModel.cpp 1226565 
  /trunk/KDE/kdeedu/marble/src/plugins/render/wikipedia/WikipediaModel.h 1226565 
  /trunk/KDE/kdeedu/marble/src/plugins/render/wikipedia/WikipediaModel.cpp 1226565 

Diff: http://svn.reviewboard.kde.org/r/6624/diff


Testing
-------

there are issues with plugins that appear before and after the patch is applied
* the Wikipedia plugin doesn't show items upon startup
* the solcialdesktop plugin leads to a crash when closing Marble


Thanks,

Bernhard

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/marble-devel/attachments/20110330/e32270ee/attachment.htm 


More information about the Marble-devel mailing list