This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Collection Browser

Tags: None
(comma "," separated)
Andy Ward
Karma
0

Collection Browser

Thu Sep 22, 2005 7:17 pm
Firstly - congratulations on an *amazing* product!

I\'m not sure if this is the place to post or not...

I hacked in a Year / Artist / Album preset for the collection browser on my version because I like to see my albums in chronological order. Patches are:

[code:1]Index: collectionbrowser.cpp
===================================================================
--- collectionbrowser.cpp (revision 462590)
+++ collectionbrowser.cpp (working copy)
@@ -120,6 +120,7 @@
m_categoryMenu->insertItem( i18n( \"Artist / Album\" ), m_view, SLOT( presetMenu( int ) ), 0, IdArtistAlbum );
m_categoryMenu->insertItem( i18n( \"Artist\" )+\" / \"+ i18n( \"Year\" ) + i18n( \" - \" ) + i18n( \"Album\" ), m_view, SLOT( presetMenu( int ) ), 0, IdArtistVisYearAlbum );
m_categoryMenu->insertItem( i18n( \"Album\" ), m_view, SLOT( presetMenu( int ) ), 0, IdAlbum );
+ m_categoryMenu->insertItem( i18n( \"Year / Artist / Album\" ), m_view, SLOT( presetMenu( int ) ), 0, IdYearArtistAlbum );
m_categoryMenu->insertItem( i18n( \"Genre / Artist\" ), m_view, SLOT( presetMenu( int ) ), 0, IdGenreArtist );
m_categoryMenu->insertItem( i18n( \"Genre / Artist / Album\" ), m_view, SLOT( presetMenu( int ) ), 0, IdGenreArtistAlbum );

@@ -984,6 +985,11 @@
cat2Menu( CollectionBrowser::IdVisYearAlbum, false );
cat3Menu( CollectionBrowser::IdNone, false );
break;
+ case CollectionBrowser::IdYearArtistAlbum:
+ cat1Menu( CollectionBrowser::IdYear, false );
+ cat2Menu( CollectionBrowser::IdArtist, false );
+ cat3Menu( CollectionBrowser::IdAlbum, false );
+ break;
case CollectionBrowser::IdGenreArtist:
cat1Menu( CollectionBrowser::IdGenre, false );
cat2Menu( CollectionBrowser::IdArtist, false );[/code:1]
[code:1]Index: collectionbrowser.h
===================================================================
--- collectionbrowser.h (revision 462590)
+++ collectionbrowser.h (working copy)
@@ -53,7 +53,7 @@
private:
//attributes:
enum CatMenuId { IdAlbum = 1, IdArtist = 2, IdGenre = 4, IdYear = 8 , IdScan = 16, IdNone = 32,
- IdArtistAlbum = 64, IdGenreArtist = 128, IdGenreArtistAlbum = 256, IdVisYearAlbum = 512, IdArtistVisYearAlbum = 1024 };
+ IdArtistAlbum = 64, IdGenreArtist = 128, IdGenreArtistAlbum = 256, IdVisYearAlbum = 512, IdArtistVisYearAlbum = 1024, IdYearArtistAlbum = 2048 };

KAction* m_configureAction;
KAction* m_scanAction;[/code:1]

Actually, what I would really like is Year / Artist - Album but looking at the code this would be very difficult without a major rewrite.
User avatar
eean
KDE Developer
Posts
1016
Karma
0
OS

Re:Collection Browser

Thu Sep 22, 2005 8:56 pm
The best place for patches is in the bugzilla.


Amarok Developer


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], daret, Evergrowing, Google [Bot], lockheed, sandyvee, Sogou [Bot]