Files
recycled-ni-neutrino/src/gui/osd_setup.h
Thilo Graf 9aaf46e79f tuxbox-port: modul files added
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@894 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: a508e4ab5f
Author: Thilo Graf <dbt@novatux.de>
Date: 2010-11-28 (Sun, 28 Nov 2010)



------------------
This commit was generated by Migit
2010-11-27 23:16:38 +00:00

97 lines
2.5 KiB
C++

/*
$port: osd_setup.h,v 1.1 2010/08/28 22:47:09 tuxbox-cvs Exp $
osd_setup implementation - Neutrino-GUI
Copyright (C) 2001 Steffen Hehn 'McClean'
and some other guys
Homepage: http://dbox.cyberphoria.org/
Copyright (C) 2010 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., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __osd_setup__
#define __osd_setup__
#include <gui/widget/menue.h>
#include <driver/framebuffer.h>
#include <system/setting_helpers.h>
#include <system/settings.h>
#include <string>
class COsdSetup : public CMenuTarget
{
private:
CFrameBuffer *frameBuffer;
CColorSetupNotifier *colorSetupNotifier;
CFontSizeNotifier *fontsizenotifier;
int x, y, width, height, hheight, mheight;
bool is_wizard;
void hide();
void showOsdSetup();
void showOsdMenueColorSetup(CMenuWidget *menu_colors);
void showOsdFontSizeSetup(CMenuWidget *menu_fonts);
void showOsdTimeoutSetup(CMenuWidget *menu_timeout);
void showOsdInfobarSetup(CMenuWidget *menu_infobar);
void AddFontSettingItem(CMenuWidget &font_Settings, const SNeutrinoSettings::FONT_TYPES number_of_fontsize_entry);
public:
COsdSetup(bool wizard_mode = false);
~COsdSetup();
int exec(CMenuTarget* parent, const std::string & actionKey);
enum INFOBAR_CHANNEL_LOGO_POS_OPTIONS
{
INFOBAR_NO_LOGO,
INFOBAR_LOGO_AS_CHANNELLUM,
INFOBAR_LOGO_AS_CHANNELNAME,
INFOBAR_LOGO_BESIDE_CHANNELNAME
};
enum INFOBAR_CHANNEL_LOGO_BACKROUND_OPTIONS
{
INFOBAR_NO_BACKGROUND,
INFOBAR_LOGO_FRAMED,
INFOBAR_LOGO_SHADED
};
};
class COsdSetupChannelLogoNotifier : public CChangeObserver
{
private:
CMenuForwarder* toDisable1;
CMenuOptionChooser* toDisable2;
public:
COsdSetupChannelLogoNotifier( CMenuForwarder*, CMenuOptionChooser* );
bool changeNotify(const neutrino_locale_t, void * Data);
};
#endif