mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
move netfs-mounts from ni-menu to network-setup
Origin commit data
------------------
Commit: 6c20bc42f8
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-09-12 (Tue, 12 Sep 2017)
Origin message was:
------------------
- move netfs-mounts from ni-menu to network-setup
This commit is contained in:
@@ -2091,12 +2091,14 @@ mpkey.stop Stopp
|
|||||||
mpkey.subtitle Untertitel
|
mpkey.subtitle Untertitel
|
||||||
mpkey.time Zeitanzeige
|
mpkey.time Zeitanzeige
|
||||||
netfs.active_onoff Eintrag aktiv
|
netfs.active_onoff Eintrag aktiv
|
||||||
|
netfs.automount_edit auto.net bearbeiten
|
||||||
netfs.automount_head NetFS Einstellungen
|
netfs.automount_head NetFS Einstellungen
|
||||||
netfs.automount_intro Einträge für auto.net
|
netfs.automount_intro Einträge für auto.net
|
||||||
netfs.automount_intro_mounts NetFS-Mounts bearbeiten
|
netfs.automount_intro_mounts NetFS-Mounts bearbeiten
|
||||||
netfs.automount_write Einstellungen speichern und auto.net schreiben
|
netfs.automount_write Einstellungen speichern und auto.net schreiben
|
||||||
netfs.automount_write_info auto.net wurde geschrieben
|
netfs.automount_write_info auto.net wurde geschrieben
|
||||||
netfs.dump Dump
|
netfs.dump Dump
|
||||||
|
netfs.fstab_edit fstab bearbeiten
|
||||||
netfs.fstab_domount NetFS-Verzeichnisse anhängen (mount)
|
netfs.fstab_domount NetFS-Verzeichnisse anhängen (mount)
|
||||||
netfs.fstab_domount_info '/etc/init.d/fstab start_netfs' wird ausgeführt
|
netfs.fstab_domount_info '/etc/init.d/fstab start_netfs' wird ausgeführt
|
||||||
netfs.fstab_doumount NetFS-Verzeichnisse aushängen (umount)
|
netfs.fstab_doumount NetFS-Verzeichnisse aushängen (umount)
|
||||||
|
@@ -2090,12 +2090,14 @@ mpkey.stop Stop
|
|||||||
mpkey.subtitle Subtitles
|
mpkey.subtitle Subtitles
|
||||||
mpkey.time Show time
|
mpkey.time Show time
|
||||||
netfs.active_onoff Entry active
|
netfs.active_onoff Entry active
|
||||||
|
netfs.automount_edit Edit auto.net
|
||||||
netfs.automount_head NetFS settings
|
netfs.automount_head NetFS settings
|
||||||
netfs.automount_intro /etc/auto.net entries
|
netfs.automount_intro /etc/auto.net entries
|
||||||
netfs.automount_intro_mounts edit NetFS mounts
|
netfs.automount_intro_mounts edit NetFS mounts
|
||||||
netfs.automount_write save settings and write auto.net
|
netfs.automount_write save settings and write auto.net
|
||||||
netfs.automount_write_info auto.net written
|
netfs.automount_write_info auto.net written
|
||||||
netfs.dump dump
|
netfs.dump dump
|
||||||
|
netfs.fstab_edit Edit fstab
|
||||||
netfs.fstab_domount mount NetFS directory
|
netfs.fstab_domount mount NetFS directory
|
||||||
netfs.fstab_domount_info Running '/etc/init.d/fstab start_netfs'
|
netfs.fstab_domount_info Running '/etc/init.d/fstab start_netfs'
|
||||||
netfs.fstab_doumount unmount NetFS directory
|
netfs.fstab_doumount unmount NetFS directory
|
||||||
|
@@ -46,6 +46,7 @@
|
|||||||
#include <gui/widget/msgbox.h>
|
#include <gui/widget/msgbox.h>
|
||||||
|
|
||||||
#include <gui/network_service.h>
|
#include <gui/network_service.h>
|
||||||
|
#include <gui/netfs_setup.h>
|
||||||
|
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
@@ -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 = new CMenuDForwarder(LOCALE_NFS_UMOUNT, true, NULL, new CNFSUmountGui(), NULL, CRCInput::RC_green);
|
||||||
mf->setHint("", LOCALE_MENU_HINT_NET_NFS_UMOUNT);
|
mf->setHint("", LOCALE_MENU_HINT_NET_NFS_UMOUNT);
|
||||||
menu_nfs->addItem(mf);
|
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
|
#endif
|
||||||
|
|
||||||
|
@@ -36,7 +36,6 @@
|
|||||||
#include <mymenu.h>
|
#include <mymenu.h>
|
||||||
#include <neutrino_menue.h>
|
#include <neutrino_menue.h>
|
||||||
|
|
||||||
#include <gui/netfs_setup.h>
|
|
||||||
#include <gui/widget/hintbox.h>
|
#include <gui/widget/hintbox.h>
|
||||||
#include <gui/widget/icons.h>
|
#include <gui/widget/icons.h>
|
||||||
|
|
||||||
@@ -84,19 +83,9 @@ bool CNIMenu::changeNotify(const neutrino_locale_t OptionName, void * /*data*/)
|
|||||||
|
|
||||||
int CNIMenu::show()
|
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);
|
CMenuWidget* ni_menu = new CMenuWidget(LOCALE_NIMENU_HEAD, NEUTRINO_ICON_SETTINGS, width, MN_WIDGET_ID_NI_MENU);
|
||||||
ni_menu->addIntroItems();
|
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, "");
|
int res = ni_menu->exec(NULL, "");
|
||||||
|
|
||||||
ni_menu->hide();
|
ni_menu->hide();
|
||||||
|
@@ -2117,12 +2117,14 @@ typedef enum
|
|||||||
LOCALE_MPKEY_SUBTITLE,
|
LOCALE_MPKEY_SUBTITLE,
|
||||||
LOCALE_MPKEY_TIME,
|
LOCALE_MPKEY_TIME,
|
||||||
LOCALE_NETFS_ACTIVE_ONOFF,
|
LOCALE_NETFS_ACTIVE_ONOFF,
|
||||||
|
LOCALE_NETFS_AUTOMOUNT_EDIT,
|
||||||
LOCALE_NETFS_AUTOMOUNT_HEAD,
|
LOCALE_NETFS_AUTOMOUNT_HEAD,
|
||||||
LOCALE_NETFS_AUTOMOUNT_INTRO,
|
LOCALE_NETFS_AUTOMOUNT_INTRO,
|
||||||
LOCALE_NETFS_AUTOMOUNT_INTRO_MOUNTS,
|
LOCALE_NETFS_AUTOMOUNT_INTRO_MOUNTS,
|
||||||
LOCALE_NETFS_AUTOMOUNT_WRITE,
|
LOCALE_NETFS_AUTOMOUNT_WRITE,
|
||||||
LOCALE_NETFS_AUTOMOUNT_WRITE_INFO,
|
LOCALE_NETFS_AUTOMOUNT_WRITE_INFO,
|
||||||
LOCALE_NETFS_DUMP,
|
LOCALE_NETFS_DUMP,
|
||||||
|
LOCALE_NETFS_FSTAB_EDIT,
|
||||||
LOCALE_NETFS_FSTAB_DOMOUNT,
|
LOCALE_NETFS_FSTAB_DOMOUNT,
|
||||||
LOCALE_NETFS_FSTAB_DOMOUNT_INFO,
|
LOCALE_NETFS_FSTAB_DOMOUNT_INFO,
|
||||||
LOCALE_NETFS_FSTAB_DOUMOUNT,
|
LOCALE_NETFS_FSTAB_DOUMOUNT,
|
||||||
|
@@ -2117,12 +2117,14 @@ const char * locale_real_names[] =
|
|||||||
"mpkey.subtitle",
|
"mpkey.subtitle",
|
||||||
"mpkey.time",
|
"mpkey.time",
|
||||||
"netfs.active_onoff",
|
"netfs.active_onoff",
|
||||||
|
"netfs.automount_edit",
|
||||||
"netfs.automount_head",
|
"netfs.automount_head",
|
||||||
"netfs.automount_intro",
|
"netfs.automount_intro",
|
||||||
"netfs.automount_intro_mounts",
|
"netfs.automount_intro_mounts",
|
||||||
"netfs.automount_write",
|
"netfs.automount_write",
|
||||||
"netfs.automount_write_info",
|
"netfs.automount_write_info",
|
||||||
"netfs.dump",
|
"netfs.dump",
|
||||||
|
"netfs.fstab_edit",
|
||||||
"netfs.fstab_domount",
|
"netfs.fstab_domount",
|
||||||
"netfs.fstab_domount_info",
|
"netfs.fstab_domount_info",
|
||||||
"netfs.fstab_doumount",
|
"netfs.fstab_doumount",
|
||||||
|
Reference in New Issue
Block a user