aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpreviewanim.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:42 -0500
committerJacek Antonelli2008-08-15 23:45:42 -0500
commitce28e056c20bf2723f565bbf464b87781ec248a2 (patch)
treeef7b0501c4de4b631a916305cbc2a5fdc125e52d /linden/indra/newview/llpreviewanim.cpp
parentSecond Life viewer sources 1.19.1.4b (diff)
downloadmeta-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/llpreviewanim.cpp')
-rw-r--r--linden/indra/newview/llpreviewanim.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/newview/llpreviewanim.cpp b/linden/indra/newview/llpreviewanim.cpp
index ff8b3b5..c7b1dc7 100644
--- a/linden/indra/newview/llpreviewanim.cpp
+++ b/linden/indra/newview/llpreviewanim.cpp
@@ -42,14 +42,14 @@
42#include "llfilepicker.h" 42#include "llfilepicker.h"
43#include "lllineeditor.h" 43#include "lllineeditor.h"
44#include "lluictrlfactory.h" 44#include "lluictrlfactory.h"
45#include "llvieweruictrlfactory.h" 45#include "lluictrlfactory.h"
46 46
47extern LLAgent gAgent; 47extern LLAgent gAgent;
48 48
49LLPreviewAnim::LLPreviewAnim(const std::string& name, const LLRect& rect, const std::string& title, const LLUUID& item_uuid, const S32& activate, const LLUUID& object_uuid ) : 49LLPreviewAnim::LLPreviewAnim(const std::string& name, const LLRect& rect, const std::string& title, const LLUUID& item_uuid, const S32& activate, const LLUUID& object_uuid ) :
50 LLPreview( name, rect, title, item_uuid, object_uuid) 50 LLPreview( name, rect, title, item_uuid, object_uuid)
51{ 51{
52 gUICtrlFactory->buildFloater(this,"floater_preview_animation.xml"); 52 LLUICtrlFactory::getInstance()->buildFloater(this,"floater_preview_animation.xml");
53 53
54 childSetAction("Anim play btn",playAnim,this); 54 childSetAction("Anim play btn",playAnim,this);
55 childSetAction("Anim audition btn",auditionAnim,this); 55 childSetAction("Anim audition btn",auditionAnim,this);
@@ -116,7 +116,7 @@ void LLPreviewAnim::playAnim( void *userdata )
116 { 116 {
117 LLUUID itemID=item->getAssetUUID(); 117 LLUUID itemID=item->getAssetUUID();
118 118
119 LLButton* btn = LLUICtrlFactory::getButtonByName(self, "Anim play btn"); 119 LLButton* btn = self->getChild<LLButton>("Anim play btn");
120 if (btn) 120 if (btn)
121 { 121 {
122 btn->toggleState(); 122 btn->toggleState();
@@ -153,7 +153,7 @@ void LLPreviewAnim::auditionAnim( void *userdata )
153 { 153 {
154 LLUUID itemID=item->getAssetUUID(); 154 LLUUID itemID=item->getAssetUUID();
155 155
156 LLButton* btn = LLUICtrlFactory::getButtonByName(self, "Anim audition btn"); 156 LLButton* btn = self->getChild<LLButton>("Anim audition btn");
157 if (btn) 157 if (btn)
158 { 158 {
159 btn->toggleState(); 159 btn->toggleState();