00001 00032 #ifndef LL_LLSTATVIEW_H 00033 #define LL_LLSTATVIEW_H 00034 00035 #include "llstatbar.h" 00036 #include "llcontainerview.h" 00037 #include <vector> 00038 00039 class LLStatBar; 00040 00041 class LLStatView : public LLContainerView 00042 { 00043 public: 00044 LLStatView(const LLString& name, const LLString& label, const LLString& setting, const LLRect& rect); 00045 ~LLStatView(); 00046 00047 /* 00048 virtual void draw(); 00049 virtual void reshape(S32 width, S32 height, BOOL called_from_parent = TRUE); 00050 virtual LLRect getRequiredRect(); // Return the height of this object, given the set options. 00051 */ 00052 00053 LLStatBar *addStat(const LLString& name, LLStat *statp); 00054 LLStatBar *getStatBar(const LLString& name); 00055 00056 protected: 00057 typedef std::vector<LLStatBar *> sb_vector_t; 00058 sb_vector_t mStatBars; 00059 U32 mNumStatBars; 00060 LLString mSetting; 00061 }; 00062 #endif // LL_STATVIEW_