Ticket #571: fastforward2.patch
File fastforward2.patch, 3.7 KB (added by , 18 years ago) |
---|
-
libs/libmythtv/tv_play.cpp
80 80 REG_KEY("TV Playback", "PAUSE", "Pause", "P"); 81 81 REG_KEY("TV Playback", "DELETE", "Delete Program", "D"); 82 82 REG_KEY("TV Playback", "SEEKFFWD", "Fast Forward", "Right"); 83 REG_KEY("TV Playback", "SEEKFFWD2", "Fast Forward 2", "F12"); 83 84 REG_KEY("TV Playback", "SEEKRWND", "Rewind", "Left"); 84 85 REG_KEY("TV Playback", "CHANNELUP", "Channel up", "Up"); 85 86 REG_KEY("TV Playback", "CHANNELDOWN", "Channel down", "Down"); … … 172 173 TV::TV(void) 173 174 : QObject(NULL, "TV"), 174 175 // Configuration variables from database 175 baseFilters(""), fftime(0), rewtime(0),176 baseFilters(""), fftime(0), fftime2(0), rewtime(0), 176 177 jumptime(0), usePicControls(false), smartChannelChange(false), 177 178 MuteIndividualChannels(false), arrowAccel(false), osd_display_time(0), 178 179 autoCommercialSkip(false), tryUnflaggedSkip(false), … … 267 268 268 269 baseFilters += gContext->GetSetting("CustomFilters"); 269 270 fftime = gContext->GetNumSetting("FastForwardAmount", 30); 271 fftime2 = gContext->GetNumSetting("FastForwardAmount2", 5); 270 272 rewtime = gContext->GetNumSetting("RewindAmount", 5); 271 273 jumptime = gContext->GetNumSetting("JumpAmount", 10); 272 274 usePicControls = gContext->GetNumSetting("UseOutputPictureControls",0); … … 1933 1935 else 1934 1936 ChangeFFRew(1); 1935 1937 } 1936 else if (action == " FFWDSTICKY")1938 else if (action == "SEEKFFWD2") 1937 1939 { 1938 1940 if (channelqueued) 1941 DoArbSeek(ARBSEEK_FORWARD); 1942 else if (paused) 1943 DoSeek(1.001 / frameRate, tr("Forward")); 1944 else 1945 { 1946 DoSeek(fftime2, tr("Skip Ahead 2")); 1947 } 1948 } 1949 else if (action == "FFWDSTICKY") 1950 { 1951 if (channelqueued) 1939 1952 DoArbSeek(ARBSEEK_END); 1940 1953 else if (paused) 1941 1954 DoSeek(1.0, tr("Forward")); -
libs/libmythtv/tv_play.h
264 264 // Configuration variables from database 265 265 QString baseFilters; 266 266 int fftime; 267 int fftime2; 267 268 int rewtime; 268 269 int jumptime; 269 270 bool usePicControls; -
programs/mythfrontend/globalsettings.cpp
355 355 return gs; 356 356 } 357 357 358 static HostSpinBox *FastForwardAmount2() 359 { 360 HostSpinBox *gs = new HostSpinBox("FastForwardAmount2", 1, 600, 5, 361 true); 362 gs->setLabel(QObject::tr("Fast forward 2 amount (in seconds)")); 363 gs->setValue(5); 364 gs->setHelpText(QObject::tr("How many seconds to skip forward on a secondary fast " 365 "forward.")); 366 return gs; 367 } 368 369 358 370 static HostSpinBox *RewindAmount() 359 371 { 360 372 HostSpinBox *gs = new HostSpinBox("RewindAmount", 1, 600, 5, true); … … 2991 3003 VerticalConfigurationGroup* seek = new VerticalConfigurationGroup(false); 2992 3004 seek->setLabel(QObject::tr("Seeking")); 2993 3005 seek->addChild(FastForwardAmount()); 3006 seek->addChild(FastForwardAmount2()); 2994 3007 seek->addChild(RewindAmount()); 2995 3008 seek->addChild(SmartForward()); 2996 3009 seek->addChild(StickyKeys());