summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-03-27 19:03:24 +0000
committerjstebbins <[email protected]>2009-03-27 19:03:24 +0000
commit0c55aef231694c7208098514b989f63593fcbb5f (patch)
tree970ecf224e5982452b2022539b47812cb1bfa1d4
parent2987e4805cfc9c0229d20d639eeb45fc75ff3ef0 (diff)
LinGui:
rename a namedtuple to be more consistant with what it really is git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2281 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--gtk/src/makedeps.py116
1 files changed, 58 insertions, 58 deletions
diff --git a/gtk/src/makedeps.py b/gtk/src/makedeps.py
index 8c4b718be..9b5359e16 100644
--- a/gtk/src/makedeps.py
+++ b/gtk/src/makedeps.py
@@ -3,67 +3,67 @@
import collections
import plistlib
-DepMap = collections.namedtuple('DepMap', 'widget dep enable die hide')
+DepEntry = collections.namedtuple('DepEntry', 'widget dep enable die hide')
dep_map = (
- DepMap("title", "queue_add", "none", True, False),
- DepMap("title", "queue_add_menu", "none", True, False),
- DepMap("title", "show_picture", "none", True, False),
- DepMap("title", "show_preview_menu", "none", True, False),
- DepMap("title", "preview_frame", "none", True, False),
- DepMap("title", "picture_label", "none", True, False),
- DepMap("title", "picture_tab", "none", True, False),
- DepMap("title", "chapters_label", "none", True, False),
- DepMap("title", "chapters_tab", "none", True, False),
- DepMap("title", "title", "none", True, False),
- DepMap("title", "start_chapter", "none", True, False),
- DepMap("title", "end_chapter", "none", True, False),
- DepMap("vquality_type_bitrate", "VideoAvgBitrate", "TRUE", False, False),
- DepMap("vquality_type_target", "VideoTargetSize", "TRUE", False, False),
- DepMap("vquality_type_constant", "VideoQualitySlider", "TRUE", False, False),
- DepMap("vquality_type_constant", "constant_rate_factor", "TRUE", False, False),
- DepMap("vquality_type_constant", "VideoTwoPass", "TRUE", True, False),
- DepMap("vquality_type_constant", "VideoTurboTwoPass", "TRUE", True, False),
- DepMap("VideoTwoPass", "VideoTurboTwoPass", "TRUE", False, False),
- DepMap("FileFormat", "Mp4LargeFile", "mp4|m4v", False, True),
- DepMap("FileFormat", "Mp4HttpOptimize", "mp4|m4v", False, True),
- DepMap("FileFormat", "Mp4iPodCompatible", "mp4|m4v", False, True),
- DepMap("PictureDecomb", "PictureDeinterlace", "none", False, False),
- DepMap("PictureDecomb", "PictureDeinterlaceCustom", "none", False, True),
- DepMap("PictureDeinterlace", "PictureDeinterlaceCustom", "custom", False, True),
- DepMap("PictureDenoise", "PictureDenoiseCustom", "custom", False, True),
- DepMap("PictureDecomb", "PictureDecombCustom", "custom", False, True),
- DepMap("PictureDetelecine", "PictureDetelecineCustom", "custom", False, True),
- DepMap("PictureAutoCrop", "PictureTopCrop", "FALSE", False, False),
- DepMap("PictureAutoCrop", "PictureBottomCrop", "FALSE", False, False),
- DepMap("PictureAutoCrop", "PictureLeftCrop", "FALSE", False, False),
- DepMap("PictureAutoCrop", "PictureRightCrop", "FALSE", False, False),
- DepMap("autoscale", "scale_width", "FALSE", False, False),
- DepMap("autoscale", "scale_height", "FALSE", False, False),
- DepMap("anamorphic", "PictureKeepRatio", "FALSE", False, False),
+ DepEntry("title", "queue_add", "none", True, False),
+ DepEntry("title", "queue_add_menu", "none", True, False),
+ DepEntry("title", "show_picture", "none", True, False),
+ DepEntry("title", "show_preview_menu", "none", True, False),
+ DepEntry("title", "preview_frame", "none", True, False),
+ DepEntry("title", "picture_label", "none", True, False),
+ DepEntry("title", "picture_tab", "none", True, False),
+ DepEntry("title", "chapters_label", "none", True, False),
+ DepEntry("title", "chapters_tab", "none", True, False),
+ DepEntry("title", "title", "none", True, False),
+ DepEntry("title", "start_chapter", "none", True, False),
+ DepEntry("title", "end_chapter", "none", True, False),
+ DepEntry("vquality_type_bitrate", "VideoAvgBitrate", "TRUE", False, False),
+ DepEntry("vquality_type_target", "VideoTargetSize", "TRUE", False, False),
+ DepEntry("vquality_type_constant", "VideoQualitySlider", "TRUE", False, False),
+ DepEntry("vquality_type_constant", "constant_rate_factor", "TRUE", False, False),
+ DepEntry("vquality_type_constant", "VideoTwoPass", "TRUE", True, False),
+ DepEntry("vquality_type_constant", "VideoTurboTwoPass", "TRUE", True, False),
+ DepEntry("VideoTwoPass", "VideoTurboTwoPass", "TRUE", False, False),
+ DepEntry("FileFormat", "Mp4LargeFile", "mp4|m4v", False, True),
+ DepEntry("FileFormat", "Mp4HttpOptimize", "mp4|m4v", False, True),
+ DepEntry("FileFormat", "Mp4iPodCompatible", "mp4|m4v", False, True),
+ DepEntry("PictureDecomb", "PictureDeinterlace", "none", False, False),
+ DepEntry("PictureDecomb", "PictureDeinterlaceCustom", "none", False, True),
+ DepEntry("PictureDeinterlace", "PictureDeinterlaceCustom", "custom", False, True),
+ DepEntry("PictureDenoise", "PictureDenoiseCustom", "custom", False, True),
+ DepEntry("PictureDecomb", "PictureDecombCustom", "custom", False, True),
+ DepEntry("PictureDetelecine", "PictureDetelecineCustom", "custom", False, True),
+ DepEntry("PictureAutoCrop", "PictureTopCrop", "FALSE", False, False),
+ DepEntry("PictureAutoCrop", "PictureBottomCrop", "FALSE", False, False),
+ DepEntry("PictureAutoCrop", "PictureLeftCrop", "FALSE", False, False),
+ DepEntry("PictureAutoCrop", "PictureRightCrop", "FALSE", False, False),
+ DepEntry("autoscale", "scale_width", "FALSE", False, False),
+ DepEntry("autoscale", "scale_height", "FALSE", False, False),
+ DepEntry("anamorphic", "PictureKeepRatio", "FALSE", False, False),
## "CHECK" is a dummy value that forces scale_height deps to
## be re-evaluated whenever anamorphic changes
- DepMap("anamorphic", "scale_height", "CHECK", True, False),
- DepMap("PictureKeepRatio", "scale_height", "FALSE", False, False),
- DepMap("VideoEncoder", "x264_tab", "x264", False, False),
- DepMap("VideoEncoder", "x264_tab_label", "x264", False, False),
- DepMap("VideoEncoder", "Mp4iPodCompatible", "x264", False, False),
- DepMap("AudioEncoder", "AudioBitrate", "ac3|dts", True, False),
- DepMap("AudioEncoder", "AudioSamplerate", "ac3|dts", True, False),
- DepMap("AudioEncoder", "AudioMixdown", "ac3|dts", True, False),
- DepMap("AudioEncoder", "AudioTrackDRCSlider", "ac3|dts", True, False),
- DepMap("x264_bframes", "x264_weighted_bframes", "0", True, False),
- DepMap("x264_bframes", "x264_bpyramid", "<2", True, False),
- DepMap("x264_bframes", "x264_direct", "0", True, False),
- DepMap("x264_bframes", "x264_b_adapt", "0", True, False),
- DepMap("x264_refs", "x264_mixed_refs", "<2", True, False),
- DepMap("x264_cabac", "x264_trellis", "TRUE", False, False),
- DepMap("x264_subme", "x264_psy_rd", "<6", True, False),
- DepMap("x264_subme", "x264_psy_trell", "<6", True, False),
- DepMap("x264_cabac", "x264_psy_trell", "TRUE", False, False),
- DepMap("x264_trellis", "x264_psy_trell", "0", True, False),
- DepMap("ChapterMarkers", "chapters_list", "TRUE", False, False),
- DepMap("use_source_name", "chapters_in_destination", "TRUE", False, False),
- DepMap("use_source_name", "title_no_in_destination", "TRUE", False, False),
+ DepEntry("anamorphic", "scale_height", "CHECK", True, False),
+ DepEntry("PictureKeepRatio", "scale_height", "FALSE", False, False),
+ DepEntry("VideoEncoder", "x264_tab", "x264", False, False),
+ DepEntry("VideoEncoder", "x264_tab_label", "x264", False, False),
+ DepEntry("VideoEncoder", "Mp4iPodCompatible", "x264", False, False),
+ DepEntry("AudioEncoder", "AudioBitrate", "ac3|dts", True, False),
+ DepEntry("AudioEncoder", "AudioSamplerate", "ac3|dts", True, False),
+ DepEntry("AudioEncoder", "AudioMixdown", "ac3|dts", True, False),
+ DepEntry("AudioEncoder", "AudioTrackDRCSlider", "ac3|dts", True, False),
+ DepEntry("x264_bframes", "x264_weighted_bframes", "0", True, False),
+ DepEntry("x264_bframes", "x264_bpyramid", "<2", True, False),
+ DepEntry("x264_bframes", "x264_direct", "0", True, False),
+ DepEntry("x264_bframes", "x264_b_adapt", "0", True, False),
+ DepEntry("x264_refs", "x264_mixed_refs", "<2", True, False),
+ DepEntry("x264_cabac", "x264_trellis", "TRUE", False, False),
+ DepEntry("x264_subme", "x264_psy_rd", "<6", True, False),
+ DepEntry("x264_subme", "x264_psy_trell", "<6", True, False),
+ DepEntry("x264_cabac", "x264_psy_trell", "TRUE", False, False),
+ DepEntry("x264_trellis", "x264_psy_trell", "0", True, False),
+ DepEntry("ChapterMarkers", "chapters_list", "TRUE", False, False),
+ DepEntry("use_source_name", "chapters_in_destination", "TRUE", False, False),
+ DepEntry("use_source_name", "title_no_in_destination", "TRUE", False, False),
)
def main():