summaryrefslogtreecommitdiff
path: root/indra/newview/llsidetray.cpp
diff options
context:
space:
mode:
authorSteven Bennetts <steve@lindenlab.com>2009-07-21 00:59:14 +0000
committerSteven Bennetts <steve@lindenlab.com>2009-07-21 00:59:14 +0000
commitcef46d16453873691406c22be39ce0ee5e8076d1 (patch)
treed7df442ce4af8e8001d7e7bf5647f116b35f929e /indra/newview/llsidetray.cpp
parent73a97010e6c8c7874fdc1778ab46e492f77d9394 (diff)
merge https://svn.aws.productengine.com/secondlife/pe/stable-1/indra -r 1078-1091 -> viewer-2.0.0-3
Diffstat (limited to 'indra/newview/llsidetray.cpp')
-rw-r--r--indra/newview/llsidetray.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/indra/newview/llsidetray.cpp b/indra/newview/llsidetray.cpp
index d8be1386c3..37262b736e 100644
--- a/indra/newview/llsidetray.cpp
+++ b/indra/newview/llsidetray.cpp
@@ -36,7 +36,7 @@
#include "llsidetray.h"
#include "llviewerwindow.h"
-#include "llaccordionpanel.h"
+#include "llaccordionctrl.h"
#include "llfocusmgr.h"
#include "llrootview.h"
@@ -113,7 +113,7 @@ bool LLSideTray::instanceCreated ()
return sInstance!=0;
}
-LLSideTrayTab::LLSideTrayTab(const Params& params):mAccordionPanel(0)
+LLSideTrayTab::LLSideTrayTab(const Params& params):mAccordionCtrl(0)
{
mImagePath = params.image_path;
@@ -131,18 +131,18 @@ void LLSideTrayTab::addPanel(LLPanel* panel)
bool LLSideTrayTab::addChild(LLView* view, S32 tab_group)
{
- if(mAccordionPanel == 0)
+ if(mAccordionCtrl == 0)
{
- mAccordionPanel = new LLAccordionPanel();
- mAccordionPanel->setVisible(TRUE);
- LLPanel::addChild(mAccordionPanel,tab_group);
+ mAccordionCtrl = new LLAccordionCtrl();
+ mAccordionCtrl->setVisible(TRUE);
+ LLPanel::addChild(mAccordionCtrl,tab_group);
}
bool res = true;
if(TAB_PANEL_CAPTION_NAME != view->getName())//skip our caption panel
{
- mAccordionPanel->addCollapsibleCtrl(view);
+ mAccordionCtrl->addCollapsibleCtrl(view);
}
else
res = LLPanel::addChild(view,tab_group);
@@ -185,17 +185,17 @@ void LLSideTrayTab::arrange(S32 width, S32 height )
offset = title_panel->getRect().getHeight();
}
- LLRect sRect = mAccordionPanel->getRect();
+ LLRect sRect = mAccordionCtrl->getRect();
sRect.setLeftTopAndSize( splitter_margin, height - offset - splitter_margin, width - 2*splitter_margin, height - offset - 2*splitter_margin);
- mAccordionPanel->setRect(sRect);
+ mAccordionCtrl->setRect(sRect);
- mAccordionPanel->setMaxWidth(sRect.getWidth());
- mAccordionPanel->arrange();
+ mAccordionCtrl->setMaxWidth(sRect.getWidth());
+ mAccordionCtrl->arrange();
}
void LLSideTrayTab::reshape (S32 width, S32 height, BOOL called_from_parent )
{
- if(!mAccordionPanel)
+ if(!mAccordionCtrl)
return;
S32 offset = 0;
@@ -210,12 +210,12 @@ void LLSideTrayTab::reshape (S32 width, S32 height, BOOL called_from_parent )
- LLRect sRect = mAccordionPanel->getRect();
+ LLRect sRect = mAccordionCtrl->getRect();
sRect.setLeftTopAndSize( splitter_margin, height - offset - splitter_margin, width - 2*splitter_margin, height - offset - 2*splitter_margin);
- mAccordionPanel->setMaxWidth(sRect.getWidth());
- mAccordionPanel->reshape(sRect.getWidth(), sRect.getHeight());
+ mAccordionCtrl->setMaxWidth(sRect.getWidth());
+ mAccordionCtrl->reshape(sRect.getWidth(), sRect.getHeight());
- mAccordionPanel->setRect(sRect);
+ mAccordionCtrl->setRect(sRect);
}
@@ -231,7 +231,7 @@ void LLSideTrayTab::draw()
void LLSideTrayTab::onOpen (const LLSD& key)
{
- mAccordionPanel->onOpen(key);
+ mAccordionCtrl->onOpen(key);
}
LLSideTrayTab* LLSideTrayTab::createInstance ()