X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fprogress-bar%2Fprogress-bar-impl.h;h=31ae483119328c67924ef70608f2420606164c92;hp=5b0ffd2a1128a8385c650f74d00e75b8496ec2e5;hb=6dee0c77383cfa21c57099dd519ce4821a9d23b0;hpb=248c644059d4784ab65fe3d2690022c2888edd3b diff --git a/dali-toolkit/internal/controls/progress-bar/progress-bar-impl.h b/dali-toolkit/internal/controls/progress-bar/progress-bar-impl.h index 5b0ffd2..31ae483 100755 --- a/dali-toolkit/internal/controls/progress-bar/progress-bar-impl.h +++ b/dali-toolkit/internal/controls/progress-bar/progress-bar-impl.h @@ -18,11 +18,11 @@ * */ - // INTERNAL INCLUDES #include #include #include +#include #include namespace Dali @@ -46,11 +46,11 @@ class ProgressBar : public Control public: /** - * Create a new ProgressBar. - * + * Create a new ProgressBar with predefined style. + * @param[in] progressBarStyle A style value that determines the shape of the progress bar. * @return A public handle to the newly allocated ProgressBar. */ - static Dali::Toolkit::ProgressBar New(); + static Dali::Toolkit::ProgressBar New( DevelProgressBar::Style progressBarStyle = DevelProgressBar::Style::LINEAR ); public: @@ -233,6 +233,16 @@ private: bool GetPropertyMapForVisual( Property::Index visualIndex, Property::Map& retreivedMap ) const; /** + * Apply progress value to visual + */ + void ApplyProgressToVisual( float progress, Property::Index index, int depth ); + + /** + * Apply progress value to visual transform + */ + void ApplyProgressToVisualTransform( float progress, Vector2 trackSize, Property::Index index ); + + /** * Check if we should start animating */ virtual void OnStageConnection( int depth ); @@ -256,6 +266,9 @@ private: float mProgressValue; ///< Current value of ProgressBar float mSecondaryProgressValue; ///< Current loading value of ProgressBar bool mIndeterminate; ///< Whether the progress state is determined or not + Property::Map mTrackVisualMap; ///< To backup visual properties when switching determinate/indeterminate. + Property::Map mProgressVisualMap; ///< To backup visual properties when switching determinate/indeterminate. + Property::Map mSecondaryProgressVisualMap; ///< To backup visual properties when switching determinate/indeterminate. }; } // namespace Internal