void eExpertSetup::init_eExpertSetup() { valign(); #ifndef HAVE_DREAMBOX_HARDWARE new eListBoxEntryMenuSeparator(&list, eSkin::getActive()->queryImage("listbox.separator"), 0, true ); //Boot-info int bootInfo = 0; if (access("/var/etc/.boot_info", R_OK) == 0) bootInfo = 1; eConfig::getInstance()->setKey("/extras/bootinfo", bootInfo); CONNECT_2_1((new eListBoxEntryCheck(&list, _("Show Boot-Info"), "/extras/bootinfo", _("Show Boot-Infos (IP, etc.)")))->selected, eExpertSetup::fileToggle,"/var/etc/.boot_info"); //HW-Sections int hwSectionsDisable = 0; if (access("/var/etc/.hw_sections", R_OK) == 0) hwSectionsDisable = 1; eConfig::getInstance()->setKey("/extras/hw_sections_disable", hwSectionsDisable); CONNECT_2_1((new eListBoxEntryCheck(&list, _("Disable HW_Sections"), "/extras/hw_sections_disable", _("don't use hardware section filtering")))->selected, eExpertSetup::fileToggle,"/var/etc/.hw_sections"); //Watchdog int watchdogDisable = 0; if (access("/var/etc/.no_watchdog", R_OK) == 0) watchdogDisable = 1; eConfig::getInstance()->setKey("/extras/watchdog_disable", watchdogDisable); CONNECT_2_1((new eListBoxEntryCheck(&list, _("Disable Watchdog"), "/extras/watchdog_disable", _("don't use the Watchdog")))->selected, eExpertSetup::fileToggle,"/var/etc/.no_watchdog"); //ENX-Watchdog - Philips and Sagem if ( eSystemInfo::getInstance()->getHwType() != eSystemInfo::dbox2Nokia ) { int enxWatchdogDisable = 0; if (access("/var/etc/.no_enxwatchdog", R_OK) == 0) enxWatchdogDisable = 1; eConfig::getInstance()->setKey("/extras/enxwatchdog_disable", enxWatchdogDisable); CONNECT_2_1((new eListBoxEntryCheck(&list, _("Disable ENX-Watchdog"), "/extras/enxwatchdog_disable", _("don't use the ENX-Watchdog")))->selected, eExpertSetup::fileToggle,"/var/etc/.no_enxwatchdog"); } //SPTS-Recording int sptsMode = 0; if (access("/var/etc/.spts_mode", R_OK) == 0) sptsMode = 1; eConfig::getInstance()->setKey("/extras/spts_mode", sptsMode); CONNECT_2_1((new eListBoxEntryCheck(&list, _("Enable SPTS-Mode"), "/extras/spts_mode", _("use SPTS-Mode (enables TS-recording)")))->selected, eExpertSetup::fileToggle,"/var/etc/.spts_mode"); //File I/O-Options int OSyncDisable = 0; if (access("/var/etc/.no_o_sync", R_OK) == 0) OSyncDisable = 1; eConfig::getInstance()->setKey("/extras/O_SYNC_disable", OSyncDisable); CONNECT_2_1((new eListBoxEntryCheck(&list, _("Disable O_SYNC"), "/extras/O_SYNC_disable", _("The file/recording is not opened for synchronous I/O")))->selected, eExpertSetup::fileToggle,"/var/etc/.no_o_sync"); //Alternative Frontenddriver for Philips if ( eSystemInfo::getInstance()->getHwType() == eSystemInfo::dbox2Philips ) { int tda80xx = 0; if (access("/var/etc/.tda80xx", R_OK) == 0) tda80xx = 1; eConfig::getInstance()->setKey("/extras/tda80xx", tda80xx); CONNECT_2_1((new eListBoxEntryCheck(&list, _("New Philips driver"), "/extras/tda80xx", _("use tda80xx driver for Philips boxes")))->selected, eExpertSetup::fileToggle,"/var/etc/.tda80xx"); } #endif /* help text for expert setup screen */ setHelpText(_("\tExpert Setup\n\n>>> [MENU] >>> [6] Setup >>> [6] Expert Setup\n. . . . . . . . . .\n\n" \ "Here you can make some changes to the behavior of your DreamBox (experts only!)\n. . . . . . . . . .\n\n" \ "Usage:\n\n[UP]/[DOWN]\tSelect Inputfield, Button, or Sub Menu\n\n[OK]\tToggle option on/off\n\n" \ "[LEFT]/[RIGHT]\tdecrease/increase value\n\n[EXIT]\tSave Settings and Close Window\n\n" \ "Note: every item has an explanation of its function in the menu itself.")); }
void eExpertSetup::init_eExpertSetup() { cmove(ePoint(135, 100)); int showlogo=0; if ( eConfig::getInstance()->getKey("/ezap/extra/showlogo", showlogo) ) eConfig::getInstance()->setKey("/ezap/extra/showlogo", showlogo); int logChannelName=0; if ( eConfig::getInstance()->getKey("/ezap/extra/logChannelName", logChannelName) ) eConfig::getInstance()->setKey("/ezap/extra/logChannelName", logChannelName); int lockWebIf=1; if ( eConfig::getInstance()->getKey("/ezap/webif/lockWebIf", lockWebIf) ) eConfig::getInstance()->setKey("/ezap/webif/lockWebIf", lockWebIf); int showSatPos=1; if ( eConfig::getInstance()->getKey("/extras/showSatPos", showSatPos) ) eConfig::getInstance()->setKey("/extras/showSatPos", showSatPos); int entry=0; #ifndef DISABLE_NETWORK if (eSystemInfo::getInstance()->hasNetwork()) { CONNECT((new eListBoxEntryMenu(&list, _("Communication Setup"), eString().sprintf("(%d) %s", ++entry, _("open communication setup")) ))->selected, eExpertSetup::communication_setup); CONNECT((new eListBoxEntryMenu(&list, _("Ngrab Streaming Setup"), eString().sprintf("(%d) %s", ++entry, _("open ngrab server setup")) ))->selected, eExpertSetup::ngrab_setup); switch (eSystemInfo::getInstance()->getHwType()) { case eSystemInfo::DM7020: case eSystemInfo::DM600PVR: case eSystemInfo::DM500PLUS: break; default: CONNECT((new eListBoxEntryMenu(&list, _("Software Update"), eString().sprintf("(%d) %s", ++entry, _("open software update")) ))->selected, eExpertSetup::software_update); } } int startSamba=1; if ( eConfig::getInstance()->getKey("/elitedvb/network/samba", startSamba) ) eConfig::getInstance()->setKey("/elitedvb/network/samba", startSamba); #endif CONNECT((new eListBoxEntryMenu(&list, _("Remote Control"), eString().sprintf("(%d) %s", ++entry, _("open remote control setup")) ))->selected, eExpertSetup::rc_setup); #ifndef DISABLE_HDD #ifndef DISABLE_FILE CONNECT((new eListBoxEntryMenu(&list, _("Swap Manager"), eString().sprintf("(%d) %s", ++entry, _("open swapspace setup")) ))->selected, eExpertSetup::swapmanager); #endif #endif if ( eSystemInfo::getInstance()->getHwType() >= eSystemInfo::DM7000 ) CONNECT((new eListBoxEntryMenu(&list, _("Factory reset"), eString().sprintf("(%d) %s", ++entry, _("all settings will set to factory defaults")) ))->selected, eExpertSetup::factory_reset); CONNECT((new eListBoxEntryMenu(&list, _("EPG settings"), eString().sprintf("(%d) %s", ++entry, _("open EPG settings")) ))->selected, eExpertSetup::setup_epgcache); new eListBoxEntryMenuSeparator(&list, eSkin::getActive()->queryImage("listbox.separator"), 0, true ); #ifdef ENABLE_IPKG CONNECT((new eListBoxEntryMenu(&list, _("package manager"), eString().sprintf("(%d) %s", ++entry, _("open package manager")) ))->selected, eExpertSetup::setup_ipkg); new eListBoxEntryMenuSeparator(&list, eSkin::getActive()->queryImage("listbox.separator"), 0, true ); #endif list.setFlags(list.getFlags()|eListBoxBase::flagNoPageMovement); #ifndef DISABLE_FILE if ( eSystemInfo::getInstance()->canRecordTS() && !eDVB::getInstance()->recorder ) { record_split_size = new eListBoxEntryMulti(&list, _("record split size (left, right)")); record_split_size->add(" 650MB >", 650*1024); record_split_size->add("< 700MB >", 700*1024); record_split_size->add("< 800MB >", 800*1024); record_split_size->add("< 1GB >", 1024*1024); record_split_size->add("< 1,5GB >", 1536*1024); record_split_size->add("< 2GB >", 2*1024*1024); record_split_size->add("< 4GB >", 4*1024*1024); record_split_size->add("< 8GB >", 8*1024*1024); record_split_size->add("< 16GB ", 16*1024*1024); int splitsize=0; if (eConfig::getInstance()->getKey("/extras/record_splitsize", splitsize)) splitsize=1024*1024; // 1G record_split_size->setCurrent(splitsize); CONNECT( list.selchanged, eExpertSetup::selChanged ); } // Timeroffset (Anfang) timeroffsetstart = new eListBoxEntryMulti( &list, (_("Change timer offset [start] (left, right)"))); for (int i = 0; i <= 10; i++) timeroffsetstart->add( (eString)(i ? " ":"< ") + eString().sprintf(_("Timer offset [start] %d min"), i) + (eString)(i < 10 ? " >":" "), i); int offsetstart=0; if (eConfig::getInstance()->getKey("/enigma/timeroffset", offsetstart) ) offsetstart=0; // 0 Minutes timeroffsetstart->setCurrent(offsetstart); CONNECT(list.selchanged, eExpertSetup::startoffsetChanged ); // Timeroffset (Ende) timeroffsetend = new eListBoxEntryMulti( &list, (_("Change timer offset [end] (left, right)"))); for (int i = 0; i <= 10; i++) timeroffsetend->add( (eString)(i ? " ":"< ") + eString().sprintf(_("Timer offset [end] %d min"), i) + (eString)(i < 10 ? " >":" "), i); int offsetend=0; if (eConfig::getInstance()->getKey("/enigma/timeroffset2", offsetend) ) offsetend=0; // 0 Minutes timeroffsetend->setCurrent(offsetend); CONNECT(list.selchanged, eExpertSetup::endoffsetChanged ); timerenddefaultaction = new eListBoxEntryMulti( &list, _("Default action on timer end (left, right)")); timerenddefaultaction->add( eString().sprintf("%s: %s%s",_("Action on timer end"),_("Nothing")," >").c_str(), 0 ); if ( eSystemInfo::getInstance()->canShutdown() ) { timerenddefaultaction->add( eString().sprintf("< %s: %s >", _("Action on timer end"), _("Standby")).c_str(), ePlaylistEntry::doGoSleep ); timerenddefaultaction->add( eString().sprintf("< %s: %s", _("Action on timer end"), _("Shutdown")).c_str(), ePlaylistEntry::doShutdown ); } else { timerenddefaultaction->add( eString().sprintf("< %s: %s", _("Action on timer end"), _("Standby")).c_str(), ePlaylistEntry::doGoSleep ); } int defaultaction = 0; if (eConfig::getInstance()->getKey("/enigma/timerenddefaultaction", defaultaction) ) defaultaction = 0; timerenddefaultaction->setCurrent(defaultaction); CONNECT(list.selchanged, eExpertSetup::timerenddefaultactionChanged ); new eListBoxEntryMenuSeparator(&list, eSkin::getActive()->queryImage("listbox.separator"), 0, true ); new eListBoxEntryCheck(&list, _("disable AC3 recording"), "/enigma/noac3recording", _("don't record AC3 audio track")); new eListBoxEntryCheck(&list, _("disable teletext recording"), "/enigma/nottxrecording", _("don't record teletext track")); new eListBoxEntryCheck(&list, _("disable timestamp detection"), "/enigma/notimestampdetect", _("don't try to detect duration from DVB timestamps when replaying recordings")); new eListBoxEntryMenuSeparator(&list, eSkin::getActive()->queryImage("listbox.separator"), 0, true ); #endif if ( eSystemInfo::getInstance()->getHwType() >= eSystemInfo::DM7000 ) CONNECT((new eListBoxEntryCheck(&list,_("Enable fast zapping"),"/elitedvb/extra/fastzapping",_("enables faster zapping.. but with visible sync")))->selected, eExpertSetup::fastZappingChanged ); CONNECT((new eListBoxEntryCheck(&list, _("Use http authentification"), "/ezap/webif/lockWebIf", _("enables the http (user/password) authentification")))->selected, eExpertSetup::reinitializeHTTPServer ); CONNECT((new eListBoxEntryCheck(&list, _("Don't open serial port"), "/ezap/extra/disableSerialOutput", _("don't write debug messages to /dev/tts/0")))->selected, eExpertSetup::reinitializeHTTPServer ); new eListBoxEntryCheck(&list, _("Auto bouquet change"), "/elitedvb/extra/autobouquetchange", _("change into next bouquet when end of current bouquet is reached")); new eListBoxEntryCheck(&list, _("Auto reconnect cahandler"), "/elitedvb/extra/cahandlerReconnect", _("try to reconnect when an external cahandler connection was lost")); #ifndef DISABLE_NETWORK if ( eSystemInfo::getInstance()->getHwType() == eSystemInfo::DM7000 || eSystemInfo::getInstance()->getHwType() == eSystemInfo::DM7020) new eListBoxEntryCheck(&list, _("Enable file sharing"), "/elitedvb/network/samba", _("start file sharing(samba) on startup")); #endif #ifndef TUXTXT_CFG_STANDALONE CONNECT((new eListBoxEntryCheck(&list, _("Disable teletext caching"), "/ezap/extra/teletext_caching", _("don't cache teletext pages in background")))->selected, eExpertSetup::tuxtxtCachingChanged ); #endif new eListBoxEntryCheck(&list, _("Disable internal teletext"), "/ezap/teletext/use_external", _("use external tuxtxt plugin")); new eListBoxEntryCheck(&list, _("Enable Zapping History"), "/elitedvb/extra/extzapping", _("don't care about actual mode when zapping in history list")); if ( eSystemInfo::getInstance()->getHwType() < eSystemInfo::DM5600 ) new eListBoxEntryCheck(&list, _("Disable Standby"), "/extras/fastshutdown", _("Box goes directly into Deep-Standby")); #ifdef ENABLE_MHW_EPG int mhwepg=1; if ( eConfig::getInstance()->getKey("/extras/mhwepg", mhwepg) ) eConfig::getInstance()->setKey("/extras/mhwepg", mhwepg); new eListBoxEntryCheck(&list, _("Enable MHW EPG"), "/extras/mhwepg", _("Mediahighway EPG, activate swap space when using with multiple operators")); #endif #ifdef HAVE_DREAMBOX_HARDWARE if ( eSystemInfo::getInstance()->getHwType() == eSystemInfo::DM7000 ) { int corefilesDisable = 0; if (access("/var/etc/.no_corefiles", R_OK) == 0) corefilesDisable = 1; eConfig::getInstance()->setKey("/extras/corefiles_disable", corefilesDisable); new eListBoxEntryMenuSeparator(&list, eSkin::getActive()->queryImage("listbox.separator"), 0, true ); CONNECT_2_1((new eListBoxEntryCheck(&list, _("Disable CoreFiles"), "/extras/corefiles_disable", _("don't create 'Corefiles' after an Enigma crash")))->selected, eExpertSetup::fileToggle,"/var/etc/.no_corefiles"); #ifdef ENABLE_EXPERT_WEBIF int dontMountHDD = 0; if (access("/var/etc/.dont_mount_hdd", R_OK) == 0) dontMountHDD = 1; eConfig::getInstance()->setKey("/extras/dont_mount_hdd", dontMountHDD); CONNECT_2_1((new eListBoxEntryCheck(&list, _("Disable HDD mount"), "/extras/dont_mount_hdd", _("don't mount the HDD via 'rcS'")))->selected, eExpertSetup::fileToggle,"/var/etc/.dont_mount_hdd"); #endif } #endif #ifndef DISABLE_FILE int autoplay=1; if ( eConfig::getInstance()->getKey("/ezap/extra/autoplay", autoplay) ) eConfig::getInstance()->setKey("/ezap/extra/autoplay", autoplay); new eListBoxEntryCheck(&list, _("Enable Filemode Autoplay"), "/ezap/extra/autoplay", _("continue playing last selected movie when entering Filemode")); #endif #ifdef HAVE_DBOX_HARDWARE new eListBoxEntryMenuSeparator(&list, eSkin::getActive()->queryImage("listbox.separator"), 0, true ); //Boot-info int bootInfo = 0; if (access("/var/etc/.boot_info", R_OK) == 0) bootInfo = 1; eConfig::getInstance()->setKey("/extras/bootinfo", bootInfo); CONNECT_2_1((new eListBoxEntryCheck(&list, _("Show Boot-Info"), "/extras/bootinfo", _("Show Boot-Infos (IP, etc.)")))->selected, eExpertSetup::fileToggle,"/var/etc/.boot_info"); //HW-Sections int hwSectionsDisable = 0; if (access("/var/etc/.hw_sections", R_OK) == 0) hwSectionsDisable = 1; eConfig::getInstance()->setKey("/extras/hw_sections_disable", hwSectionsDisable); CONNECT_2_1((new eListBoxEntryCheck(&list, _("Disable HW_Sections"), "/extras/hw_sections_disable", _("don't use hardware section filtering")))->selected, eExpertSetup::fileToggle,"/var/etc/.hw_sections"); //Watchdog int watchdogDisable = 0; if (access("/var/etc/.no_watchdog", R_OK) == 0) watchdogDisable = 1; eConfig::getInstance()->setKey("/extras/watchdog_disable", watchdogDisable); CONNECT_2_1((new eListBoxEntryCheck(&list, _("Disable Watchdog"), "/extras/watchdog_disable", _("don't use the Watchdog")))->selected, eExpertSetup::fileToggle,"/var/etc/.no_watchdog"); //ENX-Watchdog - Philips and Sagem if ( eSystemInfo::getInstance()->getHwType() != eSystemInfo::dbox2Nokia ) { int enxWatchdogDisable = 0; if (access("/var/etc/.no_enxwatchdog", R_OK) == 0) enxWatchdogDisable = 1; eConfig::getInstance()->setKey("/extras/enxwatchdog_disable", enxWatchdogDisable); CONNECT_2_1((new eListBoxEntryCheck(&list, _("Disable ENX-Watchdog"), "/extras/enxwatchdog_disable", _("don't use the ENX-Watchdog")))->selected, eExpertSetup::fileToggle,"/var/etc/.no_enxwatchdog"); } //SPTS-Recording int sptsMode = 0; if (access("/var/etc/.spts_mode", R_OK) == 0) sptsMode = 1; eConfig::getInstance()->setKey("/extras/spts_mode", sptsMode); CONNECT_2_1((new eListBoxEntryCheck(&list, _("Enable SPTS-Mode"), "/extras/spts_mode", _("use SPTS-Mode (enables TS-recording)")))->selected, eExpertSetup::fileToggle,"/var/etc/.spts_mode"); //File I/O-Options int OSyncDisable = 0; if (access("/var/etc/.no_o_sync", R_OK) == 0) OSyncDisable = 1; eConfig::getInstance()->setKey("/extras/O_SYNC_disable", OSyncDisable); CONNECT_2_1((new eListBoxEntryCheck(&list, _("Disable O_SYNC"), "/extras/O_SYNC_disable", _("The file/recording is not opened for synchronous I/O")))->selected, eExpertSetup::fileToggle,"/var/etc/.no_o_sync"); #endif setHelpID(92); }