Work done on GTKMM Browser

David Hough <[email protected]>
Newsgroups gmane.comp.audio.zinf.devel
Message-ID <oprwg9b6gn43mcov@localhost>
Hi,

I've finally managed to make the new browser easily switch between using a 
seperate window for each playlist and using tabs for each playlist. I've 
added the option "Show Tabs" to the View menu that can be turned on and 
off.

I've also moved a number of other options into the preference file. So you 
can now change the layout of the browser. There are 4 options, 
"MusicBrowserTreePos" etc, in the format "[-1-3],[-1-3]" which represent 
where the widgets should be displayed in relation to each other.

The browser is split into a box with 4 compartments, e.g
|0|1|
|2|3|
and each compartment has a second level box split into four.
The first number in the pref indicates where to place the widget in the 
first level, and the second number indicates where to place it in the 
second level. -1 means the widget should not be displayed at that level, so 
"-1,-1" would mean off.

For instance to get the layout that was used in the old musicbrowser you 
would use the prefs
MusicBrowserTreePos = 0,-1
MusicBrowserAlbumsPos = -1,-1
MusicBrowserTracksPos = -1,-1
MusicBrowserPlaylistPos = 1,-1

For more information on how this works look at the source file 
musiclayout.cpp, the function PanedLayout::create() fills in a box.

I've also added initial support for browsing by directory. It currently 
shows an unsorted list of directory contents starting at the dir that is 
set to be watched.

The code is avaliable at http://www-student.cs.york.ac.uk/~djh123/arch/ 
which is a continuation of the currently un-updated archive at
http://www.cs.ucsb.edu/~kris/archive-public

If anyone would prefer a patch against the current CVS just ask.

David
-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.