mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
w-max() returns a pixel-value, but menus need a percentage-value.
Origin commit data
------------------
Commit: 9041bff59c
Author: vanhofen <vanhofen@gmx.de>
Date: 2015-04-24 (Fri, 24 Apr 2015)
Origin message was:
------------------
- remove w_max()-calls to define menu-width, because ...
w-max() returns a pixel-value, but menus need a percentage-value.
66 lines
1.7 KiB
C++
66 lines
1.7 KiB
C++
/*
|
|
$port: parentallock_setup.h,v 1.2 2009/11/22 15:36:52 tuxbox-cvs Exp $
|
|
|
|
parentallock setup implementation - Neutrino-GUI
|
|
|
|
Copyright (C) 2001 Steffen Hehn 'McClean'
|
|
and some other guys
|
|
Homepage: http://dbox.cyberphoria.org/
|
|
|
|
Copyright (C) 2009 T. Graf 'dbt'
|
|
Homepage: http://www.dbox2-tuning.net/
|
|
|
|
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, write to the
|
|
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
#ifndef __parentallock_setup__
|
|
#define __parentallock_setup__
|
|
|
|
#include <global.h>
|
|
#include <neutrino.h>
|
|
#include <neutrino_menue.h>
|
|
|
|
#include <gui/widget/menue.h>
|
|
#include <driver/screen_max.h>
|
|
#include <string>
|
|
|
|
class CParentalSetup : public CMenuTarget, public CPINProtection
|
|
{
|
|
private:
|
|
int width;
|
|
int showParentalSetup();
|
|
|
|
protected:
|
|
virtual CMenuTarget* getParent() { return( NULL);};
|
|
|
|
public:
|
|
|
|
CParentalSetup() : CPINProtection(g_settings.parentallock_pincode)
|
|
{
|
|
width = 40;
|
|
title = LOCALE_PARENTALLOCK_HEAD;
|
|
};
|
|
~CParentalSetup();
|
|
int exec(CMenuTarget* parent, const std::string & actionKey);
|
|
bool checkPin() { return check(); }
|
|
};
|
|
|
|
|
|
#endif
|