aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloatertools.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llfloatertools.cpp')
-rw-r--r--linden/indra/newview/llfloatertools.cpp41
1 files changed, 25 insertions, 16 deletions
diff --git a/linden/indra/newview/llfloatertools.cpp b/linden/indra/newview/llfloatertools.cpp
index 9ce5d35..1498d4a 100644
--- a/linden/indra/newview/llfloatertools.cpp
+++ b/linden/indra/newview/llfloatertools.cpp
@@ -83,13 +83,13 @@
83LLFloaterTools *gFloaterTools = NULL; 83LLFloaterTools *gFloaterTools = NULL;
84 84
85 85
86const LLString PANEL_NAMES[LLFloaterTools::PANEL_COUNT] = 86const std::string PANEL_NAMES[LLFloaterTools::PANEL_COUNT] =
87{ 87{
88 LLString("General"), // PANEL_GENERAL, 88 std::string("General"), // PANEL_GENERAL,
89 LLString("Object"), // PANEL_OBJECT, 89 std::string("Object"), // PANEL_OBJECT,
90 LLString("Features"), // PANEL_FEATURES, 90 std::string("Features"), // PANEL_FEATURES,
91 LLString("Texture"), // PANEL_FACE, 91 std::string("Texture"), // PANEL_FACE,
92 LLString("Content"), // PANEL_CONTENTS, 92 std::string("Content"), // PANEL_CONTENTS,
93}; 93};
94 94
95// Local prototypes 95// Local prototypes
@@ -159,7 +159,7 @@ void* LLFloaterTools::createPanelContents(void* data)
159void* LLFloaterTools::createPanelContentsInventory(void* data) 159void* LLFloaterTools::createPanelContentsInventory(void* data)
160{ 160{
161 LLFloaterTools* floater = (LLFloaterTools*)data; 161 LLFloaterTools* floater = (LLFloaterTools*)data;
162 floater->mPanelContents->mPanelInventory = new LLPanelInventory("ContentsInventory", LLRect()); 162 floater->mPanelContents->mPanelInventory = new LLPanelInventory(std::string("ContentsInventory"), LLRect());
163 return floater->mPanelContents->mPanelInventory; 163 return floater->mPanelContents->mPanelInventory;
164} 164}
165 165
@@ -167,7 +167,7 @@ void* LLFloaterTools::createPanelContentsInventory(void* data)
167void* LLFloaterTools::createPanelLandInfo(void* data) 167void* LLFloaterTools::createPanelLandInfo(void* data)
168{ 168{
169 LLFloaterTools* floater = (LLFloaterTools*)data; 169 LLFloaterTools* floater = (LLFloaterTools*)data;
170 floater->mPanelLandInfo = new LLPanelLandInfo("land info panel"); 170 floater->mPanelLandInfo = new LLPanelLandInfo(std::string("land info panel"));
171 return floater->mPanelLandInfo; 171 return floater->mPanelLandInfo;
172} 172}
173 173
@@ -237,7 +237,7 @@ BOOL LLFloaterTools::postBuild()
237 // Create Buttons 237 // Create Buttons
238 // 238 //
239 239
240 static const LLString toolNames[]={ 240 static const std::string toolNames[]={
241 "ToolCube", 241 "ToolCube",
242 "ToolPrism", 242 "ToolPrism",
243 "ToolPyramid", 243 "ToolPyramid",
@@ -304,11 +304,14 @@ BOOL LLFloaterTools::postBuild()
304 childSetCommitCallback("radio revert",click_popup_dozer_mode, (void*)5); 304 childSetCommitCallback("radio revert",click_popup_dozer_mode, (void*)5);
305 mBtnApplyToSelection = getChild<LLButton>("button apply to selection"); 305 mBtnApplyToSelection = getChild<LLButton>("button apply to selection");
306 childSetAction("button apply to selection",click_apply_to_selection, (void*)0); 306 childSetAction("button apply to selection",click_apply_to_selection, (void*)0);
307 mCheckShowOwners = getChild<LLCheckBoxCtrl>("checkbox show owners");
308 childSetValue("checkbox show owners",gSavedSettings.getBOOL("ShowParcelOwners"));
307 309
308 mSliderDozerSize = getChild<LLSlider>("slider brush size"); 310 mSliderDozerSize = getChild<LLSlider>("slider brush size");
309 childSetCommitCallback("slider brush size", commit_slider_dozer_size, (void*)0); 311 childSetCommitCallback("slider brush size", commit_slider_dozer_size, (void*)0);
310 childSetValue( "slider brush size", gSavedSettings.getS32("LandBrushSize")); 312 childSetValue( "slider brush size", gSavedSettings.getS32("LandBrushSize"));
311 313
314
312 mSliderDozerForce = getChild<LLSlider>("slider force"); 315 mSliderDozerForce = getChild<LLSlider>("slider force");
313 childSetCommitCallback("slider force",commit_slider_dozer_force, (void*)0); 316 childSetCommitCallback("slider force",commit_slider_dozer_force, (void*)0);
314 // the setting stores the actual force multiplier, but the slider is logarithmic, so we convert here 317 // the setting stores the actual force multiplier, but the slider is logarithmic, so we convert here
@@ -341,7 +344,7 @@ BOOL LLFloaterTools::postBuild()
341// Create the popupview with a dummy center. It will be moved into place 344// Create the popupview with a dummy center. It will be moved into place
342// during LLViewerWindow's per-frame hover processing. 345// during LLViewerWindow's per-frame hover processing.
343LLFloaterTools::LLFloaterTools() 346LLFloaterTools::LLFloaterTools()
344: LLFloater("toolbox floater"), 347: LLFloater(std::string("toolbox floater")),
345 mBtnFocus(NULL), 348 mBtnFocus(NULL),
346 mBtnMove(NULL), 349 mBtnMove(NULL),
347 mBtnEdit(NULL), 350 mBtnEdit(NULL),
@@ -392,6 +395,8 @@ LLFloaterTools::LLFloaterTools()
392 mSliderDozerSize(NULL), 395 mSliderDozerSize(NULL),
393 mSliderDozerForce(NULL), 396 mSliderDozerForce(NULL),
394 mBtnApplyToSelection(NULL), 397 mBtnApplyToSelection(NULL),
398 mCheckShowOwners(NULL),
399
395 400
396 mTab(NULL), 401 mTab(NULL),
397 mPanelPermissions(NULL), 402 mPanelPermissions(NULL),
@@ -741,10 +746,14 @@ void LLFloaterTools::updatePopup(LLCoordGL center, MASK mask)
741 childSetVisible("Brush:", land_visible); 746 childSetVisible("Brush:", land_visible);
742 childSetVisible("Brush Size:", land_visible); 747 childSetVisible("Brush Size:", land_visible);
743 } 748 }
749 if (mCheckShowOwners)
750 {
751 mCheckShowOwners ->setVisible( land_visible );
752 }
744 if (mSliderDozerForce) 753 if (mSliderDozerForce)
745 { 754 {
746 mSliderDozerForce ->setVisible( land_visible ); 755 mSliderDozerForce ->setVisible( land_visible );
747 childSetVisible("Force:", land_visible); 756 childSetVisible("Strength:", land_visible);
748 } 757 }
749 758
750 // 759 //
@@ -770,8 +779,8 @@ void LLFloaterTools::onOpen()
770 mParcelSelection = LLViewerParcelMgr::getInstance()->getFloatingParcelSelection(); 779 mParcelSelection = LLViewerParcelMgr::getInstance()->getFloatingParcelSelection();
771 mObjectSelection = LLSelectMgr::getInstance()->getEditSelection(); 780 mObjectSelection = LLSelectMgr::getInstance()->getEditSelection();
772 781
773 gMenuBarView->setItemVisible("Tools", TRUE); 782 // gMenuBarView->setItemVisible(std::string("Tools"), TRUE);
774 gMenuBarView->arrange(); 783 // gMenuBarView->arrange();
775} 784}
776 785
777// virtual 786// virtual
@@ -804,8 +813,8 @@ void LLFloaterTools::onClose(bool app_quitting)
804 // so manually reset tool to default (pie menu tool) 813 // so manually reset tool to default (pie menu tool)
805 LLToolMgr::getInstance()->getCurrentToolset()->selectFirstTool(); 814 LLToolMgr::getInstance()->getCurrentToolset()->selectFirstTool();
806 815
807 gMenuBarView->setItemVisible("Tools", FALSE); 816 // gMenuBarView->setItemVisible(std::string("Tools"), FALSE);
808 gMenuBarView->arrange(); 817 // gMenuBarView->arrange();
809} 818}
810 819
811void LLFloaterTools::showMore(BOOL show_more) 820void LLFloaterTools::showMore(BOOL show_more)
@@ -995,7 +1004,7 @@ void LLFloaterTools::setObjectType( void* data )
995 LLPCode pcode = *(LLPCode*) data; 1004 LLPCode pcode = *(LLPCode*) data;
996 LLToolPlacer::setObjectType( pcode ); 1005 LLToolPlacer::setObjectType( pcode );
997 gSavedSettings.setBOOL("CreateToolCopySelection", FALSE); 1006 gSavedSettings.setBOOL("CreateToolCopySelection", FALSE);
998 gViewerWindow->setMouseCapture(NULL); 1007 gFocusMgr.setMouseCapture(NULL);
999} 1008}
1000 1009
1001// static 1010// static