diff --git a/src/gui/buildinfo.cpp b/src/gui/buildinfo.cpp index e7e98785b..a10ce8388 100644 --- a/src/gui/buildinfo.cpp +++ b/src/gui/buildinfo.cpp @@ -3,7 +3,7 @@ Copyright (C) 2001 by Steffen Hehn 'McClean' Copyright (C) 2013, M. Liebmann 'micha-bbg' - Copyright (C) 2013-2014, Thilo Graf 'dbt' + Copyright (C) 2013-2017, Thilo Graf 'dbt' License: GPL @@ -40,6 +40,7 @@ using namespace std; CBuildInfo::CBuildInfo(bool show) : CComponentsWindow(0, 0, CCW_PERCENT 85, CCW_PERCENT 85, LOCALE_BUILDINFO_MENU, NEUTRINO_ICON_INFO) { initVarBuildInfo(); + setBodyBGImage(DATADIR "/neutrino/icons/start.jpg"); if (show) exec(NULL, ""); else diff --git a/src/gui/components/cc_frm_window.cpp b/src/gui/components/cc_frm_window.cpp index f23245147..8e39ec97b 100644 --- a/src/gui/components/cc_frm_window.cpp +++ b/src/gui/components/cc_frm_window.cpp @@ -3,7 +3,7 @@ Copyright (C) 2001 by Steffen Hehn 'McClean' Classes for generic GUI-related components. - Copyright (C) 2012-2016 Thilo Graf 'dbt' + Copyright (C) 2012-2017 Thilo Graf 'dbt' Copyright (C) 2012, Michael Liebmann 'micha-bbg' License: GPL @@ -444,3 +444,8 @@ void CComponentsWindow::paint(bool do_save_bg) //paint form contents paintForm(do_save_bg); } + +bool CComponentsWindow::setBodyBGImage(const std::string& image_path) +{ + return getBodyObject()->setBodyBGImage(image_path); +} diff --git a/src/gui/components/cc_frm_window.h b/src/gui/components/cc_frm_window.h index 6dfe67df8..3e2658db5 100644 --- a/src/gui/components/cc_frm_window.h +++ b/src/gui/components/cc_frm_window.h @@ -3,7 +3,7 @@ Copyright (C) 2001 by Steffen Hehn 'McClean' Classes for generic GUI-related components. - Copyright (C) 2012-2016, Thilo Graf 'dbt' + Copyright (C) 2012-2017, Thilo Graf 'dbt' License: GPL @@ -435,6 +435,12 @@ class CComponentsWindow : public CComponentsForm, CCHeaderTypes * @note use addExitKey() if new exec key is required */ virtual void removeExitKeys(){getBodyObject()->removeExitKeys();} + + /** + * Sets an image for window background. + * @note The assigned image is assigned into body object! Main container, header and footer will be not touched. + */ + bool setBodyBGImage(const std::string& image_path); }; class CComponentsWindowMax : public CComponentsWindow