Added hot keys for AVI recording to Qt GUI.
This commit is contained in:
parent
b3700f58b4
commit
02e3c4e075
|
@ -1468,6 +1468,9 @@ void consoleWin_t::createMainMenu(void)
|
|||
recAviAct->setIcon( QIcon(":icons/media-record.png") );
|
||||
connect(recAviAct, SIGNAL(triggered()), this, SLOT(aviRecordStart(void)) );
|
||||
|
||||
Hotkeys[ HK_RECORD_AVI ].setAction( recAviAct );
|
||||
connect( Hotkeys[ HK_RECORD_AVI ].getShortcut(), SIGNAL(activated()), this, SLOT(aviRecordStart(void)) );
|
||||
|
||||
aviMenu->addAction(recAviAct);
|
||||
|
||||
// Movie -> Avi Recording -> Record
|
||||
|
@ -1477,6 +1480,9 @@ void consoleWin_t::createMainMenu(void)
|
|||
//recAsAviAct->setIcon( QIcon(":icons/media-record.png") );
|
||||
connect(recAsAviAct, SIGNAL(triggered()), this, SLOT(aviRecordAsStart(void)) );
|
||||
|
||||
Hotkeys[ HK_RECORD_AVI_TO ].setAction( recAsAviAct );
|
||||
connect( Hotkeys[ HK_RECORD_AVI_TO ].getShortcut(), SIGNAL(activated()), this, SLOT(aviRecordAsStart(void)) );
|
||||
|
||||
aviMenu->addAction(recAsAviAct);
|
||||
|
||||
// Movie -> Avi Recording -> Stop
|
||||
|
@ -1486,6 +1492,9 @@ void consoleWin_t::createMainMenu(void)
|
|||
stopAviAct->setIcon( style()->standardIcon( QStyle::SP_MediaStop ) );
|
||||
connect(stopAviAct, SIGNAL(triggered()), this, SLOT(aviRecordStop(void)) );
|
||||
|
||||
Hotkeys[ HK_STOP_AVI ].setAction( stopAviAct );
|
||||
connect( Hotkeys[ HK_STOP_AVI ].getShortcut(), SIGNAL(activated()), this, SLOT(aviRecordStop(void)) );
|
||||
|
||||
aviMenu->addAction(stopAviAct);
|
||||
|
||||
// Movie -> Avi Recording -> Video Format
|
||||
|
|
|
@ -213,6 +213,15 @@ int getHotKeyConfig( int i, const char **nameOut, const char **keySeqOut, const
|
|||
case HK_STOP_MOVIE:
|
||||
name = "StopMovie"; keySeq = "";
|
||||
break;
|
||||
case HK_RECORD_AVI:
|
||||
name = "RecordAvi"; keySeq = "";
|
||||
break;
|
||||
case HK_RECORD_AVI_TO:
|
||||
name = "RecordAviTo"; keySeq = "";
|
||||
break;
|
||||
case HK_STOP_AVI:
|
||||
name = "StopAvi"; keySeq = "";
|
||||
break;
|
||||
case HK_MUTE_CAPTURE:
|
||||
name = "MuteCapture"; keySeq = "'";
|
||||
break;
|
||||
|
|
|
@ -47,6 +47,7 @@ enum HOTKEY {
|
|||
HK_TOGGLE_FRAME_DISPLAY, HK_TOGGLE_SUBTITLE, HK_SCREENSHOT,
|
||||
HK_BIND_STATE, HK_MOVIE_TOGGLE_RW,
|
||||
HK_PLAY_MOVIE_FROM, HK_MOVIE_PLAY_RESTART, HK_RECORD_MOVIE_TO, HK_STOP_MOVIE,
|
||||
HK_RECORD_AVI, HK_RECORD_AVI_TO, HK_STOP_AVI,
|
||||
|
||||
// Display
|
||||
HK_TOGGLE_FG, HK_TOGGLE_BG, HK_TOGGLE_INPUT_DISPLAY, HK_LAG_COUNTER_DISPLAY,
|
||||
|
|
Loading…
Reference in New Issue