mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 02:11:04 +02:00
TODO:
- format of license text
- button bar or header buttons ?
Origin commit data
------------------
Commit: 2387b27b73
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-19 (Tue, 19 Mar 2013)
72 lines
1.7 KiB
C++
72 lines
1.7 KiB
C++
/*
|
|
Based up Neutrino-GUI - Tuxbox-Project
|
|
Copyright (C) 2001 by Steffen Hehn 'McClean'
|
|
|
|
Implementation of component classes
|
|
Copyright (C) 2013, Thilo Graf 'dbt'
|
|
|
|
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 Library General Public
|
|
License along with this library; if not, write to the
|
|
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
Boston, MA 02110-1301, USA.
|
|
*/
|
|
|
|
|
|
#ifndef __imageinfo__
|
|
#define __imageinfo__
|
|
|
|
#include <gui/widget/menue.h>
|
|
#include <gui/components/cc.h>
|
|
#include <configfile.h>
|
|
|
|
typedef struct image_info_t
|
|
{
|
|
neutrino_locale_t caption;
|
|
std::string info_text;
|
|
|
|
} image_info_struct_t;
|
|
|
|
class CImageInfo : public CMenuTarget
|
|
{
|
|
private:
|
|
int item_offset; //distance between items and to boarder
|
|
int item_top; //start line in y below header
|
|
std::string license_txt;
|
|
|
|
std::vector<image_info_t> v_info;
|
|
std::vector<image_info_t> v_info_supp;
|
|
|
|
void Init();
|
|
void InitMinitv();
|
|
void InitInfos();
|
|
void InitSupportInfos();
|
|
void ShowWindow();
|
|
void InitLicenseText();
|
|
|
|
CComponentsWindow *cc_win;
|
|
CConfigFile config;
|
|
|
|
public:
|
|
|
|
CImageInfo();
|
|
~CImageInfo();
|
|
|
|
void hide();
|
|
int exec(CMenuTarget* parent, const std::string & actionKey);
|
|
};
|
|
|
|
#endif
|
|
|