gmusicbrowser Forum

Main board => Customization => Topic started by: mgrubert on March 11, 2011, 10:05:20

Title: Layout - Garage
Post by: mgrubert on March 11, 2011, 10:05:20
My first layout (inspiration : aboettger 's Arkanoid layout)

Updated : 3/13/2011
Updated : 3/18/2011 small corrections
Updated : 5/12/2011 unity-compatible (classical menu was deleted in previous version to optimise size, but, with unity, this menu is integrated in the top bar so it comes back in my layout) + fullscreen mode
Updated : 19/06/2011 small corrections


[Garage]
Author= MajorGrubert (with aboettger's help and inspiration)
Type=G+

# Major Grubert was a fictional character being used by Moebius in his comics from the 1970s.
# Major Grubert appeared in "Le Garage Hermétique"

Default = Window(size=90%x80%) HPMainPannel(size=100) HPCentreEtDroite(size=300) HPPanneaux(size=150)

VolumeScroll = VBVolume HPNowplaying


VBMain = HBMenu _VBMainContainer

HBMenu = _MBmenu

MBmenu = MainMenuItem LayoutItem PSortItem PFilterItem QueueItem

VBMainContainer = 3Filler1 _HPMainPannel 3Filler2

HPMainPannel = _VBMainGauche _HPCentreEtDroite

HPCentreEtDroite = _VPMainCentre _VPDroite




############################
# Left
############################

VBMainGauche =  HBSearchBar _FilterPane2(nb=1,hidetabs=0,hidebb=1,tabpos=left90,page=savedtree,pages=savedtree)

HBSearchBar = (minheight=34,maxheight=34)  ResetFilter2 2_SimpleSearch(noselector=1,suggest=0)   
 

############################
# Middle
############################

VPMainCentre = _HPPanneaux _VBSongtree


HPPanneaux = _HPAlbumArtist _HBGenre
HBGenre = _FilterPane5(nb=4,hidebb=1,pages=genre,page=genre,page_genre/mode=cloud,page_genre/cloud_min=8,page_genre/sort=alpha)
HPAlbumArtist = _HBArtist _HBAlbum
HBArtist = _FilterPane0(nb=2,\
                      hidebb= 1,\
      hidetabs= 1,\
      min= 1,\
      page= artist,\
page_artist/depth= 1,\
page_artist/lmarkup= 1,\
page_artist/lpicsize= '-1|16',\
      pages= artist)
HBAlbum = _FilterPane1(nb=3,\
hidebb= 1,\
      hidetabs= 1,\
      min= 1,\
      page= album,\
      page_album/lmarkup= 1,\
page_album/lpicsize= 64,\
page_album/mmarkup= below,\
page_album/mode=mosaic,\
page_album/sort= year,\
      pages=album)   

VBSongtree =  _SongTree HBTotal
   
HBTotal = -Total(size=small)



############################
# Right
############################

VPDroite =  HPNowplaying _VBListsETBoutons

############ Info artist, cover, volume, time bar zone ##########

HPNowplaying = VBCover _HBSongInfoEtControlsEtTimebarEtVolume
               
                VBCover = _Filler6 Cover(default=elementary/no-cover.svg,showcover=0,minsize=200,maxsize=400) Stars _Filler7

HBSongInfoEtControlsEtTimebarEtVolume = _VBSongInfoEtControlsEtTimebar VBVolume

VBVolume = VolumeIcon(button=1) _VolumeSlider(1,0)

VBSongInfoEtControlsEtTimebar = -HBControls _VBSongInfoEtTimebar

VBSongInfoEtTimebar = _Filler8 VBSongInfo _Filler9 -HBTimeBar

VBSongInfo =  \
    _HBInfoTitre \
    _HBInfoArtist \
    _HBInfoalbum \
_HBInfoGenre

HBInfoTitre = 2Filler10 _Title(minsize=0,markup="<big><big><big><b>%t</b></big></big></big>",click1="",yalign=0.5)
HBInfoArtist = 2Filler11 _Artist(yalign=1,minsize=0,markup="<big><big>par %a</big></big>",click1="")
HBInfoalbum = 2Filler12 _Album(minsize=1,expand_max=200,yalign=1,markup="dans %l",click1="") -2Filler13 -Date
HBInfoGenre = -2Filler20 -Title2(yalign=1,minsize=0,markup="<i>%g</i> ",click1="")
group
HBTimeBar = 2Filler14 _TimeBar 2Filler15

HBControls = \
_Filler16 \
Prev(size=large-toolbar,tip=_"Previous Song") \
Play(size=large-toolbar,tip=_"Play/Pause") \
Stop(size=large-toolbar,tip=_"Stop") \
Next(size=large-toolbar,tip=_"Next Song") \
_Filler17

############## Lists and bottom buttons ##################               

VBListsETBoutons = _NBSidebar1 HBBouton

NBSidebar1 = (tabpos=right90,typesubmenu='PC') \
                VBQueueList \
                VBPlayList

VBQueueList = (tabtitle=_"Queue") \
                    EditListButtons(group=2,small=1,relief=none) \
                    _QueueList(cols="queuenumber titleaa",colwidth="queuenumber 20",sort="path album:i disc track file",songtree=0,group=2) \
    HBQueueActions

                                HBQueueActions = Total1(size="small",group=2) -QueueActions

                VBPlayList = (tabtitle=_"Playlist") \
                            _SongList(cols="playandqueue titleaa",colwidth="queuenumber 20",sort="path album:i disc track file",mode=playlist,group=1,follow=1)

##############  Boutons ############################

HBBouton = \
Fullscreen(size=button,minwidth=34,maxwidth=34) \
Playlist(size=button,minwidth=34,maxwidth=34) \
ResetFilter \
HSeparator1 \
Sort(size=button,minwidth=34,maxwidth=34) \
10Filter(size=button,minwidth=34,maxwidth=34)  \
Queue(size=button,minwidth=34,maxwidth=34)  \

-Quit(size=button,minwidth=34,maxwidth=34,tip=_"Quit") \
-Pref(stock=gtk-preferences,size=button,minwidth=34,maxwidth=34) \
        -HSeparator2 \
#-MBLayouts \
-HSeparator3 \
-Button1(click1="RunPerlCode(::ChooseAddPath(0,1))",stock=gtk-add,size=button,minwidth=34,maxwidth=34,tip=_"Add folder ...") \
-Button2(click1="RunPerlCode(::IdleCheck)",stock=gtk-refresh,size=button,minwidth=34,maxwidth=34,tip=_"check now") \
-Button3(click1="RunPerlCode(::IdleScan)",stock=gtk-zoom-in,size=button,minwidth=34,maxwidth=34,tip=_"scan now")

#MBLayouts = (minwidth=34,maxwidth=34) \ LayoutItem


[Garage Fullscreen]

Author= MajorGrubert
Type=F
Window  = fullscreen=1,sticky=0
VBmain  = _HPContentFull -HBReplayButtonsFull
   HBReplayButtonsFull = Prev(size=menu) Play(size=menu) Next(size=menu) 20VSeparator 5_TimeBar(text="%t by %a (%m)",minwidth=240) 10-Stars

HPContentFull = _HBCoverFull _NBSidebarFull
   HBCoverFull = _Cover(click1="",reflection=1,overlay=6x6:778x778:awoken/overlay.png,default=awoken/no-cover.png,showcover=0)

NBSidebarFull = (tabpos=right90,typesubmenu='PC') \
               VBQueueList \
               VBPlayList

VBQueueList = (tabtitle=_"Queue") \
                   EditListButtons(group=2,small=1,relief=none) \
                   _QueueList(cols="queuenumber titleaa",colwidth="queuenumber 20",sort="path album:i disc track file",songtree=0,group=2) \
   HBQueueActions

                                HBQueueActions = Total1(size="small",group=2) -QueueActions

                VBPlayList = (tabtitle=_"Playlist") \
                            _SongList(cols="playandqueue titleaa",colwidth="queuenumber 20",sort="path album:i disc track file",mode=playlist,group=1,follow=1)


KeyBindings = Escape CloseWindow
VolumeScroll = VBmain


With some tabs and pictures personalisation :
(http://perpendiculaires.free.fr/documents/Garage.png)

Fullscreen mode :
(http://perpendiculaires.free.fr/documents/GarageFullscreen.png)
Title: Re: Layout - Truc
Post by: aboettger on March 11, 2011, 11:53:09
Looks very good.
Title: Re: Layout - Truc
Post by: aboettger on March 11, 2011, 12:00:36
Do you want to add the layout?
https://github.com/aboettger/gmusicbrowser-layouts
It is then available via this PPA.
https://launchpad.net/~andreas-boettger/+archive/gmusicbrowser-art
Title: Re : Layout - Truc
Post by: mgrubert on March 11, 2011, 15:27:54
Of course, but I don't know how to do.
AND : I don't know how to put the default layout parameters to make it closed to the screen capture
(default panels options (picture, group, size, etc.) : I try without success).
Could you help me for those two things ?

And thanks for your Arkanoid layout which incitate me to try to make layout
Title: Re: Layout - Truc
Post by: VastOne on March 11, 2011, 21:34:06
Looks good!

What is

par?

dans?

(A bit Rhetorical)

Title: Re : Layout - Truc
Post by: mgrubert on March 11, 2011, 23:12:26
It's french (by = par, in = dans).
I can put it in england :)
Title: Re: Re : Layout - Truc
Post by: VastOne on March 11, 2011, 23:30:52
Quote from: mgrubert on March 11, 2011, 23:12:26
It's french (by = par, in = dans).
I can put it in england :)

I already did in mine

;D
Title: Re : Layout - Truc
Post by: mgrubert on March 12, 2011, 12:02:43
@ aboettger : Each time I run GMB with my layout, HBArtist size is 0 and HBAlbum take all the pannel.
I try to put this line, at the beginning : HSize1 = HBArtist HBAlbum (and this line too : VSize1 = HPPanneaux VBSongtree)
But it has no effect.
Could you help me ?
Title: Re : Layout - Truc
Post by: mgrubert on March 12, 2011, 16:30:17
May be it's better without those tabs, the user can add his personnal tab. I don't know.
Title: Re:Layout - Truc
Post by: aboettger on March 13, 2011, 17:48:39
Hi  :)

Based on your last version:
[Truc]
Author=aboettger & Mgrubert
Type=G+

Default = Window(size=90%x80%) HPMainPannel(size=100) HPCentreEtDroite(size=300) HPPanneaux(size=150)

VolumeScroll = VBVolume

# Filler for horizontal padding
VBMainContainer = 3Filler1 _HBMain 3Filler2

# Filler for vertical padding
HBMain = 3Filler3 _HPMainPannel 3Filler4

HPMainPannel = _VBGauche _HPCentreEtDroite

HPCentreEtDroite = VPMainCentre VPDroite




############################
# Gauche
############################

VBGauche =  HBSearchBar _NBSideBarLeft

HBSearchBar = (minheight=34,maxheight=34)  ResetFilter2 2_SimpleSearch(noselector=1,suggest=0)

NBSideBarLeft = (tabpos=left90,typesubmenu='PC') \
                FilterPane2(tabtitle=_"Playlists",nb=0,hidebb=1,tabpos=left90,page=savedtree,pages=savedtree) \
FilterPane3(tabtitle=_"Artist",\
                        group=99,\
                        nb=0,\
                        hidebb=1,\
tabpos=left90,\
                        pages=artist,\
                        page=artist,\
                        page_artist/depth=1,\
                        page_artist/lmarkup="0|<b>%a</b>%Y <small>%s <small>%l</small></small>",\
                        page_artist/lpicsize='0|32',\
                        page_artist/noall=1,\
                        page_artist/sort=default|default,\
                        page_artist/type=artist|album\
                    ) \
                FilterPane4(tabtitle=_"Files",nb=0,hidebb=1,tabpos=left90,page=folder,pages=folder)\
FilterPane5(tabtitle=_"Year",\
                        group=99,\
                        nb=0,\
                        hidebb=1,\
tabpos=left90,\
                        page=year,\
                        pages=year,\
                        page_year/mode=cloud,\
page_year/cloud_min=10,\
page_year/cloud_max=30\
                    ) \
FilterPane6(tabtitle=_"Genre",\
nb=0,\
hidebb=1,\
tabpos=left90,\
pages=genre,\
page=genre,\
page_genre/mode=cloud,\
page_genre/cloud_min=8,\
page_genre/cloud_max=20,\
page_genre/sort=alpha\
   )







############################
# Milieu
############################

VPMainCentre = HPPanneaux VBSongtree


HPPanneaux = HBArtist HBAlbum


HBArtist = _FilterPane0(nb=3, hidebb=1,pages=artist,page=artist,page_artist/lmarkup=1)
HBAlbum = _FilterPane1(nb=5,hidebb=1,pages=album,page=album,page_album/mode=mosaic,page_album/lpicsize=64,page_album/lmarkup=1,page_album/mmarkup=right)

VBSongtree = _SongTree 3Filler9 HBTotal

HBTotal = -Total(size=small)



############################
# Droite
############################

VPDroite =  HPNowplaying _VBListsETBoutons

HPNowplaying = VBCover _HBSongInfoEtControlsEtTimebarEtVolume

                VBCover = _Filler888 Cover(default=elementary/no-cover.svg,showcover=0,minsize=200,maxsize=400) _Stars _Filler889

HBSongInfoEtControlsEtTimebarEtVolume = _VBSongInfoEtControlsEtTimebar VBVolume

VBVolume = VolumeIcon(button=1) _VolumeSlider(1,0)

VBSongInfoEtControlsEtTimebar = -HBControls _VBSongInfoEtTimebar

VBSongInfoEtTimebar = _Filler22 VBSongInfo _Filler23 -HBTimeBar

VBSongInfo =  \
    _HBInfoTitre \
    _HBInfoArtist \
    _HBInfoalbum

HBInfoTitre = 2Filler38 _Title(minsize=0,markup="<big><big><big><big><b>%t</b></big></big></big></big>",click1="",yalign=0.5)
HBInfoArtist = 2Filler40 _Artist(yalign=1,minsize=0,markup="<big><big>par %a</big></big>",click1="")
HBInfoalbum = 2Filler39 _Album(minsize=1,expand_max=200,yalign=1,markup="dans %l",click1="") -2Filler56 -Date

HBTimeBar = 2Filler37 _TimeBar 2Filler25

HBControls = \
_Filler58 \
Prev(size=large-toolbar,tip=_"Previous Song") \
Play(size=large-toolbar,tip=_"Play/Pause") \
Stop(size=large-toolbar,tip=_"Stop") \
Next(size=large-toolbar,tip=_"Next Song") \
_Filler59





VBListsETBoutons = _NBSidebar1 HBBouton

NBSidebar1 = (tabpos=right90,typesubmenu='PC') \
                        VBQueueList \
                        VBPlayList

VBQueueList = (tabtitle=_"Queue") \
                            EditListButtons(group=2,small=1,relief=none) \
                            _QueueList(cols="queuenumber titleaa",colwidth="queuenumber 20",sort="path album:i disc track file",songtree=0,group=2) \
    HBQueueActions

                                HBQueueActions = -QueueActions #MBQueue

    #MBQueue = QueueItem


                VBPlayList = (tabtitle=_"Playlist") \
                            _SongList(cols="playandqueue titleaa",colwidth="queuenumber 20",sort="path album:i disc track file",mode=playlist,group=1,follow=1)

############################
# Boutons
############################

HBBouton = \
Fullscreen(size=button,minwidth=34,maxwidth=34) \
Playlist(size=button,minwidth=34,maxwidth=34) \
ResetFilter \
HSeparator3 \
Sort(size=button,minwidth=34,maxwidth=34) \
10Filter(size=button,minwidth=34,maxwidth=34)  \
Queue(size=button,minwidth=34,maxwidth=34)  \

                -Quit(size=button,minwidth=34,maxwidth=34,tip=_"Quit") \
-Pref(stock=gtk-preferences,size=button,minwidth=34,maxwidth=34) \
                -HSeparator4 \
-MBLayouts \
-HSeparator5 \
                -Button1(click1="RunPerlCode(::ChooseAddPath(0,1))",stock=gtk-add,size=button,minwidth=34,maxwidth=34,tip=_"Add folder ...") \
-Button2(click1="RunPerlCode(::IdleCheck)",stock=gtk-refresh,size=button,minwidth=34,maxwidth=34,tip=_"check now") \
-Button3(click1="RunPerlCode(::IdleScan)",stock=gtk-zoom-in,size=button,minwidth=34,maxwidth=34,tip=_"scan now")

MBLayouts = (minwidth=34,maxwidth=34) \
     LayoutItem
Title: Re:Re : Layout - Truc
Post by: aboettger on March 13, 2011, 17:55:01
Quote from: mgrubert on March 11, 2011, 15:27:54
Of course, but I don't know how to do.

Quote from: mgrubert on March 11, 2011, 15:27:54
AND : I don't know how to put the default layout parameters to make it closed to the screen capture
(default panels options (picture, group, size, etc.) : I try without success).
Could you help me for those two things ?
Concerns the problem of what I have posted you a change?

Quote from: mgrubert on March 11, 2011, 15:27:54
And thanks for your Arkanoid layout which incitate me to try to make layout
With pleasure.
Title: Re : Layout - Truc
Post by: mgrubert on March 13, 2011, 18:37:26
I don't know how "add your changes"
I have to use git commands in a shell or I can do that in my internet browser ?


Default panel : I find some parameters in your Exaile-like layout. Could I find a notice somewhere on the Net with all existing parameters ?

Edit : I haven't see that :
Quote from: aboettger on March 13, 2011, 17:48:39
Hi  :)

Based on your last version:

I'm going to study that
Title: Re:Re : Layout - Truc
Post by: aboettger on March 13, 2011, 20:07:25
Quote from: mgrubert on March 13, 2011, 18:37:26
I don't know how "add your changes"
I have to use git commands in a shell or I can do that in my internet browser ?
You need a shell:
$ git commit -a
$ git push origin master
Title: Re:Re : Layout - Truc
Post by: aboettger on March 13, 2011, 20:08:36
Quote from: mgrubert on March 13, 2011, 18:37:26
Default panel : I find some parameters in your Exaile-like layout. Could I find a notice somewhere on the Net with all existing parameters ?
No, there is no list.
But you can look into your .gmbrc
Title: Re : Re:Re : Layout - Truc
Post by: mgrubert on March 13, 2011, 22:21:13
Quote from: aboettger on March 13, 2011, 20:08:36
No, there is no list.
But you can look into your .gmbrc
OK thx
Title: Re : Layout - Garage
Post by: mgrubert on March 14, 2011, 13:08:09
OK.
I understand that : it's possible to make a tab-panel to be closed to a classical panel with tab (NBSidebar =  FilterPane1  FilterPane2) but when you do that the GMB user won't be able to add or discard classical tab (Artist, Year, etc.) because those tabs aren't classical panel tab (chose "show tab" will add a new level tab, not great).
I find the parameter to show a classical tab (hidetabs= 0) but I don't know how to show multiples _classical_ tabs.
And I want to let the GMB user the possibility of adding (or discarding) his favorites tabs.
Do you know how to show multiples classical tabs without use NB ?

Equivalent in gmbrc :
FilterPane2:
     hidebb: 1
     hidetabs: 0
     min: 1
     page: filter
     page_artist:
       depth: 1
       lmarkup: 0|0
       lpicsize: 0|16
       sort: default|default
       type: artist|album
     page_genre:
       depth: 1
       lmarkup: 0|0
       lpicsize: 0|16
       sort: default|default
       type: genre|artist
     page_year:
       cloud_max: 30
       cloud_min: 10
       mode: cloud
     pages: filter|list|artist|year|folder|genre
Title: Re: Layout - Garage
Post by: aboettger on March 16, 2011, 15:49:21
I do unfortunately not know what you mean.
Title: Re : Layout - Garage
Post by: mgrubert on March 18, 2011, 17:48:59
Layout updated with Genre pannel in the middle (hide-able) and Info about genre in the "Now playing zone"
Title: Re : Re: Layout - Garage
Post by: mgrubert on March 18, 2011, 18:05:07
Quote from: aboettger on March 16, 2011, 15:49:21
I do unfortunately not know what you mean.

OK, I will try to explain better.
Load Exaile-layout.
You see on the left some tabs : Collection, Playlist, File.
Those tabs are created by the layout, and the user can only add some kind of new tabs (disposition, context, but not artist-tab, year-tab, genre-tab, etc.). I name them "layout-tabs"

But now, right clic where you want in this panel and choose "Show tabs".
Now you can see a second level tab created by the default options of GMB (artist-tab, year-tab, etc.). I name them "default-tabs"

In my garage-layout, I want on the left panel the default-tabs, because it is the browser panel and the user can add the tab he wants and those tabs are more usefull for browsing than layout-tab he could add.

My problem : I know how to show one default-tab (in my layout, Playlists-tab), but I don't know how to show more than one default-tab.

The solution : Use layout-tabs (with NBpanel) is not really a solution because the layout-tab addable aren't goob enough for a browser panel.

Do you understand ?
Title: Re : Layout - Garage
Post by: mgrubert on June 19, 2011, 21:40:34
Updated.