[Marble-devel] Marble Declarative plugin extension for making QML interface for plugin settings
earthwings at gentoo.org
Thu May 31 12:11:02 UTC 2012
this matches indeed nicely with my work on the QML layers. I'm wondering
if it wouldn't be easier to avoid using the wrapper object
(DeclarativeRenderPlugin) here and instead return the RenderPlugin as is
- possibly extending them by the needed Q_PROPERTY declarations and
maybe making some methods Q_SLOTS (or marking them Q_INVOKABLE, I prefer
Oh, and as this looks like it should end up as a review request, can you
please use foo() instead of getFoo() for getters? We're trying to be
close to the Qt API.
Am 31.05.2012 12:39, schrieb Torsten Rahn:
> Hi Anton,
> thanks for your input on this topic. Did you see
> "QML Layers in Marble" ?
> I guess Dennis has a few more comments on this topic.
> On Donnerstag, 31. Mai 2012 12:33:13 Anton Chernov wrote:
>> Hello Marble developers.
>> I'm going to use Marble for special data processing case for internal
>> usage in my company.
>> I use QML for user interface in my project and I'm working on Marble
>> intergarion to the project now.
>> I think the best way to add some extensions to Marble is add a Render
>> or Runner, or FloatItem plugins. But using Marble plugins in QML are
>> little bit complicated, because we can only select active
>> RenderPlugins and FloatItems but not manage theirs properties or
>> handle events.
>> I develop some additional class (DeclarativeRenderPlugin) which
>> provide QML interface for plugins and share this interface from
>> MarbleDeclarativeWidget. This extension allows get and change plugin
>> properties, enable or disable plugins in QML etc. The example project
>> based on "explore" example of Marble is also attached. The patch is
>> based on current Marble master tree (commit
>> 0299004157ce00cf901b6113c4ac14fa0c323c00 ).
>> I think this kind of functionality in Marble declarative plugin will
>> be very very useful. The code of patch may be a little rude, but shows
>> the idea. I can continue this work if you say that it is needed.
>> I'm open to your suggestions and feedback.
>> Best regards,
>> Anton Chernov
>> LOTES TM LLC,
>> skype: chernov.anton
> Marble-devel mailing list
> Marble-devel at kde.org
More information about the Marble-devel