settings: add SetLabel() and SetHelp() to CSetting, CSettingCategory and CSettingSection
authormontellese <montellese@xbmc.org>
Fri, 25 Oct 2013 16:40:54 +0000 (18:40 +0200)
committermontellese <montellese@xbmc.org>
Thu, 31 Oct 2013 21:54:17 +0000 (22:54 +0100)
xbmc/settings/Setting.h
xbmc/settings/SettingSection.h

index 7c99709..b8fbd2b 100644 (file)
@@ -92,7 +92,9 @@ public:
   virtual void Reset() = 0;
 
   int GetLabel() const { return m_label; }
+  void SetLabel(int label) { m_label = label; }
   int GetHelp() const { return m_help; }
+  void SetHelp(int help) { m_help = help; }
   bool IsEnabled() const;
   const std::string& GetParent() const { return m_parentSetting; }
   SettingLevel GetLevel() const { return m_level; }
index 81cc514..359e5b8 100644 (file)
@@ -99,12 +99,24 @@ public:
    */
   const int GetLabel() const { return m_label; }
   /*!
+   \brief Sets the localizeable label ID of the setting category.
+
+   \param label Localizeable label ID of the setting category
+   */
+  void SetLabel(int label) { m_label = label; }
+  /*!
    \brief Gets the localizeable help ID of the setting category.
 
    \return Localizeable help ID of the setting category
    */
   const int GetHelp() const { return m_help; }
   /*!
+   \brief Sets the localizeable help ID of the setting category.
+
+   \param label Localizeable help ID of the setting category
+   */
+  void SetHelp(int help) { m_help = help; }
+  /*!
    \brief Gets the full list of setting groups belonging to the setting
    category.
 
@@ -165,12 +177,24 @@ public:
    */
   const int GetLabel() const { return m_label; }
   /*!
+   \brief Sets the localizeable label ID of the setting section.
+
+   \param label Localizeable label ID of the setting section
+   */
+  void SetLabel(int label) { m_label = label; }
+  /*!
    \brief Gets the localizeable help ID of the setting section.
 
    \return Localizeable help ID of the setting section
    */
   const int GetHelp() const { return m_help; }
   /*!
+   \brief Sets the localizeable help ID of the setting section.
+
+   \param label Localizeable help ID of the setting section
+   */
+  void SetHelp(int help) { m_help = help; }
+  /*!
    \brief Gets the full list of setting categories belonging to the setting
    section.