mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
Merge branch 'master' of https://github.com/tuxbox-neutrino/gui-neutrino into ni/tuxbox
Origin commit data
------------------
Branch: ni/coolstream
Commit: 722d98b46b
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-11-10 (Thu, 10 Nov 2016)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1379,8 +1379,8 @@ void CTimerList::paintItem(int pos)
|
||||
|
||||
void CTimerList::paintHead()
|
||||
{
|
||||
CComponentsHeaderLocalized header(x, y, width, theight, LOCALE_TIMERLIST_NAME, NEUTRINO_ICON_TIMER, CComponentsHeader::CC_BTN_EXIT, NULL, CC_SHADOW_ON);
|
||||
header.enableClock(true, "%d.%m.%Y %H:%M");
|
||||
CComponentsHeaderLocalized header(x, y, width, theight, LOCALE_TIMERLIST_NAME, NEUTRINO_ICON_TIMER, CComponentsHeader::CC_BTN_MENU | CComponentsHeader::CC_BTN_EXIT, NULL, CC_SHADOW_ON);
|
||||
header.enableClock(true, "%d.%m.%Y %H:%M");
|
||||
header.paint(CC_SAVE_SCREEN_NO);
|
||||
}
|
||||
|
||||
|
@@ -47,6 +47,7 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <neutrino_menue.h>
|
||||
#include "menue_target.h"
|
||||
extern "C" {
|
||||
#include <lua.h>
|
||||
#include <lauxlib.h>
|
||||
@@ -100,19 +101,6 @@ class CActivateObserver
|
||||
virtual void activateNotify(const neutrino_locale_t /*OptionName*/) {}
|
||||
};
|
||||
|
||||
class CMenuTarget
|
||||
{
|
||||
protected:
|
||||
std::string *valueString;
|
||||
std::string valueStringTmp;
|
||||
public:
|
||||
CMenuTarget(){ valueString = &valueStringTmp; }
|
||||
virtual ~CMenuTarget(){}
|
||||
virtual void hide(){}
|
||||
virtual int exec(CMenuTarget* parent, const std::string & actionKey) = 0;
|
||||
virtual std::string &getValue(void) { return *valueString; }
|
||||
virtual fb_pixel_t getColor(void) { return 0; }
|
||||
};
|
||||
|
||||
class CMenuItem : public CComponentsSignals
|
||||
{
|
||||
|
42
src/gui/widget/menue_target.h
Normal file
42
src/gui/widget/menue_target.h
Normal file
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
Based up Neutrino-GUI - Tuxbox-Project
|
||||
Copyright (C) 2001 by Steffen Hehn 'McClean'
|
||||
|
||||
License: GPL
|
||||
|
||||
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 General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef __MENU_TARGET__
|
||||
#define __MENU_TARGET__
|
||||
|
||||
|
||||
|
||||
class CMenuTarget
|
||||
{
|
||||
protected:
|
||||
std::string *valueString;
|
||||
std::string valueStringTmp;
|
||||
public:
|
||||
CMenuTarget(){ valueString = &valueStringTmp; }
|
||||
virtual ~CMenuTarget(){}
|
||||
virtual void hide(){}
|
||||
virtual int exec(CMenuTarget* parent, const std::string & actionKey) = 0;
|
||||
virtual std::string &getValue(void) { return *valueString; }
|
||||
virtual fb_pixel_t getColor(void) { return 0; }
|
||||
};
|
||||
|
||||
|
||||
#endif /*__MENU_TARGET__*/
|
Reference in New Issue
Block a user