Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: foo_ui_panels (Read 1318097 times) previous topic - next topic
0 Members and 21 Guests are viewing this topic.

foo_ui_panels

Reply #1575
Hi,
I have a question and haven't been able to find an answer searching the Wiki and the forums...

When I browse my music collection (librabry) with PanelsUi installed (basic.pui and dark.pui tried) I can select items and all, but the playlist doesn't get updated. I have to right-click on an item and send it to the playlist manually...

am I missing some settings or is this just not possible with PanelsUI???
Thanks!



here are my installed components:
Code: [Select]
foobar2000 core 0.9.4.3
Album List 3.2.0
CD Audio Decoder 2.1.1
Converter 1.0.1
cwbowron's title format hooks 1.1.1
Standard DSP array 1.0
freedb Tagger 0.5.2a
Monkey's Audio decoder 2.1.2
FLAC Decoder 1.1.0
Standard Input Array 1.0
WMA Decoder 1.1
foo_lyricsdb 0.0.7 beta 5
Masstagger 1.6
Playback Statistics 1.3.2
ReplayGain Scanner 2.0.2
Run services 0.3.2
Columns UI 0.1.3 beta 1v7
Panels UI 0.13.6 beta
Default User Interface 0.9
Album Art Panel 0.2.6
Album list panel 0.2.1 beta 4
Lyric Show Panels 0.3.1.1
Playlists Dropdown 0.6 alpha 3
Quick Search Toolbar 2.8l

foo_ui_panels

Reply #1576
The library filter doesn't have the same functionality as album list right now, hopefully terrestrial will add customizable clicking functions to it in the future.

foo_ui_panels

Reply #1577
Just a quick question is it possible to use toolbars within a window:
Code: [Select]
$panel(Search,Quick Search Toolbar,5,5,200,300,)
but all I get is
"Missing panel: Quick Search Toolbar"
On a side note is there anywhere information available on how to improve efficiency and speed in panels_ui?

Yes, you can use toolbars in PanelsUI but I do not know what you mean by "within a window". I use it myself in my own layout and am surprised your code did not work. Are you sure you have the Quick Search Toolbar loaded?

File> Preferences> Components
Do you see foo_uie_quicksearch listed as a component?

File> Preferences> Display> Columns UI> "Layout" Tab
If you right click a splitter in your ColumnsUI layout and choose to insert a panel, do you see "Quick Search Toolbar" as an available Toolbar?

foo_ui_panels

Reply #1578
Just a quick question is it possible to use toolbars within a window:
Code: [Select]
$panel(Search,Quick Search Toolbar,5,5,200,300,)

but all I get is
"Missing panel: Quick Search Toolbar"
On a side note is there anywhere information available on how to improve efficiency and speed in panels_ui?


I believe you have to use "$panel(Toolbar,..." rather than "$panel(Search,...".

In general, in the layout window, click the "Panels" button towards the upper left corner, and look up the desired panel from the dropdown list.  They will look like "Catagory / Panel Name".  The panel command should then look like "$panel(Catagory,Panel Name,...".

foo_ui_panels

Reply #1579
REQUEST:

I've got a request for multi-dimensional variables. I've tried the following without success:

[blockquote]$puts(abc,'str1,str2,str3,...,strN')
$select(n,$get(abc))
[/blockquote]
The reason is obvious: $select is executed before $get and finds only one item. If there is another solution to this problem, please let me know.

With multi-dimensional variables this would be easy, e.g.:

[blockquote]$setdim(abc,str1|str2|str3|...|strN)
$getdim(abc,n)
[/blockquote]
Maybe others could find this useful, too.


And thank you for your support with all the questions I had last week. Finally I found my mistake (a pvar needed initialization) and now I see all panels.

foo_ui_panels

Reply #1580
Just throwing an idea out here that I had. A new function for popping up context menus. It would be used in a button as such...

$button(DstX,DstY,X,Y,W,H,TEXT,HOVER TEXT,$context(text,command,text,command),OPTIONS)

So let's say you wanted to make a context menu to mimic this one in WMP11.




$button(DstX,DstY,X,Y,W,H,IMAGE,HOVER IMAGE,$context(Format,COMMAND,Bit Rate,COMMAND,Rip CD Automatically When Inserted,COMMAND,Eject CD After Ripping,COMMAND,More Options...,COMMAND,Help With Ripping,COMMAND),OPTIONS)


A $context specific parameter could be $separator for adding horizontal separators. Example... $context(Format,COMMAND,Bit Rate,COMMAND,$separator)

foo_ui_panels

Reply #1581
Hmm, one more thing. Would it be out of the scope of Panels UI titleformatting to make a $forloop (for loop) function?

foo_ui_panels

Reply #1582
Just throwing an idea out here that I had. A new function for popping up context menus. It would be used in a button as such...

$button(DstX,DstY,X,Y,W,H,TEXT,HOVER TEXT,$context(text,command,text,command),OPTIONS)

So let's say you wanted to make a context menu to mimic this one in WMP11.




$button(DstX,DstY,X,Y,W,H,IMAGE,HOVER IMAGE,$context(Format,COMMAND,Bit Rate,COMMAND,Rip CD Automatically When Inserted,COMMAND,Eject CD After Ripping,COMMAND,More Options...,COMMAND,Help With Ripping,COMMAND),OPTIONS)


A $context specific parameter could be $separator for adding horizontal separators. Example... $context(Format,COMMAND,Bit Rate,COMMAND,$separator)


This would be freakin awesome.

foo_ui_panels

Reply #1583
None of the playlist info functions work in a ui panel, with the exception of %isplaying%.

Sorry if that has been brought up before, but a search yielded nothing of the sort.

foo_ui_panels

Reply #1584
oops, wrong thread

but there are a few neat things i've donw with this component in this post.

foo_ui_panels

Reply #1585
When I put this hotness code into panels ui track globals, grouping breaks... any idea why? The code works btw...

the code:
Code: [Select]
/////////////////////////////////////////
// HOTNESS - an algorithm for meta-rating
// v1.6.c.1 (foo_cwb_hooks version)
// Dec 6, 2006 - by topdownjimmy
/////////////////////////////////////////
//
// configure baselines: define baseline playfrequency and decay period (in days)
//
// decrease if songs stay hot too long
$puts(baselinefrequency,28)
// decrease if too many songs are hot
$puts(baselinedecay,7)
//
// configure default rating for unrated songs
//
$puts(avgrating,3)
//
// DO NOT EDIT BELOW THIS LINE //
$puts(baselinefrequency,$mul($get(baselinefrequency),24))
$puts(baselinedecay,$mul($get(baselinedecay),24))
$puts(lp_age,$add($substr(%last_played%,12,13),
$mul(24,$cwb_datediff(%last_played%,2000-01-01))))
$puts(fp_age,$add($substr(%first_played%,12,13),
$mul(24,$cwb_datediff(%first_played%,2000-01-01))))
$puts(age,$sub($get(lp_age),$get(fp_age)))
$puts(now_age,$add($substr(%cwb_systemdatetime%,12,13),
$mul(24,$cwb_datediff(%cwb_systemdate%,2000-01-01))))
$puts(recentness,$sub($get(now_age),$get(lp_age)))
$puts(decay,$div($div($mul($if2(%play_count%,%play_counter%),
$get(baselinefrequency),$get(baselinedecay),$if2(%rating%,
$get(avgrating)),100),$mul($max($get(age),$get(baselinefrequency)),
$get(avgrating))),100))
$puts(rawhotness,$div($mul($max($sub($get(decay),
$get(recentness)),0),100),$get(decay)))
$puts(forecast,$div($mul($max($sub($get(decay),
$add($div($max(0,$sub($get(baselinedecay),$get(recentness))),2),
$get(recentness))),0),100),$get(decay)))
$puts(hotness,$div($add($get(rawhotness),$get(forecast)),2))
//$set_global(hotness,$get(hotness))
// END HOTNESS //

foo_ui_panels

Reply #1586
I want to use my desktop background picture as a background pic in foobar, so everything is overlayed on top of it.  That part is easy enough, but I use Wallpaper Master to change my picture every so often.

Is it possible to get PanelsUI to recognise when the wallpaper has changed and update the background picture?  I tried moving the $imageabs2 command into '// PerTrack' but that didn't work.

foo_ui_panels

Reply #1587
I want to use my desktop background picture as a background pic in foobar, so everything is overlayed on top of it.  That part is easy enough, but I use Wallpaper Master to change my picture every so often.

Is it possible to get PanelsUI to recognise when the wallpaper has changed and update the background picture?  I tried moving the $imageabs2 command into '// PerTrack' but that didn't work.

No Not possible, images are loaded once on layout load i think and are not reloaded after even if the layour is redrawn. Your only chance is to be under Vista and to use the transparency feature of PanelsUI.

foo_ui_panels

Reply #1588
Just throwing an idea out here that I had. A new function for popping up context menus. It would be used in a button as such...

$button(DstX,DstY,X,Y,W,H,TEXT,HOVER TEXT,$context(text,command,text,command),OPTIONS)

So let's say you wanted to make a context menu to mimic this one in WMP11.


foo_ui_panels

Reply #1589
I found a bug on Vista when using $glass for the entire window:


All black text and $drawrect boxes are completely transparent, the background of the items in the library filter panel are actually 150-150-150, but show up white.

foo_ui_panels

Reply #1590
I've uploaded 0.13.7; a few fixes, a few tweaks... there are some changes to how scpl layouts are selected, so backup before updating.

foo_ui_panels

Reply #1591
By the way i think there should be a place when we could put feature requests and where you could refuse them and let us know you refused them. I think this could be great because i made some feature requests taht in my opinion could be good, yet i don't know if you saw them and i don't want to ask them again and put any kind of pressure on you. I know what a great job you do and i want to respect you for that. And yet i want this project to grow more and i think users feature requests are good for that.


I think a wiki page might be useful. If you (or someone else) want's to start one, I will try to categorize feature requests.


Any chance of being able to trigger a per-track change? I really want to overlay some lyrics on cover art. And my new design (http://host.trivialbeing.org/up/foobar-jun...obalbackgro.gif) has a lot of features that would depend on this feature.



yes, I'll try to add an option for the next version.


$button2 is incredibly frustrating to incorporate into existing text. It'd be great if a button could be created that aligned itself based on the text alignment and the text around it, with width and height defined by the length and height of the text in the button automatically.


the $button code get processed separately from the text code (such as $font) so this isn't really technically possible at the moment. I have been meaning to rewrite the text code to be more flexible, but haven't gotten to it yet.

i found absolutly no way to open tray context menu... any idea what can be wrong?
panels ui version: 0.13.6 beta (from may 31 2007)


right clicking on the tray icon does nothing? what version of windows do you use?

Hi Terrestrial. I trying to make a Last Modified category in the Library Filter so I can see the files that were added/modified last. This is pretty cool, though it would be even better if there was a way to reverse the sorting, and perhaps even limit results to x lines.


the sorting within library filter goes according to what's displayed (so you could do something like 12-month to get reverse sorting). when tracks are sent to the playlist they use the current sort/group criteria.


I believe you have to use "$panel(Toolbar,..." rather than "$panel(Search,...".

In general, in the layout window, click the "Panels" button towards the upper left corner, and look up the desired panel from the dropdown list.  They will look like "Catagory / Panel Name".  The panel command should then look like "$panel(Catagory,Panel Name,...".


the first arguement can be any "id" that you choose... you can use the same id again if you want to move or resize the panel, or a new id to create a new instance of the panel.

REQUEST:

I've got a request for multi-dimensional variables. I've tried the following without success:

[blockquote]$puts(abc,'str1,str2,str3,...,strN')
$select(n,$get(abc))
[/blockquote]
The reason is obvious: $select is executed before $get and finds only one item. If there is another solution to this problem, please let me know.


no, the $get is execute before the $select. the problem is that abc is treated as a single string (not multiple strings separated by a comma).

Hmm, one more thing. Would it be out of the scope of Panels UI titleformatting to make a $forloop (for loop) function?


yes ;)

None of the playlist info functions work in a ui panel, with the exception of %isplaying%.

Sorry if that has been brought up before, but a search yielded nothing of the sort.


for playlist name try %playlistname% (I actually didn't know about the other one, or I would have used the same name....)

%isplaylist% and %ispaused% should work. %list_index% and %list_total% only work in scpl as that's the only one that works with lists of songs.

I found a bug on Vista when using $glass for the entire window:


All black text and $drawrect boxes are completely transparent, the background of the items in the library filter panel are actually 150-150-150, but show up white.


on glass the "whiter" the color the more opaque, and the "darker" the color, the more transparent (for text and $drawrect). you can use images if you want better handling of colors.

foo_ui_panels

Reply #1592
hey terrestrial, is there anyway of scrolling and/or truncating text?

foo_ui_panels

Reply #1593
hey terrestrial, is there anyway of scrolling and/or truncating text?


You can truncate text with this code:

$ifgreater($len(%title%),35,$left(%title%,32)...,$if(%title%,%title%,'['No Title']'))

That truncates the %title% tag to 32 characters long and appends "..." to the end if the tag is LONGER than 35 characters long. Not sure if the entire thing is needed, but it should be a start?
Song List: keikoniumboards.ke.funpic.org/files/songlist.html

foo_ui_panels

Reply #1594

hey terrestrial, is there anyway of scrolling and/or truncating text?


You can truncate text with this code:

$ifgreater($len(%title%),35,$left(%title%,32)...,$if(%title%,%title%,'['No Title']'))

That truncates the %title% tag to 32 characters long and appends "..." to the end if the tag is LONGER than 35 characters long. Not sure if the entire thing is needed, but it should be a start?


sort of trying to do it based on a width in pixels, although this is what i was using before the track info panel had those features...

 

foo_ui_panels

Reply #1595
I think a wiki page might be useful. If you (or someone else) want's to start one, I will try to categorize feature requests.

The Panels UI Feature Requests wiki page was made (thanks  Shakey_snake). I categorized it into three sections; Approved, Rejected, and Requests (Pending Review). I added the one feature request I know of that you approved.

I don't know how this is supposed to work so I formatted the lone requests into three parts as well; Title, Brief description, and link to the forum post for a detailed description if need be.

foo_ui_panels

Reply #1596


hey terrestrial, is there anyway of scrolling and/or truncating text?


You can truncate text with this code:

$ifgreater($len(%title%),35,$left(%title%,32)...,$if(%title%,%title%,'['No Title']'))

That truncates the %title% tag to 32 characters long and appends "..." to the end if the tag is LONGER than 35 characters long. Not sure if the entire thing is needed, but it should be a start?


sort of trying to do it based on a width in pixels, although this is what i was using before the track info panel had those features...


nevermind, i just loaded up the old track info panel and it works fine.

foo_ui_panels

Reply #1597

I think a wiki page might be useful. If you (or someone else) want's to start one, I will try to categorize feature requests.

The Panels UI Feature Requests wiki page was made (thanks  Shakey_snake). I categorized it into three sections; Approved, Rejected, and Requests (Pending Review). I added the one feature request I know of that you approved.

I don't know how this is supposed to work so I formatted the lone requests into three parts as well; Title, Brief description, and link to the forum post for a detailed description if need be.


Can you add my requests? http://www.hydrogenaudio.org/forums/index....st&p=495802

The wiki page is protected from editing.

foo_ui_panels

Reply #1598
In the latest version the View > Panels UI menu is broken. I no longer se my configs there. Not even the provided basic.

Also, this code is also broken in the new version. How do I make it work again?
Code: [Select]
$if($isgrouped(folder),%directoryname%)
$if($isgrouped(date),%date%)
$if($isgrouped(artist),%artist%)
$if($isgrouped(album),$if2($meta(album artist),%album%))
$if($isgrouped(rating),%rating%)
$if($isgrouped(track),%tracknumber%)
$if($isgrouped(title),%title%)

$alignabs(5,20,$sub(%_width%,5),25,left,top)
$font($getpvar(userFont),$add($getpvar(userFontSize),1),bold,0-128-255)

$if($isgrouped(folder),%directoryname%)
$if($isgrouped(date),%date%)
$if($isgrouped(artist),%artist%)
$if($isgrouped(album),%album%)
$if($isgrouped(rating),%rating%)
$if($isgrouped(track),%tracknumber%)
$if($isgrouped(title),%title%)

$if($isgrouped(album),
$alignabs($sub(%_width%,$calcwidth(%date%),40),21,$calcwidth(%date%),25,right,top)
$font($getpvar(userFont),$getpvar(userFontSize),,)[%date%]

$alignabs($sub(%_width%,$calcwidth(%genre%),40),4,$calcwidth(%genre%),25,right,top)
[%genre%]

$if($fileexists($get(coverPath)),
$imageabs2(27,27,0,0,0,0,$sub(%_width%,33),7,$get(coverPath),NOKEEPASPECT)
$imageabs2(31,30,0,0,0,0,$sub(%_width%,35),5,$getpvar(Image.Path)border.png,)
,
$imageabs2(27,27,0,0,0,0,$sub(%_width%,33),7,$getpvar(Image.Path)nocover.png,)
)
)