aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloatertools.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llfloatertools.cpp
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz
Second Life viewer sources 1.19.1.0
Diffstat (limited to 'linden/indra/newview/llfloatertools.cpp')
-rw-r--r--linden/indra/newview/llfloatertools.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/linden/indra/newview/llfloatertools.cpp b/linden/indra/newview/llfloatertools.cpp
index 6764ffe..ba4ff50 100644
--- a/linden/indra/newview/llfloatertools.cpp
+++ b/linden/indra/newview/llfloatertools.cpp
@@ -181,7 +181,7 @@ BOOL LLFloaterTools::postBuild()
181 // make sounds on visibility changes. 181 // make sounds on visibility changes.
182 setSoundFlags(LLView::SILENT); 182 setSoundFlags(LLView::SILENT);
183 183
184 mDragHandle->setEnabled( !gSavedSettings.getBOOL("ToolboxAutoMove") ); 184 getDragHandle()->setEnabled( !gSavedSettings.getBOOL("ToolboxAutoMove") );
185 185
186 LLRect rect; 186 LLRect rect;
187 mBtnFocus = LLUICtrlFactory::getButtonByName(this,"button focus");//btn; 187 mBtnFocus = LLUICtrlFactory::getButtonByName(this,"button focus");//btn;
@@ -317,14 +317,14 @@ BOOL LLFloaterTools::postBuild()
317 mTab->selectFirstTab(); 317 mTab->selectFirstTab();
318 } 318 }
319 319
320 mStatusText["rotate"] = childGetText("status_rotate"); 320 mStatusText["rotate"] = getString("status_rotate");
321 mStatusText["scale"] = childGetText("status_scale"); 321 mStatusText["scale"] = getString("status_scale");
322 mStatusText["move"] = childGetText("status_move"); 322 mStatusText["move"] = getString("status_move");
323 mStatusText["modifyland"] = childGetText("status_modifyland"); 323 mStatusText["modifyland"] = getString("status_modifyland");
324 mStatusText["camera"] = childGetText("status_camera"); 324 mStatusText["camera"] = getString("status_camera");
325 mStatusText["grab"] = childGetText("status_grab"); 325 mStatusText["grab"] = getString("status_grab");
326 mStatusText["place"] = childGetText("status_place"); 326 mStatusText["place"] = getString("status_place");
327 mStatusText["selectland"] = childGetText("status_selectland"); 327 mStatusText["selectland"] = getString("status_selectland");
328 328
329 return TRUE; 329 return TRUE;
330} 330}
@@ -396,7 +396,7 @@ LLFloaterTools::LLFloaterTools()
396 mTabLand(NULL), 396 mTabLand(NULL),
397 mDirty(TRUE) 397 mDirty(TRUE)
398{ 398{
399 mAutoFocus = FALSE; 399 setAutoFocus(FALSE);
400 LLCallbackMap::map_t factory_map; 400 LLCallbackMap::map_t factory_map;
401 factory_map["General"] = LLCallbackMap(createPanelPermissions, this);//LLPanelPermissions 401 factory_map["General"] = LLCallbackMap(createPanelPermissions, this);//LLPanelPermissions
402 factory_map["Object"] = LLCallbackMap(createPanelObject, this);//LLPanelObject 402 factory_map["Object"] = LLCallbackMap(createPanelObject, this);//LLPanelObject
@@ -442,7 +442,7 @@ void LLFloaterTools::setStatusText(const std::string& text)
442 442
443void LLFloaterTools::refresh() 443void LLFloaterTools::refresh()
444{ 444{
445 const S32 INFO_WIDTH = mRect.getWidth(); 445 const S32 INFO_WIDTH = getRect().getWidth();
446 const S32 INFO_HEIGHT = 384; 446 const S32 INFO_HEIGHT = 384;
447 LLRect object_info_rect(0, 0, INFO_WIDTH, -INFO_HEIGHT); 447 LLRect object_info_rect(0, 0, INFO_WIDTH, -INFO_HEIGHT);
448 BOOL all_volume = gSelectMgr->selectionAllPCode( LL_PCODE_VOLUME ); 448 BOOL all_volume = gSelectMgr->selectionAllPCode( LL_PCODE_VOLUME );
@@ -611,19 +611,19 @@ void LLFloaterTools::updatePopup(LLCoordGL center, MASK mask)
611 switch (mObjectSelection->getSelectType()) 611 switch (mObjectSelection->getSelectType())
612 { 612 {
613 case SELECT_TYPE_HUD: 613 case SELECT_TYPE_HUD:
614 mComboGridMode->add(childGetText("grid_screen_text")); 614 mComboGridMode->add(getString("grid_screen_text"));
615 mComboGridMode->add(childGetText("grid_local_text")); 615 mComboGridMode->add(getString("grid_local_text"));
616 //mComboGridMode->add(childGetText("grid_reference_text")); 616 //mComboGridMode->add(getString("grid_reference_text"));
617 break; 617 break;
618 case SELECT_TYPE_WORLD: 618 case SELECT_TYPE_WORLD:
619 mComboGridMode->add(childGetText("grid_world_text")); 619 mComboGridMode->add(getString("grid_world_text"));
620 mComboGridMode->add(childGetText("grid_local_text")); 620 mComboGridMode->add(getString("grid_local_text"));
621 mComboGridMode->add(childGetText("grid_reference_text")); 621 mComboGridMode->add(getString("grid_reference_text"));
622 break; 622 break;
623 case SELECT_TYPE_ATTACHMENT: 623 case SELECT_TYPE_ATTACHMENT:
624 mComboGridMode->add(childGetText("grid_attachment_text")); 624 mComboGridMode->add(getString("grid_attachment_text"));
625 mComboGridMode->add(childGetText("grid_local_text")); 625 mComboGridMode->add(getString("grid_local_text"));
626 mComboGridMode->add(childGetText("grid_reference_text")); 626 mComboGridMode->add(getString("grid_reference_text"));
627 break; 627 break;
628 } 628 }
629 629
@@ -805,12 +805,12 @@ void LLFloaterTools::showMore(BOOL show_more)
805 805
806 if (show_more) 806 if (show_more)
807 { 807 {
808 reshape( mRect.getWidth(), mLargeHeight, TRUE); 808 reshape( getRect().getWidth(), mLargeHeight, TRUE);
809 translate( 0, mSmallHeight - mLargeHeight ); 809 translate( 0, mSmallHeight - mLargeHeight );
810 } 810 }
811 else 811 else
812 { 812 {
813 reshape( mRect.getWidth(), mSmallHeight, TRUE); 813 reshape( getRect().getWidth(), mSmallHeight, TRUE);
814 translate( 0, mLargeHeight - mSmallHeight ); 814 translate( 0, mLargeHeight - mSmallHeight );
815 } 815 }
816 childSetVisible("button less", show_more); 816 childSetVisible("button less", show_more);