diff --git a/src/gui/components/cc_frm_footer.cpp b/src/gui/components/cc_frm_footer.cpp index f03a2f37e..59d5c6154 100644 --- a/src/gui/components/cc_frm_footer.cpp +++ b/src/gui/components/cc_frm_footer.cpp @@ -27,7 +27,7 @@ #include #include -#include "cc_frm.h" +#include "cc_frm_footer.h" using namespace std; diff --git a/src/gui/components/cc_frm_footer.h b/src/gui/components/cc_frm_footer.h new file mode 100644 index 000000000..dd96a02bd --- /dev/null +++ b/src/gui/components/cc_frm_footer.h @@ -0,0 +1,53 @@ +/* + Based up Neutrino-GUI - Tuxbox-Project + Copyright (C) 2001 by Steffen Hehn 'McClean' + + Classes for generic GUI-related components. + Copyright (C) 2012, 2013, 2014, 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, see . +*/ + +#ifndef __CC_FORM_FOOTER_H__ +#define __CC_FORM_FOOTER_H__ + + +#include "cc_frm_header.h" + +/*! +CComponentsFooter, sub class of CComponentsHeader provides prepared container for footer +Is mostly usable like a header but without caption, and context button icons. +*/ +class CComponentsFooter : public CComponentsHeader +{ + protected: + void initVarFooter( const int& x_pos, const int& y_pos, const int& w, const int& h = 0, + const int& buttons = 0, + bool has_shadow = CC_SHADOW_OFF, + fb_pixel_t color_frame = COL_MENUCONTENT_PLUS_6, + fb_pixel_t color_body = COL_INFOBAR_SHADOW_PLUS_1, + fb_pixel_t color_shadow = COL_MENUCONTENTDARK_PLUS_0); + public: + CComponentsFooter(); + CComponentsFooter( const int& x_pos, const int& y_pos, const int& w, const int& h = 0, + const int& buttons = 0, + bool has_shadow = CC_SHADOW_OFF, + fb_pixel_t color_frame = COL_MENUCONTENT_PLUS_6, + fb_pixel_t color_body = COL_INFOBAR_SHADOW_PLUS_1, + fb_pixel_t color_shadow = COL_MENUCONTENTDARK_PLUS_0); +}; + +#endif diff --git a/src/gui/components/cc_frm_header.h b/src/gui/components/cc_frm_header.h index 96b32f9c4..7756b269e 100644 --- a/src/gui/components/cc_frm_header.h +++ b/src/gui/components/cc_frm_header.h @@ -32,7 +32,7 @@ //! Sub class of CComponentsForm. Shows a header with prepared items. /*! -CComponentsHeader provides prepared items like icon, caption and context button icons +CComponentsHeader provides prepared items like icon, caption and context button icons, mostly for usage in menues or simple windows */ class CComponentsHeader : public CComponentsForm { @@ -176,9 +176,9 @@ class CComponentsHeader : public CComponentsForm virtual void paint(bool do_save_bg = CC_SAVE_SCREEN_YES); }; -//! Sub class of CComponentsHeader. Shows a header with prepared items. +//! Sub class of CComponentsHeader. /*! -CComponentsHeaderLocalized provides prepared items like icon, caption and context button icons +CComponentsHeaderLocalized provides prepared items like icon, caption and context button icons, mostly for usage in menues or simple windows Caption is defined with locales. */ class CComponentsHeaderLocalized : public CComponentsHeader @@ -194,28 +194,4 @@ class CComponentsHeaderLocalized : public CComponentsHeader fb_pixel_t color_shadow = COL_MENUCONTENTDARK_PLUS_0); }; - -/*! -CComponentsFooter provides prepared container for footer -Is mostly usable like a header but without caption, and context button icons. -*/ -class CComponentsFooter : public CComponentsHeader -{ - protected: - void initVarFooter( const int& x_pos, const int& y_pos, const int& w, const int& h = 0, - const int& buttons = 0, - bool has_shadow = CC_SHADOW_OFF, - fb_pixel_t color_frame = COL_MENUCONTENT_PLUS_6, - fb_pixel_t color_body = COL_INFOBAR_SHADOW_PLUS_1, - fb_pixel_t color_shadow = COL_MENUCONTENTDARK_PLUS_0); - public: - CComponentsFooter(); - CComponentsFooter( const int& x_pos, const int& y_pos, const int& w, const int& h = 0, - const int& buttons = 0, - bool has_shadow = CC_SHADOW_OFF, - fb_pixel_t color_frame = COL_MENUCONTENT_PLUS_6, - fb_pixel_t color_body = COL_INFOBAR_SHADOW_PLUS_1, - fb_pixel_t color_shadow = COL_MENUCONTENTDARK_PLUS_0); -}; - #endif diff --git a/src/gui/components/cc_frm_window.h b/src/gui/components/cc_frm_window.h index 43e22724f..74f26b4d1 100644 --- a/src/gui/components/cc_frm_window.h +++ b/src/gui/components/cc_frm_window.h @@ -27,6 +27,7 @@ #include "cc_frm.h" #include "cc_frm_icons.h" #include "cc_frm_header.h" +#include "cc_frm_footer.h" //! Sub class of CComponentsForm. Shows a window with prepared items. /*!