tasn pushed a commit to branch master.

http://git.enlightenment.org/bindings/cxx/eflxx.git/commit/?id=49720f6e6d60448ae56ffada792056f4c3444fd3

commit 49720f6e6d60448ae56ffada792056f4c3444fd3
Author: Andreas Volz <[email protected]>
Date:   Sun Nov 15 22:06:00 2009 +0000

    implement hideFormat extra
    
    
    SVN revision: 43720
---
 elementaryxx/include/elementaryxx/ElmProgressbar.h | 19 +++++++++++++++++++
 elementaryxx/src/ElmProgressbar.cpp                |  5 +++++
 2 files changed, 24 insertions(+)

diff --git a/elementaryxx/include/elementaryxx/ElmProgressbar.h 
b/elementaryxx/include/elementaryxx/ElmProgressbar.h
index d2d5068..9d97949 100644
--- a/elementaryxx/include/elementaryxx/ElmProgressbar.h
+++ b/elementaryxx/include/elementaryxx/ElmProgressbar.h
@@ -35,7 +35,26 @@ public:
   void setInverted (bool inverted);
   void setPulse (bool pulse);
   void pulse (bool state);
+  
+  /*!
+   * Set the format string of the unit area
+   *
+   * Sets the format string for the unit text. The unit text is provided a 
+   * floating point value, so the unit text can display up to 1 floating point 
+   * falue. Note that this is optional. Use a format string such as 
+   * "%1.2f meters" for example.
+   *
+   * @param format The format string for the units display
+   *
+   * @ingroup Progressbar
+   */
   void setUnitFormat (const std::string &format);
+  
+  /*
+   * Hide the unit area display
+   */
+  void hideUnitFormat ();
+  
   void setValue (double val);
   double getValue ();
 };
diff --git a/elementaryxx/src/ElmProgressbar.cpp 
b/elementaryxx/src/ElmProgressbar.cpp
index 76393d9..4d96acd 100644
--- a/elementaryxx/src/ElmProgressbar.cpp
+++ b/elementaryxx/src/ElmProgressbar.cpp
@@ -62,6 +62,11 @@ void ElmProgressbar::setUnitFormat (const std::string 
&format)
   elm_progressbar_unit_format_set (o, format.c_str ());
 }
 
+void ElmProgressbar::hideUnitFormat ()
+{
+  elm_progressbar_unit_format_set (o, NULL);
+}
+
 void ElmProgressbar::setValue (double val)
 {
   elm_progressbar_value_set (o, val);

-- 


Reply via email to