diff options
| author | Bryan O'Sullivan <bos@lindenlab.com> | 2009-08-31 13:47:47 -0700 |
|---|---|---|
| committer | Bryan O'Sullivan <bos@lindenlab.com> | 2009-08-31 13:47:47 -0700 |
| commit | 30ff6cabd61f2f083df5df1e6e70cc94742af477 (patch) | |
| tree | 631935f1cf59d19a91cdad65e9a75fe825afda7d /indra/llui/llprogressbar.h | |
| parent | ff11d74820c89822cd067b51727d9df1dc87d0d0 (diff) | |
| parent | 3ac3a4b206c08ed06b889bdaa24074b6aa0e020a (diff) | |
Merge with trunk
Diffstat (limited to 'indra/llui/llprogressbar.h')
| -rw-r--r-- | indra/llui/llprogressbar.h | 39 |
1 files changed, 17 insertions, 22 deletions
diff --git a/indra/llui/llprogressbar.h b/indra/llui/llprogressbar.h index 00ad61d540..b6a5b0400d 100644 --- a/indra/llui/llprogressbar.h +++ b/indra/llui/llprogressbar.h @@ -40,37 +40,32 @@ class LLProgressBar : public LLView { public: - LLProgressBar(const std::string& name, const LLRect &rect); - virtual ~LLProgressBar(); - - void setPercent(const F32 percent); + struct Params : public LLInitParam::Block<Params, LLView::Params> + { + Optional<LLUIImage*> image_bar, + image_fill; - void setImageBar(const std::string &bar_name); - void setImageShadow(const std::string &shadow_name); + Optional<LLUIColor> color_bar, + color_bg; - void setColorBar(const LLColor4 &c); - void setColorBar2(const LLColor4 &c); - void setColorShadow(const LLColor4 &c); - void setColorBackground(const LLColor4 &c); + Params(); + }; + LLProgressBar(const Params&); + virtual ~LLProgressBar(); - static LLView* fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory); + void setPercent(const F32 percent); /*virtual*/ void draw(); -protected: +private: F32 mPercentDone; - LLPointer<LLImageGL> mImageBar; - //LLUUID mImageBarID; - //LLString mImageBarName; - LLColor4 mColorBar; - LLColor4 mColorBar2; + LLPointer<LLUIImage> mImageBar; + LLUIColor mColorBar; - LLPointer<LLImageGL> mImageShadow; - //LLUUID mImageShadowID; - //LLString mImageShadowName; - LLColor4 mColorShadow; - LLColor4 mColorBackground; + LLUIColor mColorBackground; + + LLPointer<LLUIImage> mImageFill; }; #endif // LL_LLPROGRESSBAR_H |
