mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
update: reworked update menu
-moved software_update.cpp/h to update_menue.cpp/h -add new class CUpdateSettings into files update_settings.cpp/h -using update settings in sub menus, so we've got only hotkeys and less menu items in update menu -reworked some locales
This commit is contained in:
67
src/gui/update_settings.h
Normal file
67
src/gui/update_settings.h
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
$Id: port of software_update.h,v 1.6 2011/04/03 21:56:13 tuxbox-cvs Exp $
|
||||
|
||||
Neutrino-GUI - DBoxII-Project
|
||||
|
||||
Update settings implementation - Neutrino-GUI
|
||||
|
||||
Copyright (C) 2001 Steffen Hehn 'McClean'
|
||||
and some other guys
|
||||
Homepage: http://dbox.cyberphoria.org/
|
||||
|
||||
Copyright (C) 2012 T. Graf 'dbt'
|
||||
Homepage: http://www.dbox2-tuning.net/
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this program; if not, write to the
|
||||
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
|
||||
*/
|
||||
|
||||
#ifndef __update_settings__
|
||||
#define __update_settings__
|
||||
|
||||
#include <gui/widget/menue.h>
|
||||
|
||||
#include "gui/update.h"
|
||||
#include "gui/widget/stringinput.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
//helper class to enable/disable update config url item
|
||||
class CUrlConfigSetupNotifier : public CChangeObserver
|
||||
{
|
||||
private:
|
||||
CMenuItem* toDisable[2];
|
||||
public:
|
||||
CUrlConfigSetupNotifier( CMenuItem*, CMenuItem*);
|
||||
bool changeNotify(const neutrino_locale_t = NONEXISTANT_LOCALE, void *data = NULL);
|
||||
};
|
||||
|
||||
class CUpdateSettings : public CMenuTarget
|
||||
{
|
||||
private:
|
||||
int width;
|
||||
int initMenu();
|
||||
|
||||
CFlashExpert *fe;
|
||||
CStringInputSMS *input_url_file;
|
||||
|
||||
public:
|
||||
CUpdateSettings();
|
||||
~CUpdateSettings();
|
||||
int exec(CMenuTarget* parent, const std::string & actionKey);
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user