summaryrefslogtreecommitdiff
path: root/indra/newview/llbottomtray.cpp
diff options
context:
space:
mode:
authorRichard Nelson <richard@lindenlab.com>2009-08-04 01:12:59 +0000
committerRichard Nelson <richard@lindenlab.com>2009-08-04 01:12:59 +0000
commiteb853f55c07ae4a3c3f2aa05fbabcf2e4b4dc115 (patch)
tree7707fccb8d0946b6257d5ed7c5dfd3941c53eec0 /indra/newview/llbottomtray.cpp
parentdb5cda26676f376f18816013c0c5e3fbad5b20d0 (diff)
svn merge -r 128442:129343 svn+ssh://svn.lindenlab.com/svn/linden/branches/skinning/skinning-18 into svn+ssh://svn.lindenlab.com/svn/linden/branches/viewer/viewer-2.0.0-3
Diffstat (limited to 'indra/newview/llbottomtray.cpp')
-rw-r--r--indra/newview/llbottomtray.cpp36
1 files changed, 19 insertions, 17 deletions
diff --git a/indra/newview/llbottomtray.cpp b/indra/newview/llbottomtray.cpp
index 8e1ae7d4f2..9eb8369c4c 100644
--- a/indra/newview/llbottomtray.cpp
+++ b/indra/newview/llbottomtray.cpp
@@ -40,13 +40,14 @@
#include "llnearbychatbar.h"
#include "llsplitbutton.h"
#include "llfloatercamera.h"
+#include "llimpanel.h"
LLBottomTray::LLBottomTray(const LLSD&)
- : mChicletPanel(NULL)
- , mIMWell(NULL)
- , mSysWell(NULL)
- , mTalkBtn(NULL)
- , mNearbyChatBar(NULL)
+: mChicletPanel(NULL),
+ mIMWell(NULL),
+ mSysWell(NULL),
+ mTalkBtn(NULL),
+ mNearbyChatBar(NULL)
{
mFactoryMap["chat_bar"] = LLCallbackMap(LLBottomTray::createNearbyChatBar, NULL);
@@ -72,6 +73,13 @@ LLBottomTray::LLBottomTray(const LLSD&)
setFocusRoot(TRUE);
}
+BOOL LLBottomTray::postBuild()
+{
+ mNearbyChatBar = getChild<LLNearbyChatBar>("chat_bar");
+
+ return TRUE;
+}
+
LLBottomTray::~LLBottomTray()
{
if (!LLSingleton<LLIMMgr>::destroyed())
@@ -87,24 +95,18 @@ void LLBottomTray::onChicletClick(LLUICtrl* ctrl)
{
// Until you can type into an IM Window and have a conversation,
// still show the old communicate window
- LLFloaterReg::showInstance("communicate", chiclet->getSessionId());
- // DISABLED IN VIEWER-2 BRANCH UNTIL FEATURE IS DONE -- James
- //// Show after comm window so it is frontmost (and hence will not
- //// auto-hide)
- //LLIMFloater::show(chiclet->getSessionId());
+ //LLFloaterReg::showInstance("communicate", chiclet->getSessionId());
+
+ // Show after comm window so it is frontmost (and hence will not
+ // auto-hide)
+ LLIMFloater::show(chiclet->getSessionId());
chiclet->setCounter(0);
}
}
void* LLBottomTray::createNearbyChatBar(void* userdata)
{
- LLBottomTray *bt = LLBottomTray::getInstance();
- if (!bt)
- return NULL;
-
- bt->mNearbyChatBar = new LLNearbyChatBar();
-
- return bt->mNearbyChatBar;
+ return new LLNearbyChatBar();
}
//virtual