mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
Merge branch 'ni/tuxbox' into ni/mp/tuxbox
Conflicts:
data/locale/deutsch.locale
data/locale/english.locale
data/locale/nederlands.locale
data/locale/slovak.locale
data/locale/unmaintained/czech.locale
src/gui/components/cc_frm_footer.cpp
src/gui/start_wizard.cpp
src/gui/widget/msgbox.cpp
Origin commit data
------------------
Branch: ni/coolstream
Commit: fce378f8ff
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-11-21 (Mon, 21 Nov 2016)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
#include <cs_api.h> //NI
|
||||
#include <gui/widget/icons.h>
|
||||
#include <gui/widget/stringinput.h>
|
||||
#include <gui/widget/messagebox.h>
|
||||
#include <gui/widget/msgbox.h>
|
||||
#include <gui/widget/hintbox.h>
|
||||
#include <gui/widget/progresswindow.h>
|
||||
|
||||
@@ -394,8 +394,8 @@ bool CHDDMenuHandler::waitfordev(std::string dev, int maxwait)
|
||||
|
||||
void CHDDMenuHandler::showHint(std::string &message)
|
||||
{
|
||||
CHintBox * hintBox = new CHintBox(LOCALE_MESSAGEBOX_INFO, message.c_str());
|
||||
hintBox->paint();
|
||||
CHintBox hintBox(LOCALE_MESSAGEBOX_INFO, message.c_str());
|
||||
hintBox.paint();
|
||||
|
||||
uint64_t timeoutEnd = CRCInput::calcTimeoutEnd(3);
|
||||
neutrino_msg_t msg;
|
||||
@@ -413,7 +413,7 @@ void CHDDMenuHandler::showHint(std::string &message)
|
||||
else if (CNeutrinoApp::getInstance()->handleMsg(msg, data) & messages_return::cancel_all)
|
||||
break;
|
||||
}
|
||||
delete hintBox;
|
||||
hintBox.hide();
|
||||
}
|
||||
|
||||
void CHDDMenuHandler::setRecordPath(std::string &dev)
|
||||
@@ -433,8 +433,8 @@ void CHDDMenuHandler::setRecordPath(std::string &dev)
|
||||
}
|
||||
bool old_menu = in_menu;
|
||||
in_menu = false;
|
||||
int res = ShowMsg(LOCALE_RECORDINGMENU_DEFDIR, LOCALE_HDD_SET_RECDIR, CMessageBox::mbrNo, CMessageBox::mbYes | CMessageBox::mbNo);
|
||||
if(res == CMessageBox::mbrYes) {
|
||||
int res = ShowMsg(LOCALE_RECORDINGMENU_DEFDIR, LOCALE_HDD_SET_RECDIR, CMsgBox::mbrNo, CMsgBox::mbYes | CMsgBox::mbNo);
|
||||
if(res == CMsgBox::mbrYes) {
|
||||
g_settings.network_nfs_recordingdir = newpath;
|
||||
CRecordManager::getInstance()->SetDirectory(g_settings.network_nfs_recordingdir);
|
||||
if(g_settings.timeshiftdir.empty())
|
||||
@@ -488,8 +488,8 @@ int CHDDMenuHandler::handleMsg(const neutrino_msg_t msg, neutrino_msg_data_t dat
|
||||
showHint(message);
|
||||
else {
|
||||
message += std::string(" ") + g_Locale->getText(LOCALE_HDD_FORMAT) + std::string(" ?");
|
||||
int res = ShowMsg(LOCALE_MESSAGEBOX_INFO, message, CMessageBox::mbrNo, CMessageBox::mbYes | CMessageBox::mbNo);
|
||||
if(res == CMessageBox::mbrYes) {
|
||||
int res = ShowMsg(LOCALE_MESSAGEBOX_INFO, message, CMsgBox::mbrNo, CMsgBox::mbYes | CMsgBox::mbNo);
|
||||
if(res == CMsgBox::mbrYes) {
|
||||
unsigned char * p = new unsigned char[dev.size() + 1];
|
||||
if (p) {
|
||||
sprintf((char *)p, "%s", dev.c_str());
|
||||
@@ -545,8 +545,8 @@ int CHDDMenuHandler::exec(CMenuTarget* parent, const std::string &actionkey)
|
||||
if (actionkey[0] == 'm') {
|
||||
for (std::vector<hdd_s>::iterator it = hdd_list.begin(); it != hdd_list.end(); ++it) {
|
||||
if (it->devname == dev) {
|
||||
CHintBox * hintbox = new CHintBox(it->mounted ? LOCALE_HDD_UMOUNT : LOCALE_HDD_MOUNT, it->devname.c_str());
|
||||
hintbox->paint();
|
||||
CHintBox hintbox(it->mounted ? LOCALE_HDD_UMOUNT : LOCALE_HDD_MOUNT, it->devname.c_str());
|
||||
hintbox.paint();
|
||||
if (it->mounted)
|
||||
umount_dev(it->devname);
|
||||
else
|
||||
@@ -554,7 +554,7 @@ int CHDDMenuHandler::exec(CMenuTarget* parent, const std::string &actionkey)
|
||||
|
||||
it->mounted = is_mounted(it->devname.c_str());
|
||||
it->cmf->setOption(it->mounted ? umount : mount);
|
||||
delete hintbox;
|
||||
hintbox.hide();
|
||||
return menu_return::RETURN_REPAINT;
|
||||
}
|
||||
}
|
||||
@@ -1018,7 +1018,7 @@ static void waitfordev(const char *, int)
|
||||
|
||||
void CHDDMenuHandler::showError(neutrino_locale_t err)
|
||||
{
|
||||
ShowMsg(LOCALE_MESSAGEBOX_ERROR, g_Locale->getText(err), CMessageBox::mbrOk, CMessageBox::mbOk);
|
||||
ShowMsg(LOCALE_MESSAGEBOX_ERROR, g_Locale->getText(err), CMsgBox::mbrOk, CMsgBox::mbOk);
|
||||
}
|
||||
|
||||
int CHDDMenuHandler::formatDevice(std::string dev)
|
||||
@@ -1050,8 +1050,8 @@ int CHDDMenuHandler::formatDevice(std::string dev)
|
||||
std::string mkfscmd = devtool->mkfs + " " + devtool->mkfs_options + " " + partname;
|
||||
printf("mkfs cmd: [%s]\n", mkfscmd.c_str());
|
||||
|
||||
res = ShowMsg(LOCALE_HDD_FORMAT, g_Locale->getText(LOCALE_HDD_FORMAT_WARN), CMessageBox::mbrNo, CMessageBox::mbYes | CMessageBox::mbNo );
|
||||
if(res != CMessageBox::mbrYes)
|
||||
res = ShowMsg(LOCALE_HDD_FORMAT, g_Locale->getText(LOCALE_HDD_FORMAT_WARN), CMsgBox::mbrNo, CMsgBox::mbYes | CMsgBox::mbNo );
|
||||
if(res != CMsgBox::mbrYes)
|
||||
return menu_return::RETURN_REPAINT;
|
||||
|
||||
//NI bool srun = my_system(3, "killall", "-9", "smbd");
|
||||
|
Reference in New Issue
Block a user