Author Topic: Layout - Garage  (Read 11010 times)

mgrubert

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
Layout - Garage
« on: March 11, 2011, 15: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

Code: [Select]
[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 :


Fullscreen mode :

« Last Edit: June 20, 2011, 02:39:17 by mgrubert »

aboettger

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Re: Layout - Truc
« Reply #1 on: March 11, 2011, 16:53:09 »
Looks very good.

aboettger

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Re: Layout - Truc
« Reply #2 on: March 11, 2011, 17:00:36 »

mgrubert

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
Re : Layout - Truc
« Reply #3 on: March 11, 2011, 20: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

VastOne

  • Full Member
  • ***
  • Posts: 200
    • View Profile
Re: Layout - Truc
« Reply #4 on: March 12, 2011, 02:34:06 »
Looks good!

What is

par?

dans?

(A bit Rhetorical)


mgrubert

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
Re : Layout - Truc
« Reply #5 on: March 12, 2011, 04:12:26 »
It's french (by = par, in = dans).
I can put it in england :)

VastOne

  • Full Member
  • ***
  • Posts: 200
    • View Profile
Re: Re : Layout - Truc
« Reply #6 on: March 12, 2011, 04:30:52 »
It's french (by = par, in = dans).
I can put it in england :)

I already did in mine

 ;D

mgrubert

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
Re : Layout - Truc
« Reply #7 on: March 12, 2011, 17: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 ?

mgrubert

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
Re : Layout - Truc
« Reply #8 on: March 12, 2011, 21:30:17 »
May be it's better without those tabs, the user can add his personnal tab. I don't know.

aboettger

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Re:Layout - Truc
« Reply #9 on: March 13, 2011, 22:48:39 »
Hi  :)

Based on your last version:
Code: [Select]
[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

aboettger

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Re:Re : Layout - Truc
« Reply #10 on: March 13, 2011, 22:55:01 »
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 ?
Concerns the problem of what I have posted you a change?

And thanks for your Arkanoid layout which incitate me to try to make layout
With pleasure.

mgrubert

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
Re : Layout - Truc
« Reply #11 on: March 13, 2011, 23: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 :
Hi  :)

Based on your last version:

I'm going to study that
« Last Edit: March 13, 2011, 23:49:40 by mgrubert »

aboettger

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Re:Re : Layout - Truc
« Reply #12 on: March 14, 2011, 01:07:25 »
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

aboettger

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Re:Re : Layout - Truc
« Reply #13 on: March 14, 2011, 01:08:36 »
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

mgrubert

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
Re : Re:Re : Layout - Truc
« Reply #14 on: March 14, 2011, 03:21:13 »
No, there is no list.
But you can look into your .gmbrc
OK thx