diff options
Diffstat (limited to 'linden/indra/newview/llstatusbar.h')
-rw-r--r-- | linden/indra/newview/llstatusbar.h | 127 |
1 files changed, 127 insertions, 0 deletions
diff --git a/linden/indra/newview/llstatusbar.h b/linden/indra/newview/llstatusbar.h new file mode 100644 index 0000000..d1f7d19 --- /dev/null +++ b/linden/indra/newview/llstatusbar.h | |||
@@ -0,0 +1,127 @@ | |||
1 | /** | ||
2 | * @file llstatusbar.h | ||
3 | * @brief LLStatusBar class definition | ||
4 | * | ||
5 | * Copyright (c) 2002-2007, Linden Research, Inc. | ||
6 | * | ||
7 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
8 | * to you under the terms of the GNU General Public License, version 2.0 | ||
9 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
10 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
11 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
12 | * online at http://secondlife.com/developers/opensource/gplv2 | ||
13 | * | ||
14 | * There are special exceptions to the terms and conditions of the GPL as | ||
15 | * it is applied to this Source Code. View the full text of the exception | ||
16 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
17 | * online at http://secondlife.com/developers/opensource/flossexception | ||
18 | * | ||
19 | * By copying, modifying or distributing this software, you acknowledge | ||
20 | * that you have read and understood your obligations described above, | ||
21 | * and agree to abide by those obligations. | ||
22 | * | ||
23 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
24 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
25 | * COMPLETENESS OR PERFORMANCE. | ||
26 | */ | ||
27 | |||
28 | #ifndef LL_LLSTATUSBAR_H | ||
29 | #define LL_LLSTATUSBAR_H | ||
30 | |||
31 | #include "llpanel.h" | ||
32 | |||
33 | // "Constants" loaded from settings.xml at start time | ||
34 | extern S32 STATUS_BAR_HEIGHT; | ||
35 | |||
36 | class LLButton; | ||
37 | class LLLineEditor; | ||
38 | class LLMessageSystem; | ||
39 | class LLTextBox; | ||
40 | class LLTextEditor; | ||
41 | class LLUICtrl; | ||
42 | class LLUUID; | ||
43 | class LLFrameTimer; | ||
44 | class LLStatGraph; | ||
45 | |||
46 | class LLStatusBar | ||
47 | : public LLPanel | ||
48 | { | ||
49 | public: | ||
50 | LLStatusBar(const std::string& name, const LLRect& rect ); | ||
51 | ~LLStatusBar(); | ||
52 | virtual BOOL postBuild(); | ||
53 | |||
54 | virtual EWidgetType getWidgetType() const; | ||
55 | virtual LLString getWidgetTag() const; | ||
56 | |||
57 | // OVERRIDES | ||
58 | virtual void draw(); | ||
59 | |||
60 | // MANIPULATORS | ||
61 | void setBalance(S32 balance); | ||
62 | void debitBalance(S32 debit); | ||
63 | void creditBalance(S32 credit); | ||
64 | |||
65 | void setHealth(S32 percent); | ||
66 | |||
67 | void setLandCredit(S32 credit); | ||
68 | void setLandCommitted(S32 committed); | ||
69 | |||
70 | void refresh(); | ||
71 | void setVisibleForMouselook(bool visible); | ||
72 | // some elements should hide in mouselook | ||
73 | |||
74 | // ACCESSORS | ||
75 | S32 getBalance() const; | ||
76 | S32 getHealth() const; | ||
77 | |||
78 | BOOL isUserTiered() const; | ||
79 | S32 getSquareMetersCredit() const; | ||
80 | S32 getSquareMetersCommitted() const; | ||
81 | S32 getSquareMetersLeft() const; | ||
82 | |||
83 | protected: | ||
84 | static void onClickParcelInfo(void*); | ||
85 | static void onClickBalance(void*); | ||
86 | static void onClickBuyCurrency(void*); | ||
87 | static void onClickRegionInfo(void*); | ||
88 | static void onClickHealth(void*); | ||
89 | static void onClickFly(void*); | ||
90 | static void onClickPush(void*); | ||
91 | static void onClickBuild(void*); | ||
92 | static void onClickScripts(void*); | ||
93 | static void onClickBuyLand(void*); | ||
94 | static void onClickScriptDebug(void*); | ||
95 | |||
96 | protected: | ||
97 | LLTextBox *mTextBalance; | ||
98 | LLTextBox *mTextHealth; | ||
99 | LLTextBox *mTextTime; | ||
100 | |||
101 | LLButton *mBtnScriptOut; | ||
102 | LLButton *mBtnHealth; | ||
103 | LLButton *mBtnFly; | ||
104 | LLButton *mBtnBuild; | ||
105 | LLButton *mBtnScripts; | ||
106 | LLButton *mBtnPush; | ||
107 | LLButton *mBtnBuyLand; | ||
108 | |||
109 | |||
110 | LLTextBox* mTextParcelName; | ||
111 | |||
112 | LLStatGraph *mSGBandwidth; | ||
113 | LLStatGraph *mSGPacketLoss; | ||
114 | |||
115 | LLButton *mBtnBuyCurrency; | ||
116 | |||
117 | S32 mBalance; | ||
118 | S32 mHealth; | ||
119 | S32 mSquareMetersCredit; | ||
120 | S32 mSquareMetersCommitted; | ||
121 | LLFrameTimer* mBalanceTimer; | ||
122 | LLFrameTimer* mHealthTimer; | ||
123 | }; | ||
124 | |||
125 | extern LLStatusBar *gStatusBar; | ||
126 | |||
127 | #endif | ||