Ticket #6665: 6665-accessibility-priority-modifiers.diff
File 6665-accessibility-priority-modifiers.diff, 7.0 KB (added by , 15 years ago) |
---|
-
mythtv/libs/libmythtv/customedit.cpp
257 257 m_cfrom << ""; 258 258 m_csql << "FIND_IN_SET('AVC', program.videoprop) = 0 "; 259 259 260 m_clause->insertItem(tr("Only shows with in-vision signing")); 261 m_cfrom << ""; 262 m_csql << "FIND_IN_SET('SIGNED', program.subtitletypes) > 0"; 263 264 m_clause->insertItem(tr("Only shows with in-vision subtitles")); 265 m_cfrom << ""; 266 m_csql << "FIND_IN_SET('ONSCREEN', program.subtitletypes) > 0"; 267 260 268 m_clause->insertItem(tr("Limit by category")); 261 269 m_cfrom << ""; 262 270 if (p->category > "") -
mythtv/programs/mythfrontend/globalsettings.cpp
3291 3291 return bs; 3292 3292 } 3293 3293 3294 static GlobalSpinBox *GRWSRecPriority() 3295 { 3296 GlobalSpinBox *bs = new GlobalSpinBox("WSRecPriority", -99, 99, 1); 3297 bs->setLabel(QObject::tr("Widescreen Recording Priority")); 3298 bs->setHelpText(QObject::tr("Additional priority when a showing " 3299 "is marked as widescreen in the TV listings.")); 3300 bs->setValue(0); 3301 return bs; 3302 } 3303 3294 3304 static GlobalSpinBox *GRAutoRecPriority() 3295 3305 { 3296 3306 GlobalSpinBox *bs = new GlobalSpinBox("AutoRecPriority", -99, 99, 1); … … 3303 3313 return bs; 3304 3314 } 3305 3315 3316 static GlobalSpinBox *GRSignLangRecPriority() 3317 { 3318 GlobalSpinBox *bs = new GlobalSpinBox("SignLangRecPriority", 3319 -99, 99, 1); 3320 bs->setLabel(QObject::tr("Sign Language Recording Priority")); 3321 bs->setHelpText(QObject::tr("Additional priority when a showing " 3322 "is marked as having in-vision sign language.")); 3323 bs->setValue(0); 3324 return bs; 3325 } 3326 3327 static GlobalSpinBox *GROnScrSubRecPriority() 3328 { 3329 GlobalSpinBox *bs = new GlobalSpinBox("OnScrSubRecPriority", 3330 -99, 99, 1); 3331 bs->setLabel(QObject::tr("In-vision Subtitles Recording Priority")); 3332 bs->setHelpText(QObject::tr("Additional priority when a showing " 3333 "is marked as having in-vision subtitles.")); 3334 bs->setValue(0); 3335 return bs; 3336 } 3337 3338 static GlobalSpinBox *GRCCRecPriority() 3339 { 3340 GlobalSpinBox *bs = new GlobalSpinBox("CCRecPriority", 3341 -99, 99, 1); 3342 bs->setLabel(QObject::tr("Subtitles/CC Recording Priority")); 3343 bs->setHelpText(QObject::tr("Additional priority when a showing " 3344 "is marked as having subtitles or closed captioning " 3345 "(CC) available.")); 3346 bs->setValue(0); 3347 return bs; 3348 } 3349 3350 static GlobalSpinBox *GRHardHearRecPriority() 3351 { 3352 GlobalSpinBox *bs = new GlobalSpinBox("HardHearRecPriority", 3353 -99, 99, 1); 3354 bs->setLabel(QObject::tr("Hard of Hearing Priority")); 3355 bs->setHelpText(QObject::tr("Additional priority when a showing " 3356 "is marked as having support for viewers with impaired " 3357 "hearing.")); 3358 bs->setValue(0); 3359 return bs; 3360 } 3361 3362 static GlobalSpinBox *GRAudioDescRecPriority() 3363 { 3364 GlobalSpinBox *bs = new GlobalSpinBox("AudioDescRecPriority", 3365 -99, 99, 1); 3366 bs->setLabel(QObject::tr("Audio Described Priority")); 3367 bs->setHelpText(QObject::tr("Additional priority when a showing " 3368 "is marked as being Audio Described.")); 3369 bs->setValue(0); 3370 return bs; 3371 } 3372 3306 3373 static GlobalSpinBox *GRSingleRecordRecPriority() 3307 3374 { 3308 3375 GlobalSpinBox *bs = new GlobalSpinBox("SingleRecordRecPriority", … … 5007 5074 sched->addChild(GRComplexPriority()); 5008 5075 sched->addChild(GRPrefInputRecPriority()); 5009 5076 sched->addChild(GRHDTVRecPriority()); 5077 sched->addChild(GRWSRecPriority()); 5010 5078 sched->addChild(GRAutoRecPriority()); 5011 5079 addChild(sched); 5012 5080 5081 VerticalConfigurationGroup* access = new VerticalConfigurationGroup(false); 5082 access->setLabel(QObject::tr("Accessibility Options")); 5083 5084 access->addChild(GRSignLangRecPriority()); 5085 access->addChild(GROnScrSubRecPriority()); 5086 access->addChild(GRCCRecPriority()); 5087 access->addChild(GRHardHearRecPriority()); 5088 access->addChild(GRAudioDescRecPriority()); 5089 addChild(access); 5090 5013 5091 VerticalConfigurationGroup* rtype = new VerticalConfigurationGroup(false); 5014 5092 rtype->setLabel(QObject::tr("Recording Type Priority Settings")); 5015 5093 -
mythtv/programs/mythbackend/scheduler.cpp
2908 2908 int complexpriority = gContext->GetNumSetting("ComplexPriority", 0); 2909 2909 prefinputpri = gContext->GetNumSetting("PrefInputPriority", 2); 2910 2910 int hdtvpriority = gContext->GetNumSetting("HDTVRecPriority", 0); 2911 int wspriority = gContext->GetNumSetting("WSRecPriority", 0); 2911 2912 int autopriority = gContext->GetNumSetting("AutoRecPriority", 0); 2913 int slpriority = gContext->GetNumSetting("SignLangRecPriority", 0); 2914 int onscrpriority = gContext->GetNumSetting("OnScrSubRecPriority", 0); 2915 int ccpriority = gContext->GetNumSetting("CCRecPriority", 0); 2916 int hhpriority = gContext->GetNumSetting("HardHearRecPriority", 0); 2917 int adpriority = gContext->GetNumSetting("AudioDescRecPriority", 0); 2912 2918 2913 2919 int autostrata = autopriority * 2 + 1; 2914 2920 … … 2919 2925 "(cardinput.cardinputid = RECTABLE.prefinput) * %1").arg(prefinputpri); 2920 2926 2921 2927 if (hdtvpriority) 2922 pwrpri += QString(" + (program.hdtv > 0) * %1").arg(hdtvpriority); 2928 pwrpri += QString(" + (program.hdtv > 0 OR " 2929 "FIND_IN_SET('HDTV', program.videoprop) > 0) * %1").arg(hdtvpriority); 2923 2930 2931 if (wspriority) 2932 pwrpri += QString(" + " 2933 "(FIND_IN_SET('WIDESCREEN', program.videoprop) > 0) * %1").arg(wspriority); 2934 2935 if (slpriority) 2936 pwrpri += QString(" + " 2937 "(FIND_IN_SET('SIGNED', program.subtitletypes) > 0) * %1").arg(slpriority); 2938 2939 if (onscrpriority) 2940 pwrpri += QString(" + " 2941 "(FIND_IN_SET('ONSCREEN', program.subtitletypes) > 0) * %1").arg(onscrpriority); 2942 2943 if (ccpriority) 2944 pwrpri += QString(" + " 2945 "(FIND_IN_SET('NORMAL', program.subtitletypes) > 0 OR " 2946 "program.closecaptioned > 0 OR program.subtitled > 0) * %1").arg(ccpriority); 2947 2948 if (hhpriority) 2949 pwrpri += QString(" + " 2950 "(FIND_IN_SET('HARDHEAR', program.subtitletypes) > 0 OR " 2951 "FIND_IN_SET('HARDHEAR', program.audioprop) > 0) * %1").arg(hhpriority); 2952 2953 if (adpriority) 2954 pwrpri += QString(" + " 2955 "(FIND_IN_SET('VISUALIMPAIR', program.audioprop) > 0) * %1").arg(adpriority); 2956 2924 2957 QString schedTmpRecord = recordTable; 2925 2958 2926 2959 MSqlQuery result(dbConn);