From 32ca70c729b748cfc3c62438aa77b8f30b0ec6ac Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Thu, 17 Feb 2022 13:12:10 +0100 Subject: [PATCH] cc_frm_footer: add sizemode als default paramter to constructor Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/aeec949f1425fb023d99aeb38ffa83dc0e649959 Author: Thilo Graf Date: 2022-02-17 (Thu, 17 Feb 2022) --- src/gui/components/cc_frm_footer.cpp | 4 ++-- src/gui/components/cc_frm_footer.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/components/cc_frm_footer.cpp b/src/gui/components/cc_frm_footer.cpp index e1e2bad87..40e0dfb27 100644 --- a/src/gui/components/cc_frm_footer.cpp +++ b/src/gui/components/cc_frm_footer.cpp @@ -35,10 +35,10 @@ using namespace std; //------------------------------------------------------------------------------------------------------- //sub class CComponentsFooter inherit from CComponentsHeader -CComponentsFooter::CComponentsFooter(CComponentsForm* parent):CCButtonSelect() +CComponentsFooter::CComponentsFooter(CComponentsForm* parent, int sizeMode):CCButtonSelect() { //CComponentsFooter - initVarFooter(1, 1, 0, 0, 0, parent, CC_SHADOW_OFF, COL_FRAME_PLUS_0, COL_MENUFOOT_PLUS_0, COL_SHADOW_PLUS_0, CC_HEADER_SIZE_LARGE); + initVarFooter(1, 1, 0, 0, 0, parent, CC_SHADOW_OFF, COL_FRAME_PLUS_0, COL_MENUFOOT_PLUS_0, COL_SHADOW_PLUS_0, sizeMode); } CComponentsFooter::CComponentsFooter( const int& x_pos, const int& y_pos, const int& w, const int& h, diff --git a/src/gui/components/cc_frm_footer.h b/src/gui/components/cc_frm_footer.h index bdad1a427..6d36ef1e9 100644 --- a/src/gui/components/cc_frm_footer.h +++ b/src/gui/components/cc_frm_footer.h @@ -76,7 +76,7 @@ class CComponentsFooter : public CComponentsHeader, public CCButtonSelect int initButtonContainer(const int& chain_width); public: - CComponentsFooter(CComponentsForm *parent = NULL); + CComponentsFooter(CComponentsForm *parent = NULL, int sizeMode = CC_HEADER_SIZE_LARGE); CComponentsFooter( const int& x_pos, const int& y_pos, const int& w, const int& h = 0, const int& buttons = 0, CComponentsForm *parent = NULL,