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.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/linden/indra/newview/llfloatertools.cpp b/linden/indra/newview/llfloatertools.cpp
index 97a8db3..97150e3 100644
--- a/linden/indra/newview/llfloatertools.cpp
+++ b/linden/indra/newview/llfloatertools.cpp
@@ -194,12 +194,16 @@ BOOL LLFloaterTools::postBuild()
194 mBtnLand = getChild<LLButton>("button land" ); 194 mBtnLand = getChild<LLButton>("button land" );
195 childSetAction("button land",LLFloaterTools::setEditTool, (void*)LLToolSelectLand::getInstance()); 195 childSetAction("button land",LLFloaterTools::setEditTool, (void*)LLToolSelectLand::getInstance());
196 mTextStatus = getChild<LLTextBox>("text status"); 196 mTextStatus = getChild<LLTextBox>("text status");
197 mRadioZoom = getChild<LLCheckBoxCtrl>("radio zoom"); 197
198 childSetCommitCallback("slider zoom",commit_slider_zoom,this); 198 childSetCommitCallback("slider zoom",commit_slider_zoom,this);
199
200 mRadioZoom = getChild<LLCheckBoxCtrl>("radio zoom");
201 childSetCommitCallback("radio zoom",commit_radio_zoom,this);
199 mRadioOrbit = getChild<LLCheckBoxCtrl>("radio orbit"); 202 mRadioOrbit = getChild<LLCheckBoxCtrl>("radio orbit");
200 childSetCommitCallback("radio orbit",commit_radio_orbit,this); 203 childSetCommitCallback("radio orbit",commit_radio_orbit,this);
201 mRadioPan = getChild<LLCheckBoxCtrl>("radio pan"); 204 mRadioPan = getChild<LLCheckBoxCtrl>("radio pan");
202 childSetCommitCallback("radio pan",commit_radio_pan,this); 205 childSetCommitCallback("radio pan",commit_radio_pan,this);
206
203 mRadioMove = getChild<LLCheckBoxCtrl>("radio move"); 207 mRadioMove = getChild<LLCheckBoxCtrl>("radio move");
204 childSetCommitCallback("radio move",click_popup_grab_drag,this); 208 childSetCommitCallback("radio move",click_popup_grab_drag,this);
205 mRadioLift = getChild<LLCheckBoxCtrl>("radio lift"); 209 mRadioLift = getChild<LLCheckBoxCtrl>("radio lift");
@@ -492,6 +496,7 @@ void LLFloaterTools::dirty()
492// floater is closed. 496// floater is closed.
493void LLFloaterTools::resetToolState() 497void LLFloaterTools::resetToolState()
494{ 498{
499 gCameraBtnZoom = TRUE;
495 gCameraBtnOrbit = FALSE; 500 gCameraBtnOrbit = FALSE;
496 gCameraBtnPan = FALSE; 501 gCameraBtnPan = FALSE;
497 502
@@ -524,7 +529,8 @@ void LLFloaterTools::updatePopup(LLCoordGL center, MASK mask)
524 mRadioOrbit ->setVisible( focus_visible ); 529 mRadioOrbit ->setVisible( focus_visible );
525 mRadioPan ->setVisible( focus_visible ); 530 mRadioPan ->setVisible( focus_visible );
526 childSetVisible("slider zoom", focus_visible); 531 childSetVisible("slider zoom", focus_visible);
527 532 childSetEnabled("slider zoom", gCameraBtnZoom);
533
528 mRadioZoom ->set( !gCameraBtnOrbit && 534 mRadioZoom ->set( !gCameraBtnOrbit &&
529 !gCameraBtnPan && 535 !gCameraBtnPan &&
530 !(mask == MASK_ORBIT) && 536 !(mask == MASK_ORBIT) &&
@@ -867,18 +873,21 @@ void click_popup_grab_spin(LLUICtrl*, void*)
867 873
868void commit_radio_zoom(LLUICtrl *, void*) 874void commit_radio_zoom(LLUICtrl *, void*)
869{ 875{
876 gCameraBtnZoom = TRUE;
870 gCameraBtnOrbit = FALSE; 877 gCameraBtnOrbit = FALSE;
871 gCameraBtnPan = FALSE; 878 gCameraBtnPan = FALSE;
872} 879}
873 880
874void commit_radio_orbit(LLUICtrl *, void*) 881void commit_radio_orbit(LLUICtrl *, void*)
875{ 882{
883 gCameraBtnZoom = FALSE;
876 gCameraBtnOrbit = TRUE; 884 gCameraBtnOrbit = TRUE;
877 gCameraBtnPan = FALSE; 885 gCameraBtnPan = FALSE;
878} 886}
879 887
880void commit_radio_pan(LLUICtrl *, void*) 888void commit_radio_pan(LLUICtrl *, void*)
881{ 889{
890 gCameraBtnZoom = FALSE;
882 gCameraBtnOrbit = FALSE; 891 gCameraBtnOrbit = FALSE;
883 gCameraBtnPan = TRUE; 892 gCameraBtnPan = TRUE;
884} 893}