diff options
author | Michele Calgaro <[email protected]> | 2019-06-26 21:20:54 +0900 |
---|---|---|
committer | TDE Gitea <[email protected]> | 2019-07-09 04:30:04 +0000 |
commit | b3e0959ffd082089ef72f08457a34fd81607fb66 (patch) | |
tree | c725465969ce69484dcbb13bc0bba48e95de825c | |
parent | 6be9ab69ad53338a446c26fcdf68faa30894f85c (diff) | |
download | amarok-b3e0959ffd082089ef72f08457a34fd81607fb66.tar.gz amarok-b3e0959ffd082089ef72f08457a34fd81607fb66.zip |
Adjusted to new normalized device icon names in tdelibs.
Signed-off-by: Michele Calgaro <[email protected]>
-rw-r--r-- | amarok/src/collectionbrowser.cpp | 4 | ||||
-rw-r--r-- | amarok/src/iconloader.cpp | 8 | ||||
-rw-r--r-- | amarok/src/magnatunebrowser/magnatunelistviewitems.cpp | 45 | ||||
-rw-r--r-- | amarok/src/mediabrowser.cpp | 2 | ||||
-rw-r--r-- | amarok/src/mediadevice/generic/genericmediadevice.cpp | 4 | ||||
-rw-r--r-- | amarok/src/mediadevice/ipod/ipodmediadevice.cpp | 8 |
6 files changed, 14 insertions, 57 deletions
diff --git a/amarok/src/collectionbrowser.cpp b/amarok/src/collectionbrowser.cpp index 93826fea..3ca7023c 100644 --- a/amarok/src/collectionbrowser.cpp +++ b/amarok/src/collectionbrowser.cpp @@ -2709,10 +2709,10 @@ CollectionView::iconForCategory( const int cat ) const switch( cat ) { case IdAlbum: - icon = "media-optical-cdrom"; + icon = "media-optical-cdrom-unmounted"; break; case IdVisYearAlbum: - icon = "media-optical-cdrom"; + icon = "media-optical-cdrom-unmounted"; break; case IdArtist: icon = "preferences-desktop-personal"; diff --git a/amarok/src/iconloader.cpp b/amarok/src/iconloader.cpp index 40efd211..30305165 100644 --- a/amarok/src/iconloader.cpp +++ b/amarok/src/iconloader.cpp @@ -35,18 +35,18 @@ Amarok::icon( const TQString& name ) //declared in amarok.h if( iconMap.empty() ) { iconMap["add_lyrics"] = "edit_add"; iconMap["add_playlist"] = "1downarrow"; - iconMap["album"] = "media-optical-cdrom"; + iconMap["album"] = "media-optical-cdrom-unmounted"; iconMap["artist"] = "preferences-desktop-personal"; iconMap["audioscrobbler"] = "audioscrobbler"; iconMap["love"] = "bookmark"; iconMap["back"] = "media-skip-backward"; - iconMap["burn"] = "media-optical-cdrom"; + iconMap["burn"] = "media-optical-cdrom-unmounted"; iconMap["change_language"] = "configure"; iconMap["clock"] = "history"; iconMap["collection"] = "collection"; iconMap["configure"] = "configure"; iconMap["covermanager"] = "covermanager"; - iconMap["device"] = "media-flash-usb"; + iconMap["device"] = "media-flash-usb-unmounted"; iconMap["download"] = "tdehtml_kget"; iconMap["dynamic"] = "dynamic"; iconMap["edit"] = "edit"; @@ -79,7 +79,7 @@ Amarok::icon( const TQString& name ) //declared in amarok.h iconMap["refresh"] = "reload"; iconMap["remove"] = "edit-delete"; iconMap["remove_from_playlist"] = "remove"; - iconMap["repeat_album"] = "media-optical-cdrom"; + iconMap["repeat_album"] = "media-optical-cdrom-unmounted"; iconMap["repeat_no"] = "go-bottom"; iconMap["repeat_playlist"] = "repeat_playlist"; iconMap["repeat_track"] = "repeat_track"; diff --git a/amarok/src/magnatunebrowser/magnatunelistviewitems.cpp b/amarok/src/magnatunebrowser/magnatunelistviewitems.cpp index f7c3c4bc..73320b1a 100644 --- a/amarok/src/magnatunebrowser/magnatunelistviewitems.cpp +++ b/amarok/src/magnatunebrowser/magnatunelistviewitems.cpp @@ -27,8 +27,6 @@ #include <tqdatetime.h> - - MagnatuneListViewArtistItem::MagnatuneListViewArtistItem( MagnatuneArtist artist, TDEListView * parent ) : TDEListViewItem( parent ), MagnatuneArtist( artist ) { @@ -45,7 +43,6 @@ MagnatuneListViewArtistItem::~ MagnatuneListViewArtistItem( ) void MagnatuneListViewArtistItem::setOpen( bool o ) { - if ( o && !childCount() ) { listView()->setUpdatesEnabled( false ); @@ -61,8 +58,6 @@ void MagnatuneListViewArtistItem::setOpen( bool o ) TDEListViewItem::setOpen( o ); invalidateHeight(); listView()->repaintContents(); - - } @@ -72,34 +67,19 @@ void MagnatuneListViewArtistItem::setup() TDEListViewItem::setup(); } - - - - - - - - - - - - MagnatuneListViewAlbumItem::MagnatuneListViewAlbumItem( MagnatuneAlbum album, TDEListViewItem * parent ) : TDEListViewItem( parent ), MagnatuneAlbum( album ) { TDEListViewItem::setText( 0, album.getName() ); setDragEnabled( true ); - //setPixmap(0, TDEGlobal::iconLoader()->loadIcon( "media-optical-cdrom", TDEIcon::Toolbar, TDEIcon::SizeSmall ) ); - - + //setPixmap(0, TDEGlobal::iconLoader()->loadIcon( "media-optical-cdrom-unmounted", TDEIcon::Toolbar, TDEIcon::SizeSmall ) ); } MagnatuneListViewAlbumItem::~ MagnatuneListViewAlbumItem( ) { } - void MagnatuneListViewAlbumItem::setOpen( bool o ) { @@ -119,8 +99,6 @@ void MagnatuneListViewAlbumItem::setOpen( bool o ) TDEListViewItem::setOpen( o ); invalidateHeight(); listView()->repaintContents(); - - } void MagnatuneListViewAlbumItem::setup( ) @@ -129,29 +107,14 @@ void MagnatuneListViewAlbumItem::setup( ) TDEListViewItem::setup(); } - - - - - - - - - - - - MagnatuneListViewTrackItem::MagnatuneListViewTrackItem( MagnatuneTrack track, TDEListViewItem * parent ) : TDEListViewItem( parent ), MagnatuneTrack( track ) { - int trackNumber = track.getTrackNumber(); TQString trackNumberString = TQString::number( trackNumber ); if (trackNumber < 10) trackNumberString = '0' + trackNumberString; - - TDEListViewItem::setText( 0, trackNumberString + " - " + track.getName() ); debug() << "track duration: " << TQString::number( track.getDuration() ) << endl; @@ -172,9 +135,3 @@ MagnatuneListViewTrackItem::MagnatuneListViewTrackItem( MagnatuneTrack track, TD MagnatuneListViewTrackItem::~ MagnatuneListViewTrackItem( ) { } - - - - - - diff --git a/amarok/src/mediabrowser.cpp b/amarok/src/mediabrowser.cpp index ea9be5ef..7a8c21b9 100644 --- a/amarok/src/mediabrowser.cpp +++ b/amarok/src/mediabrowser.cpp @@ -233,7 +233,7 @@ MediaBrowser::MediaBrowser( const char *name ) // cancel // sound MediaItem::s_pixArtist = new TQPixmap(iconLoader.loadIcon( Amarok::icon( "personal" ), TDEIcon::Toolbar, TDEIcon::SizeSmall ) ); - MediaItem::s_pixAlbum = new TQPixmap(iconLoader.loadIcon( Amarok::icon( "media-optical-cdrom" ), TDEIcon::Toolbar, TDEIcon::SizeSmall ) ); + MediaItem::s_pixAlbum = new TQPixmap(iconLoader.loadIcon( Amarok::icon( "media-optical-cdrom-unmounted" ), TDEIcon::Toolbar, TDEIcon::SizeSmall ) ); MediaItem::s_pixInvisible = new TQPixmap(iconLoader.loadIcon( Amarok::icon( "cancel" ), TDEIcon::Toolbar, TDEIcon::SizeSmall ) ); MediaItem::s_pixStale = new TQPixmap(iconLoader.loadIcon( Amarok::icon( "cancel" ), TDEIcon::Toolbar, TDEIcon::SizeSmall ) ); MediaItem::s_pixOrphaned = new TQPixmap(iconLoader.loadIcon( Amarok::icon( "cancel" ), TDEIcon::Toolbar, TDEIcon::SizeSmall ) ); diff --git a/amarok/src/mediadevice/generic/genericmediadevice.cpp b/amarok/src/mediadevice/generic/genericmediadevice.cpp index 585d534e..e64baceb 100644 --- a/amarok/src/mediadevice/generic/genericmediadevice.cpp +++ b/amarok/src/mediadevice/generic/genericmediadevice.cpp @@ -944,9 +944,9 @@ GenericMediaDevice::rmbPressed( TQListViewItem* qitem, const TQPoint& point, int menu.insertItem( SmallIconSet( Amarok::icon( "fastforward" ) ), i18n( "&Queue Tracks" ), QUEUE ); menu.insertSeparator(); menu.insertItem( SmallIconSet( Amarok::icon( "collection" ) ), i18n( "&Copy Files to Collection..." ), DOWNLOAD ); - menu.insertItem( SmallIconSet( Amarok::icon( "media-optical-cdrom" ) ), i18n( "Burn to CD as Data" ), BURN_DATACD ); + menu.insertItem( SmallIconSet( Amarok::icon( "media-optical-cdrom-unmounted" ) ), i18n( "Burn to CD as Data" ), BURN_DATACD ); menu.setItemEnabled( BURN_DATACD, K3bExporter::isAvailable() ); - menu.insertItem( SmallIconSet( Amarok::icon( "media-optical-cdaudio" ) ), i18n( "Burn to CD as Audio" ), BURN_AUDIOCD ); + menu.insertItem( SmallIconSet( Amarok::icon( "media-optical-cdaudio-unmounted" ) ), i18n( "Burn to CD as Audio" ), BURN_AUDIOCD ); menu.setItemEnabled( BURN_AUDIOCD, K3bExporter::isAvailable() ); menu.insertSeparator(); menu.insertItem( SmallIconSet( Amarok::icon( "folder" ) ), i18n( "Add Directory" ), DIRECTORY ); diff --git a/amarok/src/mediadevice/ipod/ipodmediadevice.cpp b/amarok/src/mediadevice/ipod/ipodmediadevice.cpp index ed485e72..1e947dc8 100644 --- a/amarok/src/mediadevice/ipod/ipodmediadevice.cpp +++ b/amarok/src/mediadevice/ipod/ipodmediadevice.cpp @@ -2261,19 +2261,19 @@ IpodMediaDevice::rmbPressed( TQListViewItem* qitem, const TQPoint& point, int ) switch( item->type() ) { case MediaItem::ARTIST: - menu.insertItem( SmallIconSet( Amarok::icon( "media-optical-cdrom" ) ), i18n( "Burn All Tracks by This Artist" ), BURN_ARTIST ); + menu.insertItem( SmallIconSet( Amarok::icon( "media-optical-cdrom-unmounted" ) ), i18n( "Burn All Tracks by This Artist" ), BURN_ARTIST ); menu.setItemEnabled( BURN_ARTIST, K3bExporter::isAvailable() ); break; case MediaItem::ALBUM: - menu.insertItem( SmallIconSet( Amarok::icon( "media-optical-cdrom" ) ), i18n( "Burn This Album" ), BURN_ALBUM ); + menu.insertItem( SmallIconSet( Amarok::icon( "media-optical-cdrom-unmounted" ) ), i18n( "Burn This Album" ), BURN_ALBUM ); menu.setItemEnabled( BURN_ALBUM, K3bExporter::isAvailable() ); break; default: - menu.insertItem( SmallIconSet( Amarok::icon( "media-optical-cdrom" ) ), i18n( "Burn to CD as Data" ), BURN_DATACD ); + menu.insertItem( SmallIconSet( Amarok::icon( "media-optical-cdrom-unmounted" ) ), i18n( "Burn to CD as Data" ), BURN_DATACD ); menu.setItemEnabled( BURN_DATACD, K3bExporter::isAvailable() ); - menu.insertItem( SmallIconSet( Amarok::icon( "media-optical-cdaudio" ) ), i18n( "Burn to CD as Audio" ), BURN_AUDIOCD ); + menu.insertItem( SmallIconSet( Amarok::icon( "media-optical-cdaudio-unmounted" ) ), i18n( "Burn to CD as Audio" ), BURN_AUDIOCD ); menu.setItemEnabled( BURN_AUDIOCD, K3bExporter::isAvailable() ); break; } |