|
|
|
@ -103,7 +103,7 @@ UploadDialog::UploadDialog(
|
|
|
|
|
TQWhatsThis::add( m_renameAlbumButton, i18n("Rename the selected photo album on the iPod."));
|
|
|
|
|
|
|
|
|
|
TQLabel *ipod_icon = new TQLabel( buttons );
|
|
|
|
|
ipod_icon->setPixmap( TDEGlobal::iconLoader()->loadIcon( "ipod", KIcon::Desktop, KIcon::SizeHuge ) );
|
|
|
|
|
ipod_icon->setPixmap( TDEGlobal::iconLoader()->loadIcon( "ipod", TDEIcon::Desktop, TDEIcon::SizeHuge ) );
|
|
|
|
|
|
|
|
|
|
m_ipodPreview = new TQLabel( buttons );
|
|
|
|
|
m_ipodPreview->setFixedHeight( 80 );
|
|
|
|
@ -148,7 +148,7 @@ UploadDialog::UploadDialog(
|
|
|
|
|
TQWhatsThis::add( m_imagePreview, i18n( "The preview of the selected image in the list." ) );
|
|
|
|
|
|
|
|
|
|
TQLabel *hdd_icon = new TQLabel( urlBox );
|
|
|
|
|
hdd_icon->setPixmap( TDEGlobal::iconLoader()->loadIcon( "system", KIcon::Desktop, KIcon::SizeHuge ) );
|
|
|
|
|
hdd_icon->setPixmap( TDEGlobal::iconLoader()->loadIcon( "system", TDEIcon::Desktop, TDEIcon::SizeHuge ) );
|
|
|
|
|
|
|
|
|
|
uploadPaneLayout->addWidget( m_imagePreview );
|
|
|
|
|
uploadPaneLayout->addStretch( 1 );
|
|
|
|
@ -207,7 +207,7 @@ UploadDialog::getIpodAlbums()
|
|
|
|
|
Itdb_PhotoAlbum *ipodAlbum = (Itdb_PhotoAlbum *)it->data;
|
|
|
|
|
debug() << " found album: " << ipodAlbum->name << endl;
|
|
|
|
|
last = new IpodAlbumItem( m_ipodAlbumList, last, ipodAlbum );
|
|
|
|
|
last->setPixmap( 0, TDEGlobal::iconLoader()->loadIcon( "folder", KIcon::Toolbar, KIcon::SizeSmall ) );
|
|
|
|
|
last->setPixmap( 0, TDEGlobal::iconLoader()->loadIcon( "folder", TDEIcon::Toolbar, TDEIcon::SizeSmall ) );
|
|
|
|
|
getIpodAlbumPhotos( last, ipodAlbum );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -225,7 +225,7 @@ UploadDialog::getIpodAlbumPhotos( IpodAlbumItem *item, Itdb_PhotoAlbum *album )
|
|
|
|
|
gint photo_id = photo->id;
|
|
|
|
|
last = new IpodPhotoItem( item, last, photo );
|
|
|
|
|
last->setText( 0, TQString::number( photo_id ) );
|
|
|
|
|
last->setPixmap( 0, TDEGlobal::iconLoader()->loadIcon( "image", KIcon::Toolbar, KIcon::SizeSmall ) );
|
|
|
|
|
last->setPixmap( 0, TDEGlobal::iconLoader()->loadIcon( "image", TDEIcon::Toolbar, TDEIcon::SizeSmall ) );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -469,7 +469,7 @@ UploadDialog::createIpodAlbum()
|
|
|
|
|
Itdb_PhotoAlbum *photoAlbum = itdb_photodb_photoalbum_create( m_itdb, TQFile::encodeName( newAlbum ), -1/*end*/ );
|
|
|
|
|
// add the new album to the list view
|
|
|
|
|
IpodAlbumItem *i = new IpodAlbumItem( m_ipodAlbumList, last, photoAlbum );
|
|
|
|
|
i->setPixmap( 0, TDEGlobal::iconLoader()->loadIcon( "folder", KIcon::Toolbar, KIcon::SizeSmall ) );
|
|
|
|
|
i->setPixmap( 0, TDEGlobal::iconLoader()->loadIcon( "folder", TDEIcon::Toolbar, TDEIcon::SizeSmall ) );
|
|
|
|
|
m_ipodAlbumList->clearSelection();
|
|
|
|
|
m_ipodAlbumList->setSelected( i, true );
|
|
|
|
|
|
|
|
|
|