<br><br><div class="gmail_quote">2009/1/11 Luka Renko <span dir="ltr"><<a href="mailto:lure@kubuntu.org">lure@kubuntu.org</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
<br>
After completing SmugMug export plugin, I would like to add Import<br>
functionality for SmugMug to KIPI.<br>
<br>
Idea is that user could select SmugMug albums, his/hers or from other users<br>
and that all images would be downloaded to specific local directory.<br>
</blockquote><div><br>If i understand, you want to download from smugmug to computer<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
As KIPI works with collections, it looks like I would need to offer to user<br>
the target directory my listing all collections and then get destination<br>
directory through colection->uploadPath(). But I am not sure how user could<br>
create new folder/album for download.</blockquote><div><br>To select collection, use KIPI::UploadWidget.<br><br>When i have re-implemented this template widget in libkipi, i have forget the case to create a new collection on your kipi host.<br>
<br>This template widget is re-implemented in host application to follow dedicated model view, which can be different in host applications.<br><br>I recommend to extend KIPI::UploadWidget to be able to create a new physical collection using a button somewhere in widget. You must only set virtual methods in libkipi to delegate to host the way to implement gui (the "New" button in this case). Also, new collection creation is done in kipi host application interface : do not force to create a folder for collection because kphotoalbum for ex, do not use this way.<br>
<br>Note: libkipi do not include i18n. It must still like this. host applications implement gui and solve internationalization.<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Do I understand it correctly, that there is no way to add new<br>
collection/album/folder through KIPI?<br>
For Digikam, I could offer just regular create directory folder on the right<br>
starting path (root of digikam photos), and then digikam would pick this<br>
photos (autodetect) when they would appear in this folder. But this does not<br>
seems like universal solution.<br>
<br>
Also, there is no way for KIPI plugin to update name/comment of image<br>
collection (for example with name/comment from SmugMug album)?</blockquote><div><br>yes. kIPI::ImageCollectionShared class need to be extended.<br><br>Note : all new code can be posted to kdegraphic from trunk, since KDE4.2 branch has been created. <br>
<br>Best<br><br>Gilles</div></div><br>