Help - Search - Members - Calendar
Full Version: foo_uie_single_column_playlist
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28
mazy
the problem is with the win32 list control, as terrestrial would probably have to do more things like position / scrollbar stuff by himself. if he couldn't implement arbitrary collapse / expand feature, i would like "collapse / expand everything" command at least (for quick overview of the playlist's groups).
alphaex32
Not sure if its possible, but maybe he could base the component around a treeview control instead of a list control. Then collapsing could be implemented easily. This would also allow a lot more customization like multiple levels of groups.
tool++
QUOTE(Nickoladze @ Nov 18 2006, 22:27) *

QUOTE(mazy @ Nov 17 2006, 12:38) *

terrestrial, i would like to request one (or two) features wink.gif

please, add the command (assignable to a keyboard shortcut) to toggle "collapse" of all groups just to group headers. it would auto-expand on doubleclick on any group (and start playback on its first item). you could also add features like auto-exapnd on hover (after given time) etc.

similar feature would be to auto-expand playing group and collapse everything else.

also, it would be nice to have those group-related summary infos and info whether given group has item that is playing or not.

thank you smile.gif


if a group was collapsed would songs inside be played? or would the playlist skip over it?



I think that should be an option. It would actually be pretty cool feature in making playlists if you could selectively expand albums biggrin.gif

I like the idea of the now playing album being expanded too.

I think all of this would have to be optional though.

It would also have to save what is expanded/not on close/open.

It would also be kinda nice if text rendering was crisper and more like cleartype. :]
Spirit_of_the_ocean
Is there a chance to get to know what features tererestrial is programming?
wolfsong
Small annoyance. When I add tracks to the queue, SCP blanks for a moment. I've also noticed that F2K seems to save changes to tracks played minutes prior and also at shudown. Perhaps it's normal behaviour I just hadn't noticed prior to using SCP.
shakey_snake
QUOTE(tool++ @ Nov 20 2006, 11:59) *

I think that should be an option. It would actually be pretty cool feature in making playlists if you could selectively expand albums biggrin.gif

I think It might work best if you could independently set the number of rows for a group.
Imagine:
CODE
$if(%isplaying%,$grouprows(10),$grouprows(5))

or (what Ive been wanting to do):
CODE
$ifgreater(%discnumber%,1,$grouprows(1),)



The current set number of group rows could then become the default.
nbv4
This seems like a very promising plugin. I have a few suggestions, which most likely already been suggested...

1. Increase the size of the boxes the code is in. I hate how I'm trying to make a working config, and all I have is one tiny little 6 line box to edit the code. I'd like that bot to be much bigger, or better yet, re-sizable. Also, the ability to interact with the playlist while that box is up would be nice too.

2. Allow for a way for the user to assign a command for a double click on empty space in the playlist. Columns_UI had an option to do this. I got accustomed to double clicking empty space to clear the playlist. I'd like to still be able to do that.
wolfsong
QUOTE(nbv4 @ Nov 21 2006, 15:25) *

This seems like a very promising plugin. I have a few suggestions, which most likely already been suggested...

1. Increase the size of the boxes the code is in. I hate how I'm trying to make a working config, and all I have is one tiny little 6 line box to edit the code. I'd like that bot to be much bigger, or better yet, re-sizable. Also, the ability to interact with the playlist while that box is up would be nice too.

I second that and would also like to be able to select all and clear all text. Dragging to select is a pain in this tiny window (ditto for TIM).
Silverbolt
Short report. Tab and Space keyboard shortcuts (e.g. Ctrl+Tab to switch playlist tabs or Space to pause/play) don't work when the playlist is in focus.
nbv4
I think I found a bug:

This bit of code:

$imageabs2(104,104,,,,,5,3,'X:\Covers\'%artist%' - '%Album%'.jpg',)

works fine, that is until a file with a special character comes along. For instance the file:

X:\Covers\Godspeed You Black Emperor - F#A# (Infinity).jpg

will not get displayed unless I take out the #'s and rename the ID3 tags. The same goes for any file with a '&' in the title.
CepiPerez
QUOTE(nbv4 @ Nov 22 2006, 17:03) *

I think I found a bug:

This bit of code:

$imageabs2(104,104,,,,,5,3,'X:\Covers\'%artist%' - '%Album%'.jpg',)

works fine, that is until a file with a special character comes along. For instance the file:

X:\Covers\Godspeed You Black Emperor - F#A# (Infinity).jpg

will not get displayed unless I take out the #'s and rename the ID3 tags. The same goes for any file with a '&' in the title.


Try this code:
$imageabs2(104,104,,,,,5,3,$replace('X:\Covers\'%artist%' - '%Album%'.jpg',#),)
nbv4
QUOTE(CepiPerez @ Nov 22 2006, 13:37) *



Try this code:
$imageabs2(104,104,,,,,5,3,$replace('X:\Covers\'%artist%' - '%Album%'.jpg',#),)


doesn't the replace function take three parameters?

Anyways, I'm not wanting to replace the #'s because the #'s are in the filename. #'s are not illegal characters in windows systems.

edit: here is the code I'm using:

$imageabs2(104,104,,,,,5,3,'X:\Covers\'$replace(%album artist%' - '%Album%,'/',,'\',,:,,|,,?,,'"',>,,<,)'.jpg',)
$imageabs2(104,104,,,,,5,3,'X:\Covers\'$replace(%album artist%' - '%Album%,'/',,'\',,:,,|,,?,,'"',>,,<,)'.png',)
$imageabs2(104,104,,,,,5,3,'X:\Covers\'$replace(%album artist%' - '%Album%,'/',,'\',,:,,|,,?,,'"',>,,<,)'.gif',)

which works for every single album in my collection except for the GYBE album. What the heck... The album art plugin displays the gybe cover fine. (which used the exact same code, except it used wildcards instead of the three different lines for each format).
terrestrial
new version. mostly internal changes / some optimizations.
Russell777
QUOTE(terrestrial @ Nov 23 2006, 01:08) *

new version. mostly internal changes / some optimizations.

Mouse wheel scroll doesn't work anymore
eejadx
QUOTE(Russell777 @ Nov 22 2006, 18:28) *
Mouse wheel scroll doesn't work anymore

Same here.
terrestrial
ok, I uploaded a new version with support for the mouse wheel.
Hakubo
It works. smile.gif
Thanks for this and the new version - according to my task manager, the cpu usage has changed a bit for the better overall.

I see the topic of rearranging the tracks in the playlist has already been brought up here, but no resolution was given. Here are a few thoughts and ideas on that subject, hope you find them of any value.
1) Not only there is no dragging, we also can't cut and/or copy the tracks from the playlist. Inserting them from the album list works all right, so I guess the other ones can be implemented too.
2) The drag and drop rearranging doesn't really have to be identical to the one in the columns playlist. With real-time position updating, retaining the distances between selected tracks and whatnot. While it certainly would be nice, I can't envision that in the context of scpl - especially the first one.
Do something simpler, maybe? Like Windows' native drag and drop. We select the tracks, then hold down left muse button again, the cursor changes its shape to the familiar arrow with a dotted frame under it. While dragging, the tracks stay on their positions until we release the mouse button. And then they are automatically cut from their places, sticked together (keeping the order though) and pasted/inserted into the new position, right after the track above which we released the button (if the mouse button is released above the group header, tracks will be pasted before the group). And that's that.

Or you can add some inner indicator of where the dragged tracks will be going, too.
The simpler way is just draw a line of some (hardcoded or customizable) color there where the tracks will be inserted if we release the button right now.
A more advanced one would require introducing an additional variable - %_dragmarker% or something, which we will use to detect if the currently rendered track is the one after which the tracks will be pasted, to change its view accordingly.

What do you think?
CepiPerez
Changing playlist from the context menu doesn't work anymore.
terrestrial
^^ fixed.

to rearrange tracks hold down the alt + mouse or alt + up/down. moving isn't optimized, so the whole playlist has to be reindexed.
callisto
great plugin so far...
but I have one issue/question. I just updated after long time and found something I don't like ^^
Before I had the version from september 24.
after I installed the version from today the font size increased strangly, but just from the first row of the item display!
as you can see here:
IPB Image
so my question, cause I want to have my fontsize from v.9/24/06 back (no chance to do this by decreasing it in the code), how to do that and what did you change?(found nothing in change log)
and if its a bug, please fix it smile.gif
thx

callisto
Hakubo
QUOTE
to rearrange tracks hold down the alt + mouse or alt + up/down. moving isn't optimized, so the whole playlist has to be reindexed.


Yay! Thanks.
Since now it's like this, an option to not break groups while moving would be great too. At least for the case when the tracks have been selected with ctrl-clicking on the groups' headers (only).

Also, two small issues here:
1. When you select multiple tracks and then right-click on the header of a group not holding down ctrl or shift, selection completely switches to this group. Even if this group is completely included in the selection.
2. If I right-click anywhere in the playlist (to call the context menu) and then click on any header (discarding the menu), only the first track in this header's group would be selected.
chaosblade
right clicking while a few tracks are selected loses the selection. Now, The only way to access the context menu for a group of selected tracks is via the keyboard. Is this bug still present, And can it be fixed?

Thanks in advance for all the hard work you've put into your plugins, terrestrial.
tomthomson
QUOTE(ChaosBladE @ Nov 23 2006, 16:57) *

right clicking while a few tracks are selected loses the selection. Now, The only way to access the context menu for a group of selected tracks is via the keyboard. Is this bug still present, And can it be fixed?


Well, with the latest update this bug is gone smile.gif
Hakubo
QUOTE
right clicking while a few tracks are selected loses the selection
Works for me. With the version dated as Nov 22 2006 - 23:21:26.
chaosblade
Yeah, I posted before checking the very latest. Works here aswell. Kudos to terrestrial on his skills.
Hakubo
Found some new bugs.
1) Deleting some files from the playlist and then doing 'undo' (ctrl+z) makes scrollbar disappear. To make it reappear, you have to either resize the window or repeat the "delete-restore" action again.
2) As a continuation, if you do this "delete-restore" routine two or more times, without resizing the window, this will have the following effects: i) bug 1 won't reappear until resizing the window again, ii) the scroll box on that scrollbar won't be able to reach the bottom, even if you drag it with the mouse, iii) the size of the scroll box becomes fixed, and this behavior persists between all the playlists. All of those disappear when you resize the window.
3) Deleting, then doing 'Undo', and 'Redo' after that leads to the bug 2.
4) An empty playlist doesn't have any scrollbar. It also doesn't get any when you add some files to it (while you don't - right - resize the window).
If you then switch between playlists, the scrollbar won't be in any of them, too.
Can be partially healed with switching playlists to the one with lots of tracks and resizing the window in it. Partially means they (all except the one with a few tracks) will become subject to some 'independent' version of bug 2 (with the difference of having scroll boxes of different sizes).
Full healing can be reached with adding enough files to that almost-empty playlist so that they fill up the window in height, and scrollbar appears. Or you can just delete that playlist and resize the window.
5) Deleting enough files in a playlist leads to the bug 4.

Edit: A bit of specifics.
Nickoladze
I'm also getting a lot of scrollbar bugs when it comes to measuring the panel's height and if it's even necessary to be shown.
fabiospark
Is there a way to lock this plugin to show always a chosen playlist?

(Of course every instance should have its target.)

Thanks.
ubi
I too like the idea to be able to collapse groups that fofr and mazy introduced, but since I have experienced the scrollbar bug I have started to think that it would also be nice to be able to completely disable the scrollbar. I personally don't have playlists so large that I would need to use the scrollbar to get to the end of playlist. I really like the way my foobar looks without the scrollbar and this options would be nice, if it is possible to implement.
Great Jay
Hi guys,

I just started installing the newest foobar version and trying to get a nice config with this plugin. but it doesn't work for me.

I have all my covers in the folder of the depending album and they are all named "00. Front.jpg".
So for AlbumArt I use this code:
$replace(%path%,%filename_ext%,)00. Front.jpg
But for the SingleColumnPlaylist this code doesn't work. And I can't find a code that seems to fit my needs.

Hopefully someone can help me.

Thanx

Great Jay
zmur
QUOTE(Great Jay @ Nov 24 2006, 18:05) *

Hi guys,

I just started installing the newest foobar version and trying to get a nice config with this plugin. but it doesn't work for me.

I have all my covers in the folder of the depending album and they are all named "00. Front.jpg".
So for AlbumArt I use this code:
$replace(%path%,%filename_ext%,)00. Front.jpg
But for the SingleColumnPlaylist this code doesn't work. And I can't find a code that seems to fit my needs.

Hopefully someone can help me.

Thanx

Great Jay


if you re - name your cover to folder.jpg it'll show up in your single_column_playlist .
callisto
why that? It could be named as mymommyisthebest.jpg and would show up...

@great jay. did u put u're code in an $imageabs() function?? like $imageabs(10,10,$replace(%path%,%filename_ext%,)00. Front.jpg,)
Great Jay
thanx...it worked out for me now cool.gif

I tried to put the code in the group panel but I had to edit something in the item panel as well..

thx

gReat jay
terrestrial
another quick update to (hopefully) fix the scroll bar issues.
Hakubo
Works all right here. smile.gif
Russell777
A small fix request:when in the "grey" window mode,there's a hole at the bottom of the playlist thet cannot
be fixed by changing window's size.IPB Image
kabuki
QUOTE(Silverbolt @ Nov 21 2006, 23:49) *

Short report. Tab and Space keyboard shortcuts (e.g. Ctrl+Tab to switch playlist tabs or Space to pause/play) don't work when the playlist is in focus.


Same trouble here, even with the last update (2006.11.24).
saberrider
small bug: when starting up foobar there's always a horizontal scrollbar visible even if the playlist isn't long enough. when switching playlists it disappear eventually if not needed.
jonpb
Thanks, so much Terrestrial! This latest version is amazing, the optimizations rock (it no longer refreshes more times then needed) and the drag and drop is exactly what I always wanted. Not to mention you have solved all the active / playing issues I need to have multiple views synchronized and still have a coherent, intuitive player interface.

Thanks! Thanks! Thanks!
lav-chan
I don't mean to just show up in here and start demanding stuff, but i have a request, if somebody else hasn't brought it up already: Is it possible to make the keyboard shortcut for 'select all' (Ctrl+A here, dunno if it's different in other languages) work in the edit boxes? I instinctively hit those keys to copy text from a box like that, and it just keeps beeping at me every time. :/

(edit: I had a question here earlier, but i figured it out on my own, so i removed it. Great plug-in by the way.)
mausemecker
Hi, I really like your plugin. smile.gif

But I have a question: If I have different playlists, is there a possibility to format them differently?

I tried simply making different tabs with that, and i can format that differently. But then i noticed that it showed the same playlist at both tabs - and i want it so that it stays with the selected playlist.

I hope that anyone understands what i mean... smile.gif

Thanks

mausemecker
rouge
Could someone remind me of the function that is similar to $_itemcount(), expect that it returns the item number?
Hakubo
QUOTE(rouge @ Nov 27 2006, 18:58) *

Could someone remind me of the function that is similar to $_itemcount(), expect that it returns the item number?
%list_index%?
rouge
QUOTE(Hakubo @ Nov 27 2006, 11:57) *

QUOTE(rouge @ Nov 27 2006, 18:58) *

Could someone remind me of the function that is similar to $_itemcount(), expect that it returns the item number?
%list_index%?


Er, no. It's %_itemindex(). Thanks anyway.
shakey_snake
QUOTE(terrestrial @ Nov 24 2006, 21:26) *

another quick update to (hopefully) fix the scroll bar issues.

Great update.
Thanks for the hard work.
2Pacalypse
what is the syntax for the fileexists()?
terrestrial
QUOTE(kabuki @ Nov 25 2006, 06:01) *

QUOTE(Silverbolt @ Nov 21 2006, 23:49) *

Short report. Tab and Space keyboard shortcuts (e.g. Ctrl+Tab to switch playlist tabs or Space to pause/play) don't work when the playlist is in focus.


Same trouble here, even with the last update (2006.11.24).


space selects/deselects items in the playlist, so you can't use it in a shortcut.
4nt1
I too would love to know the syntax - I am trying to take advantage of the new features terrestrial has added but not having much luck.

Here is my example

CODE

$if($fileexists(%path%,Folder.*),
$imageabs2(%_height%,%_height%,,,,,0,0,$replace(%path%,%filename_ext%,Folder.*),NOKEEPASPECT),
$imageabs2(%_height%,%_height%,,,,,0,0,C:\Documents and Settings\xxxxx\Application Data\foobar2000\data\misc images\nocover.png,NOKEEPASPECT))


If my code doesnt make sense then my thoughts are that $fileexists is a test for a file existing, in this case if there is a file called Folder.* in the %path% location then this should turn true/1 thus in my if statement the first result should be 1 and the 2nd should be 0


Currently only my nocover image is showing... when I know there is a file.* there.. so what am I doing wrong...
Hakubo
First of all, change
CODE
$fileexists(%path%,Folder.*)

to
CODE
$fileexists($replace(%path%,%filename_ext%,Folder.*))

The %path% contains the filename too, not just the name of the containing folder.
4nt1
fantastic Hakubo thanks heaps!!! working like a charm
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.