~ubuntu-branches/ubuntu/karmic/tovid/karmic

« back to all changes in this revision

Viewing changes to libtovid/template/__init__.py

  • Committer: Bazaar Package Importer
  • Author(s): Matvey Kozhev
  • Date: 2008-01-24 22:04:40 UTC
  • Revision ID: james.westby@ubuntu.com-20080124220440-x7cheljduf1rdgnq
Tags: upstream-0.31
ImportĀ upstreamĀ versionĀ 0.31

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /usr/bin/env python
 
2
# __init__.py (template)
 
3
 
 
4
"""This module provides an interface to menu-generation templates.
 
5
 
 
6
libtovid.templates should provide an assortment of "plug-in" style templates
 
7
for menu generation, and perhaps one day also for disc layout or video encoding profiles).
 
8
"""
 
9
 
 
10
__all__ = [\
 
11
    'textmenu',
 
12
    'thumbmenu',
 
13
    'Style']
 
14
 
 
15
class Style:
 
16
    """Contains style attributes, including font, color, and alignment."""
 
17
    def __init__(self, font='helvetica', fontsize=12, textcolor='white',
 
18
                 highlightcolor='green', selectcolor='red', align='center'):
 
19
        self.font = font
 
20
        self.fontsize = fontsize
 
21
        self.textcolor = textcolor
 
22
        self.highlightcolor = highlightcolor
 
23
        self.selectcolor = selectcolor
 
24
        self.align = align
 
25
 
 
26
"""todisc options
 
27
 
 
28
 
 
29
Style control
 
30
 
 
31
-showcase IMAGE|VIDEO
 
32
-textmenu
 
33
-background IMAGE|VIDEO
 
34
-menu-font
 
35
-menu-fontsize
 
36
-menu-fade
 
37
-thumb-shape
 
38
-3dthumbs
 
39
-thumb-font
 
40
-thumb-fontsize
 
41
-submenu-stroke-color
 
42
-submenu-title-color
 
43
-button-style rect|text|text-rect
 
44
-rotate
 
45
-wave
 
46
-showcase-framestyle none|glass
 
47
-title-color
 
48
-stroke-color
 
49
-highlightcolor
 
50
-selectcolor
 
51
-text-mist
 
52
-text-mist-color
 
53
-text-mist-opacity
 
54
-opacity
 
55
-blur
 
56
-thumb-mist-color
 
57
-thumb-text-color
 
58
-showcase-titles-align
 
59
-tile3x1
 
60
 
 
61
Audio:
 
62
 
 
63
-bgaudio
 
64
-menu-audiolength
 
65
-menu-audio-fade
 
66
-submenu-audio
 
67
-submenu-audiolength
 
68
-submenu-audio-fade
 
69
 
 
70
 
 
71
Other
 
72
 
 
73
-files
 
74
-titles
 
75
-submenus
 
76
-ani-submenus
 
77
-static
 
78
-submneu-titles
 
79
-chapters
 
80
-menu-title
 
81
-menu-length
 
82
-intro VIDEO
 
83
-seek
 
84
-showcase-seek
 
85
-loop
 
86
-playall
 
87
-chain-videos
 
88
-subtitles lang1 lang2 ...
 
89
-audio-lang chan1 chan2 ...
 
90
-aspect
 
91
-widescreen
 
92
 
 
93
Execution control
 
94
 
 
95
-debug
 
96
-noask
 
97
-tovidopts
 
98
"""