diff --git a/data/locale/deutsch.locale b/data/locale/deutsch.locale index 9357ff611..40cc04a3c 100644 --- a/data/locale/deutsch.locale +++ b/data/locale/deutsch.locale @@ -2091,12 +2091,14 @@ mpkey.stop Stopp mpkey.subtitle Untertitel mpkey.time Zeitanzeige netfs.active_onoff Eintrag aktiv +netfs.automount_edit auto.net bearbeiten netfs.automount_head NetFS Einstellungen netfs.automount_intro Einträge für auto.net netfs.automount_intro_mounts NetFS-Mounts bearbeiten netfs.automount_write Einstellungen speichern und auto.net schreiben netfs.automount_write_info auto.net wurde geschrieben netfs.dump Dump +netfs.fstab_edit fstab bearbeiten netfs.fstab_domount NetFS-Verzeichnisse anhängen (mount) netfs.fstab_domount_info '/etc/init.d/fstab start_netfs' wird ausgeführt netfs.fstab_doumount NetFS-Verzeichnisse aushängen (umount) diff --git a/data/locale/english.locale b/data/locale/english.locale index 019b23d28..0bd3d9038 100644 --- a/data/locale/english.locale +++ b/data/locale/english.locale @@ -2090,12 +2090,14 @@ mpkey.stop Stop mpkey.subtitle Subtitles mpkey.time Show time netfs.active_onoff Entry active +netfs.automount_edit Edit auto.net netfs.automount_head NetFS settings netfs.automount_intro /etc/auto.net entries netfs.automount_intro_mounts edit NetFS mounts netfs.automount_write save settings and write auto.net netfs.automount_write_info auto.net written netfs.dump dump +netfs.fstab_edit Edit fstab netfs.fstab_domount mount NetFS directory netfs.fstab_domount_info Running '/etc/init.d/fstab start_netfs' netfs.fstab_doumount unmount NetFS directory diff --git a/src/gui/network_setup.cpp b/src/gui/network_setup.cpp index bca1e993c..638a7d89b 100644 --- a/src/gui/network_setup.cpp +++ b/src/gui/network_setup.cpp @@ -46,6 +46,7 @@ #include #include +#include #include #include @@ -442,6 +443,20 @@ void CNetworkSetup::showNetworkNFSMounts(CMenuWidget *menu_nfs) mf = new CMenuDForwarder(LOCALE_NFS_UMOUNT, true, NULL, new CNFSUmountGui(), NULL, CRCInput::RC_green); mf->setHint("", LOCALE_MENU_HINT_NET_NFS_UMOUNT); menu_nfs->addItem(mf); + + menu_nfs->addItem(GenericMenuSeparatorLine); + + CNETFSMountGui *netfsMountGui = new CNETFSMountGui(); + const char *used_fstab = netfsMountGui->fstabPath.c_str(); + const char *used_autonet = netfsMountGui->autoPath.c_str(); + + CMenuForwarder *fstab = new CMenuForwarder(LOCALE_NETFS_FSTAB_EDIT, true, used_fstab, netfsMountGui, "menu fstab", CRCInput::RC_yellow); + fstab->setHint(NEUTRINO_ICON_HINT_IMAGELOGO, LOCALE_MENU_HINT_NETFS_MENU_MAIN_FSTAB); + menu_nfs->addItem(fstab); + + CMenuForwarder *automount = new CMenuForwarder(LOCALE_NETFS_AUTOMOUNT_EDIT, true, used_autonet, netfsMountGui, "menu automount", CRCInput::RC_blue); + automount->setHint(NEUTRINO_ICON_HINT_IMAGELOGO, LOCALE_MENU_HINT_NETFS_MENU_MAIN_AUTOMOUNT); + menu_nfs->addItem(automount); } #endif diff --git a/src/gui/ni_menu.cpp b/src/gui/ni_menu.cpp index ebafb75e0..4b93bc6da 100644 --- a/src/gui/ni_menu.cpp +++ b/src/gui/ni_menu.cpp @@ -36,7 +36,6 @@ #include #include -#include #include #include @@ -84,19 +83,9 @@ bool CNIMenu::changeNotify(const neutrino_locale_t OptionName, void * /*data*/) int CNIMenu::show() { - int shortcut = 1; - - std::ostringstream buf; - CMenuWidget* ni_menu = new CMenuWidget(LOCALE_NIMENU_HEAD, NEUTRINO_ICON_SETTINGS, width, MN_WIDGET_ID_NI_MENU); ni_menu->addIntroItems(); - // NetFS Setup - CNETFSSetup netfs_setup; - mf = new CMenuForwarder(LOCALE_NETFS_MENU_MAIN_HEAD, true, NULL, &netfs_setup, NULL, CRCInput::convertDigitToKey(shortcut++)); - mf->setHint(NEUTRINO_ICON_HINT_IMAGELOGO, LOCALE_MENU_HINT_NETFS_MENU_MAIN_HEAD); - ni_menu->addItem(mf); - int res = ni_menu->exec(NULL, ""); ni_menu->hide(); diff --git a/src/system/locals.h b/src/system/locals.h index 0f15f8542..2729aedaa 100644 --- a/src/system/locals.h +++ b/src/system/locals.h @@ -2117,12 +2117,14 @@ typedef enum LOCALE_MPKEY_SUBTITLE, LOCALE_MPKEY_TIME, LOCALE_NETFS_ACTIVE_ONOFF, + LOCALE_NETFS_AUTOMOUNT_EDIT, LOCALE_NETFS_AUTOMOUNT_HEAD, LOCALE_NETFS_AUTOMOUNT_INTRO, LOCALE_NETFS_AUTOMOUNT_INTRO_MOUNTS, LOCALE_NETFS_AUTOMOUNT_WRITE, LOCALE_NETFS_AUTOMOUNT_WRITE_INFO, LOCALE_NETFS_DUMP, + LOCALE_NETFS_FSTAB_EDIT, LOCALE_NETFS_FSTAB_DOMOUNT, LOCALE_NETFS_FSTAB_DOMOUNT_INFO, LOCALE_NETFS_FSTAB_DOUMOUNT, diff --git a/src/system/locals_intern.h b/src/system/locals_intern.h index c2acd4e93..58f949532 100644 --- a/src/system/locals_intern.h +++ b/src/system/locals_intern.h @@ -2117,12 +2117,14 @@ const char * locale_real_names[] = "mpkey.subtitle", "mpkey.time", "netfs.active_onoff", + "netfs.automount_edit", "netfs.automount_head", "netfs.automount_intro", "netfs.automount_intro_mounts", "netfs.automount_write", "netfs.automount_write_info", "netfs.dump", + "netfs.fstab_edit", "netfs.fstab_domount", "netfs.fstab_domount_info", "netfs.fstab_doumount",