Files
neutrino/src/gui/buildinfo.h
2015-02-15 22:16:47 +01:00

82 lines
1.8 KiB
C++

/*
Based up Neutrino-GUI - Tuxbox-Project
Copyright (C) 2001 by Steffen Hehn 'McClean'
Copyright (C) 2013, M. Liebmann 'micha-bbg'
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 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 __buildinfo__
#define __buildinfo__
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <gui/widget/menue.h>
#include <gui/components/cc.h>
typedef int info_type_id_t;
typedef struct build_info_t
{
info_type_id_t type_id;
neutrino_locale_t caption;
std::string info_text;
} build_info_struct_t;
class CBuildInfo : public CMenuTarget, public CComponentsWindow
{
private:
std::vector<build_info_t> v_info;
Font* font;
void initVarBuildInfo();
void InitInfoItems();
bool HasData();
public:
//type_id's for infos
enum
{
BI_TYPE_ID_USED_COMPILER,
BI_TYPE_ID_USED_CXXFLAGS,
BI_TYPE_ID_USED_BUILD,
BI_TYPE_ID_USED_KERNEL,
#if 0
BI_TYPE_ID_CREATOR,
#endif
BI_TYPE_IDS
};
CBuildInfo();
///assigns text Font type
void setFontType(Font* font_text);
build_info_t getInfo(const info_type_id_t& type_id);
void hide();
int exec(CMenuTarget* parent, const std::string & actionKey);
};
#endif // __buildinfo__