-add record option for teletext & dvbsub pids

This commit is contained in:
Jacek Jendrzej
2013-03-19 17:14:04 +01:00
committed by [CST] Focus
parent cca6d898c8
commit b2241df43d
13 changed files with 181 additions and 23 deletions

View File

@@ -229,6 +229,13 @@ int CRecordSetup::showRecordSetup()
mf->setHint("", LOCALE_MENU_HINT_RECORD_APIDS);
recordingSettings->addItem(mf);
//datasettings
CMenuWidget recordingaDataSettings(LOCALE_MAINSETTINGS_RECORDING, NEUTRINO_ICON_SETTINGS, width, MN_WIDGET_ID_RECORDSETUP_DATASETTINGS);
showRecordDataSetup(&recordingaDataSettings);
mf = new CMenuForwarder(LOCALE_RECORDINGMENU_DATAPIDS, true, NULL, &recordingaDataSettings, NULL, CRCInput::RC_1);
mf->setHint("", LOCALE_MENU_HINT_RECORD_DATA);
recordingSettings->addItem(mf);
int res = recordingSettings->exec(NULL, "");
delete recordingSettings;
return res;
@@ -291,6 +298,22 @@ void CRecordSetup::showRecordAudioSetup(CMenuWidget *menu_audiosettings)
menu_audiosettings->addItem(aoj3);
}
void CRecordSetup::showRecordDataSetup(CMenuWidget *menu_datasettings)
{
//recording data pids
//teletext pids
CMenuOptionChooser* doj1 = new CMenuOptionChooser(LOCALE_RECORDINGMENU_VTXT_PID, &g_settings.recording_stream_vtxt_pid, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, this);
CMenuOptionChooser* doj2 = new CMenuOptionChooser(LOCALE_RECORDINGMENU_DVBSUB_PIDS, &g_settings.recording_stream_subtitle_pids, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, this);
doj1->setHint("", LOCALE_MENU_HINT_RECORD_DATA_VTXT);
doj2->setHint("", LOCALE_MENU_HINT_RECORD_DATA_DVBSUB);
menu_datasettings->addIntroItems(LOCALE_RECORDINGMENU_DATAPIDS);
menu_datasettings->addItem(doj1);
menu_datasettings->addItem(doj2);
}
void CRecordSetup::showRecordTimeShiftSetup(CMenuWidget *menu_ts)
{
menu_ts->addIntroItems(LOCALE_RECORDINGMENU_TIMESHIFT);