Author Topic: [Layout] Garage2  (Read 2220 times)

mgrubert

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
[Layout] Garage2
« on: July 05, 2011, 02:34:07 »
Last Edit (7/7/11) : personnalisation menu

Garage2
Right : Search and two filters panels (right click to show/hide/add/remove tabs, for instance : first panel : PC, saved, etc. ; second panel : artist, year, genre, etc) to search.
Left : Top = nowplaying, Bottom left = Songtree, Bottom right = Queue and context

Some personnalisations avaliable from the menu "Personnalisation" (show/hide Filter1, Filter2, Album panel, Songtree or Queue)



Code: [Select]
[Garage2]
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=600) VBMainleft(size=300) VPMainright(size=300)

VolumeScroll = VBVolume HPNowplaying


VBMain = HBMenu _VBMainContainer

HBMenu = _MBmenu

MBmenu = MainMenuItem LayoutItem PSortItem PFilterItem QueueItem SMViews


                        SMViews = (label=_"Personnalisation") \
                            MenuItem01(togglewidget=HBtri1,label=_"Filtre 1") \
                            MenuItem02(togglewidget=VPtri2,label=_"Filtre 2") \
                            SeparatorMenuItem01 \
    MenuItem03(togglewidget=HBAlbums,label=_"Albums") \
                            SeparatorMenuItem02 \
    MenuItem04(togglewidget=VBSongtree,label=_"Songtree") \
    MenuItem05(togglewidget=VBListsETBoutons,label=_"Queue & contexte")

VBMainContainer = 3Filler1 _HPMainPannel 3Filler2

HPMainPannel = _VBMainleft _VPMainright
 

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

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

HPTri = _HBtri1 _VPtri2

HBtri1 = _FilterPane1(nb=1,hidetabs=0,hidebb=1,page=savedtree,pages=savedtree)

VPtri2 = _HBArtist _HBAlbums

HBArtist = _FilterPane2(nb=2,\
              hidebb= 1,\
      hidetabs= 1,\
      min= 1,\
      page= artists,\
page_artists/depth= 1,\
page_artists/lmarkup= 1,\
page_artists/lpicsize= '-1|16',\
      pages= artists)
HBAlbums = _FilterPane3(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)
 

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

VPMainright = _HPNowplaying _HPLists

########Top

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

########Bottom

HPLists = _VBSongtree _VBListsETBoutons

##############Bottom left

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

##############Bottom right       

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")

« Last Edit: July 07, 2011, 03:29:31 by mgrubert »

mgrubert

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
Re : [Layout] Garage2
« Reply #1 on: July 07, 2011, 03:34:30 »
Garage3 erased : Garage 2 has now option to show/hide album