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 1317502 times) previous topic - next topic
0 Members and 8 Guests are viewing this topic.

foo_ui_panels

Reply #1175
I was hoping someone might help me.  I'm trying to figure out how to use the sorting feature effectively.  Basically what I want to do is this:

I use Album List Panel to display %album artist% - (%date%) - %album%.  I have it trimming off any "The" at the front of the artist's name and placing it at the end.  Here's my code to do that:
Code: [Select]
$if($strcmp($left(%album artist%,4),'The '),[$trim($cwb_removethe(%album artist%))]', The - ',[%album artist% - ])'('%date%')' - %album%


Pretty simple stuff.  What I'd like to do is find a way to apply that sort of formatting to the sorting output of PanelsUI.  Right now the Album List reads:

Badly Drawn Boy
Beastie Boys
Beatles, The

Except SCPL displays:

Badly Drawn Boy
Beastie Boys
Beck

with The Beatles sorted in down with other artists whose name starts with a "T".  Right now I'm using the Artist/Date/Album sorting.  Can anyone help me fix this?

foo_ui_panels

Reply #1176
I just had this exact same issue last night . Go to Preferences - Panels UI - Sort/Group By. In the upper window you'll see the various sorting groups - Album, Artist etc etc. If you click 'modify' you can see how they are sorted/grouped. Inserting your code in those fields (make sure that you check the primary and secondary sorting codes for Artist/Date/Album as they appear to overlap) will ensure that it is sorted in the manner you want. It will still display it as 'The Beatles' though. You'd have to edit your SCPL code to have it how you want it in your Album List.

I don't have Foobar on this computer (blasphemy I know ) so I can't walk you through it entirely but that is exactly the way I did it. Hope that helps.

foo_ui_panels

Reply #1177
I just had this exact same issue last night . Go to Preferences - Panels UI - Sort/Group By. In the upper window you'll see the various sorting groups - Album, Artist etc etc. If you click 'modify' you can see how they are sorted/grouped. Inserting your code in those fields (make sure that you check the primary and secondary sorting codes for Artist/Date/Album as they appear to overlap) will ensure that it is sorted in the manner you want. It will still display it as 'The Beatles' though. You'd have to edit your SCPL code to have it how you want it in your Album List.

I don't have Foobar on this computer (blasphemy I know ) so I can't walk you through it entirely but that is exactly the way I did it. Hope that helps.


yep, i did it too, works fine

foo_ui_panels

Reply #1178
Feature Request
So, right now, if we want our layouts to interact with the internet, we have to have foo_run installed. So that we can send a URL to the command line and it opens in our default browser.

The problem with this, is that every "type" of link we create requires a new button command be entered into to foo_run's preferences by the user, with the correct name as well. This makes sharing this fairly complicated.

now, foo_run can do a lot of command line things that probably aren't needed,
but a button command that would simply go to url's would be very useful

example:
Code: [Select]
$button(,,,,,,,,GOTOURL:'http://www.discogs.com/release/'%discogs_release_id%,tooltip:"Go To Discogs")
elevatorladylevitateme

foo_ui_panels

Reply #1179
I've uploaded 0.12.0. There is a new "Library Filter" panel and I've attached a config file (library.pp) that you can call using a POPUP: button to see how to configure it.

foo_ui_panels

Reply #1180
I've uploaded 0.12.0. There is a new "Library Filter" panel and I've attached a config file (library.pp) that you can call using a POPUP: button to see how to configure it.

Cool , except there is no border setting.

foo_ui_panels

Reply #1181
When I set the background colour in the colour picker - it does not reflect in the bg... the colour stays as the default... any idea?

I am using your default library - just  trying to change bg colour

Also just tried to add my own library sort and it crashed foobar

Code: [Select]
---------------------------
Visual Studio Just-In-Time Debugger
---------------------------
An unhandled win32 exception occurred in foobar2000.exe [3732]. Just-In-Time debugging this exception failed with the following error: No installed debugger has Just-In-Time debugging enabled. In Visual Studio, Just-In-Time debugging can be enabled from Tools/Options/Debugging/Just-In-Time.

Check the documentation index for 'Just-in-time debugging, errors' for more information.
---------------------------
OK 
---------------------------

Using the following components...

Core (2007-04-21 05:36:34)
    foobar2000 core 0.9.4.3
foo_abx.dll (2007-04-21 05:35:00)
    ABX Comparator 1.3.1
foo_albumlist.dll (2007-04-21 05:34:58)
    Album List 3.2.0
foo_audioscrobbler.dll (2006-12-20 19:53:36)
    Audioscrobbler 1.3.5
foo_autoplaylist.dll (2006-06-26 23:59:04)
    Autoplaylist Manager 1.0
foo_burninate.dll (2006-06-26 23:51:40)
    Audio CD Writer 2.0.1
foo_cdda.dll (2007-04-21 05:34:44)
    CD Audio Decoder 2.1.1
foo_common.dll (2006-03-11 18:23:55)
    Common services 0.1
foo_converter.dll (2007-04-21 05:34:28)
    Converter 1.0.1
foo_cwb_hooks.dll (2006-12-01 12:47:46)
    cwbowron's title format hooks 1.1.0beta [Dec  1 2006 - 13:47:34]
foo_dbsearch.dll (2006-06-12 02:47:28)
    Database Search 1.4 beta 4
foo_discogs.dll (2007-04-02 23:01:46)
    Discogs Tagger 0.99
foo_dockable_panels.dll (2006-12-04 08:04:14)
    Dockable Panels 1.0.5 [Dec  4 2006 - 09:04:00]
foo_dsp_continuator.dll (2006-04-29 04:17:11)
    Continuator 0.4.0
foo_dsp_std.dll (2007-01-20 09:36:56)
    Standard DSP array 1.0
foo_dsp_vlevel.dll (2006-04-29 04:16:43)
    VLevel 20060324.0
foo_freedb2.dll (2006-08-30 04:43:04)
    freedb Tagger 0.5.2a
foo_g15lcd.dll (2006-07-31 17:21:40)
    Logitech G15 LCD Display 0.3a
foo_input_shorten.dll (2006-03-11 18:25:13)
    Shorten decoder 0.4.2a
foo_input_std.dll (2007-04-21 05:34:22)
    FLAC Decoder 1.1.0
    Standard Input Array 1.0
    WMA Decoder 1.1
foo_lnk.dll (2006-03-11 18:24:54)
    Shell link resolver 1.1
foo_masstag.dll (2007-04-21 05:33:44)
    Masstagger 1.6
foo_msnalt.dll (2006-04-29 22:19:30)
    MSN Now Playing (alt) 2.4
foo_navigator.dll (2006-06-13 07:16:02)
    Navigator 0.2
foo_out_asio.dll (2006-08-13 17:07:52)
    ASIO support 1.2.4
foo_out_ks.dll (2006-06-26 23:50:24)
    Kernel Streaming Output 1.2.2
foo_playcount.dll (2006-09-16 17:55:54)
    Playback Statistics 1.3.2
foo_playlist_bind.dll (2006-04-06 23:52:24)
    Playlist Bind 2.2
foo_playlist_manager.dll (2006-03-12 23:25:15)
    Playlist Manager 1.0
foo_playlist_tree.dll (2007-04-03 11:40:00)
    Playlist Tree Panel 3.0.BETA_3 [Apr  3 2007 - 11:39:32]
foo_pqview.dll (2006-03-12 23:23:29)
foo_random.dll (2006-03-13 10:35:03)
    Randomized playlist entry 1.2.3
foo_rgscan.dll (2007-04-21 05:33:22)
    ReplayGain Scanner 2.0.2
foo_run.dll (2006-06-15 22:08:10)
    Run services 0.3.2
foo_scrobblecharts.dll (2007-03-31 16:36:48)
    Last.fm Chart Player 0.2.3
foo_ui_columns.dll (2007-05-03 03:17:08)
    Columns UI 0.2.0 alpha 1
foo_ui_egoh.dll (2007-03-12 22:30:26)
    Egoh User Interface 1.1.2
foo_ui_panels.dll (2007-05-07 10:25:58)
    Panels UI 0.12.0 beta [May  7 2007 - 03:37:48]
foo_ui_std.dll (2007-04-21 05:33:14)
    Default User Interface 0.9acc
foo_uie_albumart.dll (2007-01-15 16:04:44)
    Album Art Panel 0.2.6
foo_uie_albumlist.dll (2006-11-22 22:57:39)
    Album list panel 0.2.1
foo_uie_console.dll (2006-11-22 22:59:04)
    Console panel 0.2.1
foo_uie_explorer.dll (2006-05-01 19:38:42)
    Explorer Tree 1.04.6a
foo_uie_queuemanager.dll (2006-12-17 02:21:36)
    Queue manager panel 0.2.3
foo_uie_quicksearch.dll (2006-10-15 18:56:24)
    Quick Search Toolbar 2.8j
foo_uie_tabs.dll (2006-07-08 04:18:32)
    Tabbed panel modifyed 0.2.1
foo_uie_vis_egoh.dll (2007-03-12 22:30:28)
    Egoh Spectrum analyser (uie) 1.1.2
foo_uie_wsh_panel.dll (2007-03-18 03:24:24)
    WSH Panel (uie) 0.7.1
foo_unpack.dll (2007-04-21 05:35:14)
    RAR reader 1.1
    ZIP/GZIP reader 1.0
foo_utils.dll (2006-03-12 23:24:57)
    Playlist tools 0.5.6


foo_ui_panels

Reply #1182
I've uploaded 0.12.0. There is a new "Library Filter" panel and I've attached a config file (library.pp) that you can call using a POPUP: button to see how to configure it.

In preference, Library Filter, I click on "new" button to create a new criteria. A little window popups asking me to enter the name of it. When I click on OK, it freezes for less 8 seconds then foobar crashes, without crashlog.
(I'm using Windows XP SP2).
As 4nt1: does the background selection color, in the panel settings do something ? When I select another color, background stick to white. But I can change the color where criterias are displayed changing code.

foo_ui_panels

Reply #1183
Wow great idea terrestrial....
Just some ui things:
In the Library filter, could we have an apply button. As it has syntax, it would be cool not to have push ok and redo settings to test things.
I like the fact that layout globals do not appear anymore in the settings page, but could we have a direct access from contextual menu for quick access, and maybe an possible access with a button in the layout, as it is really the center of the customization in my opinion.
The last thing is more like a dream  seeing you plugin being more and more complex, i also see that "theming " with it starts to require a lot of work(and i do love that!), and so become more and more important. So as an "idea" not a wish i think it would be great instead of having more and more windows for each panel, popups... to have a tabbed view of the thing. Just like in a browser or an im client. When your first open a config it opens the window, then the others just create a tab inside this window and so on and so on. Just an idea not a wish, i know the implementation is really tricky !

One other thing. As a developer i cannot but admire the way you deal with this plugin, your ideas are really awesome and i think you implement it just right, you listen carefully to our demands while keeping in sight what can be done and what could be the consequences. I cannot but think that you are a developer
Thanks for your work

foo_ui_panels

Reply #1184
Mine crashes too.
(Columns UI 0.2.0 alpha 1 & Panels UI 0.12.0, running on Columns UI as selected UI)
Windows 10 Pro x64 // foobar2000 1.3.10

foo_ui_panels

Reply #1185
ooops. I think I might have zipped up the wrong set of files. I've uploaded the correct set now. Also fixed the bug on adding new items.

foo_ui_panels

Reply #1186
hmm its still crashing when I try to add a new item...

is it me? because the file seemed to be a different time stamp...

also the background colour is still not working

foo_ui_panels

Reply #1187
Same here, looks the same.
Only I get in the window is !FROMLAYOUT!:Header
Windows 10 Pro x64 // foobar2000 1.3.10

foo_ui_panels

Reply #1188
crashing here too

foo_ui_panels

Reply #1189
nvm

foo_ui_panels

Reply #1190
ok, let's try that again... version should be 0.12.2... it might crash if you delete something from the library filter, but have a panel open with that node displayed and you try to do anything with that node (so click somewhere else and select "Reset").

The background color will be updated after a restart.

foo_ui_panels

Reply #1191
Thank you, works good now.
This looks very cool! =)

Would it be possible to send it to the playlist when you click on it? Like you can with Playlist Tree.

Oh, and to scroll down, I can only scroll up
Windows 10 Pro x64 // foobar2000 1.3.10

foo_ui_panels

Reply #1192
I have a problem with subidx 2. it doesn't move to the right like subidx 1 does. Here is my code:

Code: [Select]
$ifequal($mod(%_itemindex%,2),0,,$drawrect(0,0,0,0,pencolor-0-0-0 alpha-6))

$if(%_selected%,
$imageabs2(0,0,0,0,0,0,1,0,$getpvar(Image.Path)sel1_2.png,)
$imageabs2($sub(%_width%,5),%_height%,0,0,0,0,3,0,$getpvar(Image.Path)sel4.png,nokeepaspect)
$imageabs2(0,0,0,0,0,0,$sub(%_width%,3),0,$getpvar(Image.Path)sel5.png,)
)
$if(%_selected%,$font($getpvar(userFont),$getpvar(userFontSize),,0-77-153),$font($getpvar(userFont),$getpvar(userFontSize),,0-0-0))

$puts(x.Offset,$eval(%_subidx%*20))

$ifequal(%_maxidx%,%_subidx%,
$alignabs($get(x.Offset),3,$eval(%_width%-$get(x.Offset)),%_height%,left,top)
$if(%_expanded%,
$imageabs2(0,0,0,9,0,0,$eval(4+$get(x.Offset)),6,$getpvar(Image.Path)tree.bmp,)$font(,,bold,)
,
$imageabs2(0,0,0,0,0,9,$eval(4+$get(x.Offset)),6,$getpvar(Image.Path)tree.bmp,)
)
$puts(x.Offset,$eval($get(x.Offset)+10))
$alignabs($add($get(x.Offset),10),3,$eval(%_width%-$get(x.Offset)),%_height%,left,top)
)

%criteria%

foo_ui_panels

Reply #1193
scroll up and down works fine for me - I am using from a dockable panel - not sure what difference that makes...

still wondering why foobar needs to restart for the new background colour to change - no other component is like this... some cool possibilities though... playlist tree doesnt work for me very well as I have 500gb of music and it simply cannot cope with that big of a db

can we also have the option for selecting window frame?

 

foo_ui_panels

Reply #1194
What is Item Rows in the Library Filter preferences?

Also. It would be cool so have directory structure layout in the library.

foo_ui_panels

Reply #1195
"...   
+ button in settings dialog to clear PVARs"

thanx a lot Terrestrial  very useful for me (and my tests, lol)

foo_ui_panels

Reply #1196
what the hell happend to the cover art stuff. Previously I just coded it in the user globals.

1. Can I keep it this way or? and what's the difference in coding the path with $puts(cover,C:\Progrblablabla) and doing this with $setpvar???
This because I thought $puts() also permanentely keeps it's value?

2. And what does the library thing do I can't figure it out...

Can somebody please explain? thanks in advance and sorry for bad English... I'm Dutch

???????

foo_ui_panels

Reply #1197
PanelsUI crash on closing after using the FILTER command on a button ...

what did you put in the button?

i've done what you advised. removed trackinfo_mod and choose to not keep settings at foobar start.
also commented all code in ui_panels. no other panels are using code besides trackinfo_mod (wich i removed)
once again, foobar is empty (all black) and now using about 90% CPU. i even tought it was azrael's playlist config, but since i removed all panels i guess it's not.

the only other thing to try would be to remove other components and see if that helps (or maybe a new install in a new directory).

I have a problem with subidx 2. it doesn't move to the right like subidx 1 does. Here is my code:

you probably meant to do something like:

Code: [Select]
$ifequal($mod(%_itemindex%,2),0,,$drawrect(0,0,0,0,pencolor-0-0-0 alpha-6))

$if(%_selected%,
$imageabs2(0,0,0,0,0,0,1,0,$getpvar(Image.Path)sel1_2.png,)
$imageabs2($sub(%_width%,5),%_height%,0,0,0,0,3,0,$getpvar(Image.Path)sel4.png,nokeepaspect)
$imageabs2(0,0,0,0,0,0,$sub(%_width%,3),0,$getpvar(Image.Path)sel5.png,)
)
$if(%_selected%,$font($getpvar(userFont),$getpvar(userFontSize),,0-77-153),$font($getpvar(userFont),$getpvar(userFontSize),,0-0-0))

$puts(x.Offset,$eval(%_subidx%*20))

$ifequal(%_maxidx%,%_subidx%,
$alignabs($get(x.Offset),3,$eval(%_width%-$get(x.Offset)),%_height%,left,top)
,
$if(%_expanded%,
$imageabs2(0,0,0,9,0,0,$eval(4+$get(x.Offset)),6,$getpvar(Image.Path)tree.bmp,)$font(,,bold,)
,
$imageabs2(0,0,0,0,0,9,$eval(4+$get(x.Offset)),6,$getpvar(Image.Path)tree.bmp,)
)
$puts(x.Offset,$eval($get(x.Offset)+10))
$alignabs($get(x.Offset),3,$eval(%_width%-$get(x.Offset)),%_height%,left,top)
)

%criteria%

previously the $alignabls offsets were 20, 40, 40 for subindexes 0,1,2. now they will be 10, 30, and 40

What is Item Rows in the Library Filter preferences?

same as the item height in the settings dialog (it only applies if you're not using one of the display formats defined in the layout

foo_ui_panels

Reply #1198
"...   
+ button in settings dialog to clear PVARs"

thanx a lot Terrestrial  very useful for me (and my tests, lol)


using POPUP for specific uses (e.g. to display a popu for lyrics when i am in mini-player mode of my config ...) is always buggued ... it's modify randomly some PVAR when changing a PVAR value by buttons in the main window 

is there a pb og pointing on the good PVAR variable when a popup is open ?

foo_ui_panels

Reply #1199
Thanks for the help terrestrial. Works perfect now.