|
|
|
@ -57,8 +57,8 @@ namespace KIPI
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
struct AlbumLVI : public KListViewItem {
|
|
|
|
|
AlbumLVI(KListView* tqparent, const KIPI::ImageCollection& album)
|
|
|
|
|
: KListViewItem(tqparent, album.name())
|
|
|
|
|
AlbumLVI(KListView* parent, const KIPI::ImageCollection& album)
|
|
|
|
|
: KListViewItem(parent, album.name())
|
|
|
|
|
, _album(album) {}
|
|
|
|
|
|
|
|
|
|
const KIPI::ImageCollection& _album;
|
|
|
|
@ -66,8 +66,8 @@ struct AlbumLVI : public KListViewItem {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct ImageLVI : public KListViewItem {
|
|
|
|
|
ImageLVI(KListView* tqparent, const KURL& url)
|
|
|
|
|
: KListViewItem(tqparent, url.fileName()), _url(url) {}
|
|
|
|
|
ImageLVI(KListView* parent, const KURL& url)
|
|
|
|
|
: KListViewItem(parent, url.fileName()), _url(url) {}
|
|
|
|
|
|
|
|
|
|
KURL _url;
|
|
|
|
|
};
|
|
|
|
@ -85,10 +85,10 @@ struct ImageDialog::Private {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ImageDialog::ImageDialog(TQWidget* tqparent, KIPI::Interface* interface,
|
|
|
|
|
ImageDialog::ImageDialog(TQWidget* parent, KIPI::Interface* interface,
|
|
|
|
|
bool singleSelection)
|
|
|
|
|
: KDialogBase(KDialogBase::Plain, i18n("Select Image From Album"), Help|Ok|Cancel,
|
|
|
|
|
Ok, tqparent, "album-dialog", true, true)
|
|
|
|
|
Ok, parent, "album-dialog", true, true)
|
|
|
|
|
{
|
|
|
|
|
d = new Private;
|
|
|
|
|
d->_interface=interface;
|
|
|
|
@ -198,8 +198,8 @@ KURL::List ImageDialog::urls() const
|
|
|
|
|
return d->_urls;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
KURL ImageDialog::getImageURL(TQWidget* tqparent, KIPI::Interface* interface) {
|
|
|
|
|
ImageDialog dlg(tqparent, interface, true);
|
|
|
|
|
KURL ImageDialog::getImageURL(TQWidget* parent, KIPI::Interface* interface) {
|
|
|
|
|
ImageDialog dlg(parent, interface, true);
|
|
|
|
|
if (dlg.exec() == TQDialog::Accepted) {
|
|
|
|
|
return dlg.url();
|
|
|
|
|
} else {
|
|
|
|
@ -207,9 +207,9 @@ KURL ImageDialog::getImageURL(TQWidget* tqparent, KIPI::Interface* interface) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
KURL::List ImageDialog::getImageURLs(TQWidget* tqparent, Interface* interface)
|
|
|
|
|
KURL::List ImageDialog::getImageURLs(TQWidget* parent, Interface* interface)
|
|
|
|
|
{
|
|
|
|
|
ImageDialog dlg(tqparent, interface, false);
|
|
|
|
|
ImageDialog dlg(parent, interface, false);
|
|
|
|
|
if (dlg.exec() == TQDialog::Accepted)
|
|
|
|
|
return dlg.urls();
|
|
|
|
|
else
|
|
|
|
|