Hi!
I would like to submit this WIP branch for preliminary(!) review.
The code implements binding around KIPI library for QML. Following classes are wrapped:
- ImageInfo
- ImageCollection
- Interface
Also the following classes are created specifically for QtQuick:
- Model that wraps ImageCollection and can be used with Qml Views. Model provides access to thumbnail, preview and normal photo
- QtQuick Image providers that could be used to request previews/thumbnails through KIPI::Interface
Test utility is provided. Menu item 'Tools -> View in QmlImageViewer'. Code is in subfolder 'tests/qmlimageviewer'
The code is Work-In-Progress and contains numerous TODO's, some files has inconsistent 'space'/'tab' indentation etc, most of plugins are disabled in CMakeLists.txt to speedup buiding etc. I'll of course fix it all before making a real pull request.
At the moment I'am interested in some early feedback:
- Will you accept QML bindings to KIPI plugins at all ?
- Is there any comments/requests to this implementation ? Classes that should be rewriten in different paradigm, or may be I use incorrectly/suboptimally some KIPI interfaces/methods etc. It is easier to rewrite things in early stages of development.
These things I plan to look into and, if possible, implement before actuall pull request:
- Moving binding into a standalone Qml extension. That will allow creating plugins in pure Qml and make calls to ugly InitKIPIQuick and InitKIPIQmlEngine unnecessary.