mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
opkgmanager: rename hintBox -> loadBox
That should be a more plausible term.
This commit is contained in:
@@ -139,7 +139,7 @@ void COPKGManager::init(int wizard_mode)
|
|||||||
local_dir = &g_settings.update_dir_opkg;
|
local_dir = &g_settings.update_dir_opkg;
|
||||||
initPackagePatternLists();
|
initPackagePatternLists();
|
||||||
|
|
||||||
hintBox = new CLoaderHint(LOCALE_OPKG_UPDATE_CHECK);
|
loadBox = new CLoaderHint(LOCALE_OPKG_UPDATE_CHECK);
|
||||||
silent = false;
|
silent = false;
|
||||||
menu_used = false;
|
menu_used = false;
|
||||||
num_updates = 0;
|
num_updates = 0;
|
||||||
@@ -150,15 +150,18 @@ COPKGManager::~COPKGManager()
|
|||||||
if (menu_used)
|
if (menu_used)
|
||||||
{
|
{
|
||||||
// TODO: Show message only if the waiting time is too long
|
// TODO: Show message only if the waiting time is too long
|
||||||
hintBox->setMsgText(LOCALE_OPKG_MESSAGEBOX_PLEASE_WAIT);
|
loadBox->setMsgText(LOCALE_OPKG_MESSAGEBOX_PLEASE_WAIT);
|
||||||
hintBox->paint();
|
loadBox->paint();
|
||||||
if (menu)
|
if (menu)
|
||||||
delete menu;
|
delete menu;
|
||||||
}
|
}
|
||||||
pkg_map.clear();
|
pkg_map.clear();
|
||||||
execCmd(pm_cmd[CMD_CLEAN], CShellWindow::QUIET);
|
execCmd(pm_cmd[CMD_CLEAN], CShellWindow::QUIET);
|
||||||
hintBox->hide();
|
if (loadBox)
|
||||||
delete hintBox;
|
{
|
||||||
|
loadBox->hide();
|
||||||
|
delete loadBox;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int COPKGManager::exec(CMenuTarget* parent, const string &actionKey)
|
int COPKGManager::exec(CMenuTarget* parent, const string &actionKey)
|
||||||
@@ -185,14 +188,14 @@ int COPKGManager::exec(CMenuTarget* parent, const string &actionKey)
|
|||||||
expert_mode = !expert_mode;
|
expert_mode = !expert_mode;
|
||||||
|
|
||||||
// Show message while reloading menu
|
// Show message while reloading menu
|
||||||
hintBox->setMsgText(LOCALE_OPKG_UPDATE_READING_LISTS);
|
loadBox->setMsgText(LOCALE_OPKG_UPDATE_READING_LISTS);
|
||||||
hintBox->paint();
|
loadBox->paint();
|
||||||
|
|
||||||
updateMenu();
|
updateMenu();
|
||||||
menu->setSelectedByName(pkg_name);
|
menu->setSelectedByName(pkg_name);
|
||||||
|
|
||||||
// Close message
|
// Close message
|
||||||
hintBox->hide();
|
loadBox->hide();
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -222,14 +225,14 @@ int COPKGManager::exec(CMenuTarget* parent, const string &actionKey)
|
|||||||
*local_dir = fileBrowser.getCurrentDir();
|
*local_dir = fileBrowser.getCurrentDir();
|
||||||
|
|
||||||
// Show message while reloading package list
|
// Show message while reloading package list
|
||||||
hintBox->setMsgText(LOCALE_OPKG_UPDATE_READING_LISTS);
|
loadBox->setMsgText(LOCALE_OPKG_UPDATE_READING_LISTS);
|
||||||
hintBox->paint();
|
loadBox->paint();
|
||||||
|
|
||||||
pullPkgData();
|
pullPkgData();
|
||||||
updateMenu();
|
updateMenu();
|
||||||
|
|
||||||
// Close message
|
// Close message
|
||||||
hintBox->hide();
|
loadBox->hide();
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
@@ -254,15 +257,15 @@ int COPKGManager::exec(CMenuTarget* parent, const string &actionKey)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Show message while reloading package list
|
// Show message while reloading package list
|
||||||
hintBox->setMsgText(LOCALE_OPKG_UPDATE_READING_LISTS);
|
loadBox->setMsgText(LOCALE_OPKG_UPDATE_READING_LISTS);
|
||||||
hintBox->paint();
|
loadBox->paint();
|
||||||
|
|
||||||
// Reloading package lists
|
// Reloading package lists
|
||||||
pullPkgData();
|
pullPkgData();
|
||||||
updateMenu();
|
updateMenu();
|
||||||
|
|
||||||
// Close message
|
// Close message
|
||||||
hintBox->hide();
|
loadBox->hide();
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
@@ -379,34 +382,34 @@ int COPKGManager::exec(CMenuTarget* parent, const string &actionKey)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Show message while reloading package list
|
// Show message while reloading package list
|
||||||
hintBox->setMsgText(LOCALE_OPKG_UPDATE_READING_LISTS);
|
loadBox->setMsgText(LOCALE_OPKG_UPDATE_READING_LISTS);
|
||||||
hintBox->paint();
|
loadBox->paint();
|
||||||
|
|
||||||
pullPkgData();
|
pullPkgData();
|
||||||
updateMenu();
|
updateMenu();
|
||||||
menu->setSelectedByName(pkg_name);
|
menu->setSelectedByName(pkg_name);
|
||||||
|
|
||||||
// Close message
|
// Close message
|
||||||
hintBox->hide();
|
loadBox->hide();
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (actionKey == "rc_blue")
|
if (actionKey == "rc_blue")
|
||||||
{
|
{
|
||||||
// Show message while update
|
// Show message while update
|
||||||
hintBox->setMsgText(LOCALE_OPKG_UPDATE_CHECK);
|
loadBox->setMsgText(LOCALE_OPKG_UPDATE_CHECK);
|
||||||
hintBox->paint();
|
loadBox->paint();
|
||||||
|
|
||||||
doUpdate();
|
doUpdate();
|
||||||
pullPkgData();
|
pullPkgData();
|
||||||
|
|
||||||
hintBox->setMsgText(LOCALE_OPKG_UPDATE_READING_LISTS);
|
loadBox->setMsgText(LOCALE_OPKG_UPDATE_READING_LISTS);
|
||||||
updateMenu();
|
updateMenu();
|
||||||
|
|
||||||
menu->setSelected(selected);
|
menu->setSelected(selected);
|
||||||
|
|
||||||
// Close message
|
// Close message
|
||||||
hintBox->hide();
|
loadBox->hide();
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
@@ -820,7 +823,7 @@ int COPKGManager::initMenu()
|
|||||||
{
|
{
|
||||||
installed = false;
|
installed = false;
|
||||||
|
|
||||||
hintBox->paint();
|
loadBox->paint();
|
||||||
setUpdateCheckResult(false); // without message
|
setUpdateCheckResult(false); // without message
|
||||||
|
|
||||||
if (menu == NULL)
|
if (menu == NULL)
|
||||||
@@ -830,7 +833,7 @@ int COPKGManager::initMenu()
|
|||||||
menu->setSelected(1); //back-item in wizard mode next-item
|
menu->setSelected(1); //back-item in wizard mode next-item
|
||||||
}
|
}
|
||||||
|
|
||||||
hintBox->hide();
|
loadBox->hide();
|
||||||
|
|
||||||
int res = menu->exec(NULL, "");
|
int res = menu->exec(NULL, "");
|
||||||
|
|
||||||
|
@@ -114,7 +114,7 @@ class COPKGManager : public CMenuTarget, public COPKGManagerExtra
|
|||||||
bool expert_mode;
|
bool expert_mode;
|
||||||
std::string *local_dir;
|
std::string *local_dir;
|
||||||
|
|
||||||
CLoaderHint *hintBox;
|
CLoaderHint *loadBox;
|
||||||
|
|
||||||
bool has_err;
|
bool has_err;
|
||||||
typedef struct OPKG_error_data_t
|
typedef struct OPKG_error_data_t
|
||||||
|
Reference in New Issue
Block a user