Add display of build info

- Display compiler version, compiler flags, build PC, kernel version
- configure.ac part ported from filezilla project
This commit is contained in:
Michael Liebmann
2013-10-17 11:01:01 +02:00
committed by Thilo Graf
parent 05ce023278
commit 4cf4857201
9 changed files with 386 additions and 0 deletions

70
src/gui/buildinfo.h Normal file
View File

@@ -0,0 +1,70 @@
/*
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_frm.h>
#include <configfile.h>
typedef struct build_info_t
{
neutrino_locale_t caption;
std::string info_text;
} build_info_struct_t;
class CBuildInfo : public CMenuTarget
{
private:
int item_offset;
int bodyHeight;
std::vector<build_info_t> v_info;
void Clean();
void Init();
void InitInfos();
void ShowWindow();
CComponentsWindow *cc_win;
CComponentsForm *cc_info;
CConfigFile config;
public:
CBuildInfo();
~CBuildInfo();
void hide();
int exec(CMenuTarget* parent, const std::string & actionKey);
};
#endif // __buildinfo__