From 241a446224013f76fee83e786568862068b60309 Mon Sep 17 00:00:00 2001 From: Todd Stinson Date: Tue, 10 Jul 2012 12:30:15 -0700 Subject: Adding the example use type labels to the pathfinding linksets floater. --- indra/newview/llfloaterpathfindinglinksets.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'indra/newview/llfloaterpathfindinglinksets.cpp') diff --git a/indra/newview/llfloaterpathfindinglinksets.cpp b/indra/newview/llfloaterpathfindinglinksets.cpp index 9516b4b0c1..bb0ac8f4b9 100644 --- a/indra/newview/llfloaterpathfindinglinksets.cpp +++ b/indra/newview/llfloaterpathfindinglinksets.cpp @@ -86,12 +86,16 @@ LLFloaterPathfindingLinksets::LLFloaterPathfindingLinksets(const LLSD& pSeed) mEditLinksetUseDynamicPhantom(NULL), mLabelWalkabilityCoefficients(NULL), mLabelEditA(NULL), + mLabelSuggestedUseA(NULL), mEditA(NULL), mLabelEditB(NULL), + mLabelSuggestedUseB(NULL), mEditB(NULL), mLabelEditC(NULL), + mLabelSuggestedUseC(NULL), mEditC(NULL), mLabelEditD(NULL), + mLabelSuggestedUseD(NULL), mEditD(NULL), mApplyEditsButton(NULL), mBeaconColor() @@ -158,6 +162,9 @@ BOOL LLFloaterPathfindingLinksets::postBuild() mLabelEditA = findChild("edit_a_label"); llassert(mLabelEditA != NULL); + mLabelSuggestedUseA = findChild("suggested_use_a_label"); + llassert(mLabelSuggestedUseA != NULL); + mEditA = findChild("edit_a_value"); llassert(mEditA != NULL); mEditA->setPrevalidate(LLTextValidate::validateNonNegativeS32); @@ -166,6 +173,9 @@ BOOL LLFloaterPathfindingLinksets::postBuild() mLabelEditB = findChild("edit_b_label"); llassert(mLabelEditB != NULL); + mLabelSuggestedUseB = findChild("suggested_use_b_label"); + llassert(mLabelSuggestedUseB != NULL); + mEditB = findChild("edit_b_value"); llassert(mEditB != NULL); mEditB->setPrevalidate(LLTextValidate::validateNonNegativeS32); @@ -174,6 +184,9 @@ BOOL LLFloaterPathfindingLinksets::postBuild() mLabelEditC = findChild("edit_c_label"); llassert(mLabelEditC != NULL); + mLabelSuggestedUseC = findChild("suggested_use_c_label"); + llassert(mLabelSuggestedUseC != NULL); + mEditC = findChild("edit_c_value"); llassert(mEditC != NULL); mEditC->setPrevalidate(LLTextValidate::validateNonNegativeS32); @@ -182,6 +195,9 @@ BOOL LLFloaterPathfindingLinksets::postBuild() mLabelEditD = findChild("edit_d_label"); llassert(mLabelEditD != NULL); + mLabelSuggestedUseD = findChild("suggested_use_d_label"); + llassert(mLabelSuggestedUseD != NULL); + mEditD = findChild("edit_d_value"); llassert(mEditD != NULL); mEditD->setPrevalidate(LLTextValidate::validateNonNegativeS32); @@ -500,6 +516,10 @@ void LLFloaterPathfindingLinksets::updateStateOnEditFields() mLabelEditB->setEnabled(isEditEnabled); mLabelEditC->setEnabled(isEditEnabled); mLabelEditD->setEnabled(isEditEnabled); + mLabelSuggestedUseA->setEnabled(isEditEnabled); + mLabelSuggestedUseB->setEnabled(isEditEnabled); + mLabelSuggestedUseC->setEnabled(isEditEnabled); + mLabelSuggestedUseD->setEnabled(isEditEnabled); mEditA->setEnabled(isEditEnabled); mEditB->setEnabled(isEditEnabled); mEditC->setEnabled(isEditEnabled); -- cgit v1.2.3