; Handheld skin
; Copyright 2003 Andrew Carpenter
; kagato@tpg.com.au

section = movieplayer

 window = main

  ;base=bitmap,x,y
  ; x:            | y:
  ;  -  0: left   |  -  0: top
  ;  - -1: center |  - -1: center
  ;  - -2: right  |  - -2: bottom
  base = main, -2, -2
  ;button=bitmap,x,y,sx,sy,msg
  ; 1. bitmap: pressed  | x,y: position in window
  ; 2. bitmap: released | msg: name of system message
  ; 3. bitmap: disabled | sx,sy: size of button
  button = quit,    224,103, 33, 24, evExit
  button = minimize, 15,103, 32, 24, evIconify

  button = prev,      9,259, 61, 45, evPrev
  button = next,    203,259, 60, 45, evNext

  button = pause,     75,181,122,123, evPlaySwitchToPause
  button = play,    76,181,122,123, evPauseSwitchToPlay
  button = stop,     74,311,123, 59, evStop
  button = file,     26,135, 49, 46, evLoad
  button = sub,      26,304, 49, 49, evLoadSubtitle
  button = list,    197,133, 49, 47, evPlaylist
  button = eq,      197,304, 51, 49, evEqualizer
  button = full,    118, 95, 35, 17, evFullScreen

  button = rewind,    9,181, 61, 78, evBackward10sec
  button = ffwd,    203,181, 60, 78, evForward10sec

  button = about,    87, 64, 98, 15, evAbout

  ; hpotmeter=buttonbitmaps,sx,sy,phasebitmaps,phases,default value,x,y,sx,sy,msg

  ; potmeter=phasebitmaps,phases,default value,x,y,sx,sy,msg
  potmeter=position,100,  0, 23, 82,225,  7, evSetMoviePosition
  potmeter=volume,   50, 100, 84,120,103, 24, evSetVolume
  potmeter=balance,  12, 50, 81,144,110, 24, evSetBalance

  ; font=fontname,fontid
  font = symbols, symbols
  font = font,    font

  ; dynamic label
  ; dlabel=x,y,sx,align,fontid,string ...
  ;  align: 0: right 1: center 2: left
  ;  str: $1  = hh:mm:ss
  ;       $2  = mmmm:ss
  ;       $3  = hh
  ;       $4  = mm
  ;       $5  = ss
  ;       $6  = movie length, hh:mm:ss
  ;       $7  = movie length, mmmm:ss
  ;       $v  = volume, xxx.xx%
  ;       $V  = volume, xxx.x
  ;       $b  = balance, xxx.xx%
  ;       $B  = balance, xxx.x
  ;       $$  = draw $
  ;       $a  = audio type ( nosound: char n, mono: char m, stereo: char t, etc )
  ;       $t  = track number
  ;       $o  = filename
  ;       $f  = filename with lower case
  ;       $F  = filename with upper case
  ;
  ;       $T  = stream type ( file: f, video cd: v, dvd: d, url: u ), if
  ;              font contain needed symbol.
  ;       $l  = draw play symbol, if mplayer is playing movie and font
  ;              contain playing symbol. ( char l )
  ;       $s  = draw stop symbol, if mplayer not playing movie and font
  ;              contain stop symbol. ( char s )
  ;       $e  = draw pause symbol, if playing is paused and font contain
  ;              pause symbol ( char e )

  dlabel =  50, 52,   9, 0, symbols, "$l"
  dlabel =  50, 52,   9, 0, symbols, "$s"
  dlabel =  50, 52,   9, 0, symbols, "$e"
  dlabel =  23, 52,  24, 1, symbols, "$a"
  dlabel = 207, 52,  42, 1, symbols, "$T"
  
  dlabel = 126, 17, 20, 2, font, "$t"
  dlabel =  51, 30,170, 0, font, "$o [$6] "
  dlabel = 105, 45, 65, 1, symbols, "$1"

  ; static label
  ; slabel=x,y,fontid,string ...

 end

 window = sub

  ;base=bitmap,x,y,sx,sy
  ; x:            | y:
  ;  -  0: left   |  -  0: top
  ;  - -1: center |  - -1: center
  ;  - -2: right  |  - -2: bottom
  base = screen,-1,-1
  ; background=r,g,b
  ; window background color, default is black
  ; only subwindow, and decimal numbers
  background = 0,9,109

 end

 window = menu

  ; base=bitmap
  base = menu

  ; selected=bitmap
  selected = menus

  ; menu = x,y,width,height,msg
  menu = 3,   6, 122, 14, evAbout
  menu = 3,  28, 122, 14, evLoad
  menu = 3,  43, 122, 14, evNone         ; Add playlist
  menu = 3,  60, 122, 14, evPlay
  menu = 3,  84, 122, 14, evPlaylist
  menu = 3, 100, 122, 14, evEqualizer

  menu = 3, 116, 122, 14, evSkinBrowser
  menu = 3, 140, 122, 14, evPreferences
  menu = 3, 180, 122, 14, evNormalSize
  menu = 3, 196, 122, 14, evDoubleSize
  menu = 3, 212, 122, 14, evFullScreen
  menu = 3, 228, 122, 14, evIconify
  menu = 3, 244, 122, 14, evExit
 end

end


