From b27264d51ad3281ecf169e84b3d5940aba53bfc0 Mon Sep 17 00:00:00 2001 From: thilo Date: Thu, 31 Mar 2011 13:44:39 +0000 Subject: [PATCH] *neutrino menu-classes: style correcture in CAbstractMenuOptionChooser contructor and destructors added, init member variables git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1362 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/gui/widget/menue.h | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/src/gui/widget/menue.h b/src/gui/widget/menue.h index 0350afeae..aba349b05 100644 --- a/src/gui/widget/menue.h +++ b/src/gui/widget/menue.h @@ -217,20 +217,23 @@ class CMenuForwarderNonLocalized : public CMenuForwarder class CAbstractMenuOptionChooser : public CMenuItem { - protected: - neutrino_locale_t optionName; - int height; - int * optionValue; + protected: + neutrino_locale_t optionName; + int height; + int * optionValue; - int getHeight(void) const - { - return height; - } + int getHeight(void) const{return height;} - bool isSelectable(void) const + bool isSelectable(void) const{return active;} + public: + CAbstractMenuOptionChooser() { - return active; - } + optionName = NONEXISTANT_LOCALE; + height = 0; + optionValue = NULL; + }; + ~CAbstractMenuOptionChooser(){} + }; class CMenuOptionNumberChooser : public CAbstractMenuOptionChooser