diff options
author | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
commit | ce28e056c20bf2723f565bbf464b87781ec248a2 (patch) | |
tree | ef7b0501c4de4b631a916305cbc2a5fdc125e52d /linden/indra/newview/llgivemoney.cpp | |
parent | Second Life viewer sources 1.19.1.4b (diff) | |
download | meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.zip meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.gz meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.bz2 meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.xz |
Second Life viewer sources 1.20.2
Diffstat (limited to 'linden/indra/newview/llgivemoney.cpp')
-rw-r--r-- | linden/indra/newview/llgivemoney.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/linden/indra/newview/llgivemoney.cpp b/linden/indra/newview/llgivemoney.cpp index 8abda4b..41b1c1e 100644 --- a/linden/indra/newview/llgivemoney.cpp +++ b/linden/indra/newview/llgivemoney.cpp | |||
@@ -47,7 +47,7 @@ | |||
47 | #include "llbutton.h" | 47 | #include "llbutton.h" |
48 | #include "llselectmgr.h" | 48 | #include "llselectmgr.h" |
49 | #include "lltransactiontypes.h" | 49 | #include "lltransactiontypes.h" |
50 | #include "llvieweruictrlfactory.h" | 50 | #include "lluictrlfactory.h" |
51 | 51 | ||
52 | ///---------------------------------------------------------------------------- | 52 | ///---------------------------------------------------------------------------- |
53 | /// Local function declarations, constants, enums, and typedefs | 53 | /// Local function declarations, constants, enums, and typedefs |
@@ -94,12 +94,12 @@ LLFloaterPay::LLFloaterPay(const std::string& name, | |||
94 | { | 94 | { |
95 | if (target_is_object) | 95 | if (target_is_object) |
96 | { | 96 | { |
97 | gUICtrlFactory->buildFloater(this,"floater_pay_object.xml"); | 97 | LLUICtrlFactory::getInstance()->buildFloater(this,"floater_pay_object.xml"); |
98 | mObjectSelection = gSelectMgr->getEditSelection(); | 98 | mObjectSelection = LLSelectMgr::getInstance()->getEditSelection(); |
99 | } | 99 | } |
100 | else | 100 | else |
101 | { | 101 | { |
102 | gUICtrlFactory->buildFloater(this,"floater_pay.xml"); | 102 | LLUICtrlFactory::getInstance()->buildFloater(this,"floater_pay.xml"); |
103 | } | 103 | } |
104 | 104 | ||
105 | 105 | ||
@@ -111,7 +111,7 @@ LLFloaterPay::LLFloaterPay(const std::string& name, | |||
111 | childSetAction("fastpay 1",&LLFloaterPay::onGive,info); | 111 | childSetAction("fastpay 1",&LLFloaterPay::onGive,info); |
112 | childSetVisible("fastpay 1", FALSE); | 112 | childSetVisible("fastpay 1", FALSE); |
113 | 113 | ||
114 | mQuickPayButton[i] = LLUICtrlFactory::getButtonByName(this, "fastpay 1"); | 114 | mQuickPayButton[i] = getChild<LLButton>("fastpay 1"); |
115 | mQuickPayInfo[i] = info; | 115 | mQuickPayInfo[i] = info; |
116 | ++i; | 116 | ++i; |
117 | 117 | ||
@@ -121,7 +121,7 @@ LLFloaterPay::LLFloaterPay(const std::string& name, | |||
121 | childSetAction("fastpay 5",&LLFloaterPay::onGive,info); | 121 | childSetAction("fastpay 5",&LLFloaterPay::onGive,info); |
122 | childSetVisible("fastpay 5", FALSE); | 122 | childSetVisible("fastpay 5", FALSE); |
123 | 123 | ||
124 | mQuickPayButton[i] = LLUICtrlFactory::getButtonByName(this, "fastpay 5"); | 124 | mQuickPayButton[i] = getChild<LLButton>("fastpay 5"); |
125 | mQuickPayInfo[i] = info; | 125 | mQuickPayInfo[i] = info; |
126 | ++i; | 126 | ++i; |
127 | 127 | ||
@@ -131,7 +131,7 @@ LLFloaterPay::LLFloaterPay(const std::string& name, | |||
131 | childSetAction("fastpay 10",&LLFloaterPay::onGive,info); | 131 | childSetAction("fastpay 10",&LLFloaterPay::onGive,info); |
132 | childSetVisible("fastpay 10", FALSE); | 132 | childSetVisible("fastpay 10", FALSE); |
133 | 133 | ||
134 | mQuickPayButton[i] = LLUICtrlFactory::getButtonByName(this, "fastpay 10"); | 134 | mQuickPayButton[i] = getChild<LLButton>("fastpay 10"); |
135 | mQuickPayInfo[i] = info; | 135 | mQuickPayInfo[i] = info; |
136 | ++i; | 136 | ++i; |
137 | 137 | ||
@@ -141,7 +141,7 @@ LLFloaterPay::LLFloaterPay(const std::string& name, | |||
141 | childSetAction("fastpay 20",&LLFloaterPay::onGive,info); | 141 | childSetAction("fastpay 20",&LLFloaterPay::onGive,info); |
142 | childSetVisible("fastpay 20", FALSE); | 142 | childSetVisible("fastpay 20", FALSE); |
143 | 143 | ||
144 | mQuickPayButton[i] = LLUICtrlFactory::getButtonByName(this, "fastpay 20"); | 144 | mQuickPayButton[i] = getChild<LLButton>("fastpay 20"); |
145 | mQuickPayInfo[i] = info; | 145 | mQuickPayInfo[i] = info; |
146 | ++i; | 146 | ++i; |
147 | 147 | ||
@@ -240,7 +240,7 @@ void LLFloaterPay::processPayPriceReply(LLMessageSystem* msg, void **userdata) | |||
240 | if (pay_button > 0) | 240 | if (pay_button > 0) |
241 | { | 241 | { |
242 | LLString button_str = "L$"; | 242 | LLString button_str = "L$"; |
243 | button_str += gResMgr->getMonetaryString( pay_button ); | 243 | button_str += LLResMgr::getInstance()->getMonetaryString( pay_button ); |
244 | 244 | ||
245 | self->mQuickPayButton[i]->setLabelSelected(button_str); | 245 | self->mQuickPayButton[i]->setLabelSelected(button_str); |
246 | self->mQuickPayButton[i]->setLabelUnselected(button_str); | 246 | self->mQuickPayButton[i]->setLabelUnselected(button_str); |
@@ -261,8 +261,8 @@ void LLFloaterPay::processPayPriceReply(LLMessageSystem* msg, void **userdata) | |||
261 | 261 | ||
262 | // build a string containing the maximum value and calc nerw button width from it. | 262 | // build a string containing the maximum value and calc nerw button width from it. |
263 | LLString balance_str = "L$"; | 263 | LLString balance_str = "L$"; |
264 | balance_str += gResMgr->getMonetaryString( max_pay_amount ); | 264 | balance_str += LLResMgr::getInstance()->getMonetaryString( max_pay_amount ); |
265 | const LLFontGL* font = gResMgr->getRes(LLFONT_SANSSERIF); | 265 | const LLFontGL* font = LLResMgr::getInstance()->getRes(LLFONT_SANSSERIF); |
266 | S32 new_button_width = font->getWidth( LLString(balance_str)); | 266 | S32 new_button_width = font->getWidth( LLString(balance_str)); |
267 | new_button_width += ( 12 + 12 ); // padding | 267 | new_button_width += ( 12 + 12 ); // padding |
268 | 268 | ||
@@ -379,7 +379,7 @@ void LLFloaterPay::finishPayUI(const LLUUID& target_id, BOOL is_group) | |||
379 | 379 | ||
380 | childSetFocus("amount", TRUE); | 380 | childSetFocus("amount", TRUE); |
381 | 381 | ||
382 | LLLineEditor* amount = LLUICtrlFactory::getLineEditorByName(this, "amount"); | 382 | LLLineEditor* amount = getChild<LLLineEditor>("amount"); |
383 | amount->selectAll(); | 383 | amount->selectAll(); |
384 | mTargetIsGroup = is_group; | 384 | mTargetIsGroup = is_group; |
385 | } | 385 | } |