aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelland.cpp
diff options
context:
space:
mode:
authorAimee Trescothick2008-09-22 02:01:57 -0500
committerJacek Antonelli2008-09-22 02:12:59 -0500
commit997fb0cbf21cc6b2f2ff8c8381de488eafff4c8d (patch)
tree2b0e069ec0d2d68740f6fcc3100f63e3322bf3f5 /linden/indra/newview/llpanelland.cpp
parentVWR-2331: Terraform tool variable "strength". (diff)
downloadmeta-impy-997fb0cbf21cc6b2f2ff8c8381de488eafff4c8d.zip
meta-impy-997fb0cbf21cc6b2f2ff8c8381de488eafff4c8d.tar.gz
meta-impy-997fb0cbf21cc6b2f2ff8c8381de488eafff4c8d.tar.bz2
meta-impy-997fb0cbf21cc6b2f2ff8c8381de488eafff4c8d.tar.xz
VWR-8430: Usability improvements to the land tools floater.
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpanelland.cpp26
1 files changed, 25 insertions, 1 deletions
diff --git a/linden/indra/newview/llpanelland.cpp b/linden/indra/newview/llpanelland.cpp
index be05703..1a7892d 100644
--- a/linden/indra/newview/llpanelland.cpp
+++ b/linden/indra/newview/llpanelland.cpp
@@ -37,10 +37,13 @@
37 37
38#include "llagent.h" 38#include "llagent.h"
39#include "llbutton.h" 39#include "llbutton.h"
40#include "llcheckboxctrl.h"
40#include "llfloaterland.h" 41#include "llfloaterland.h"
41#include "lltextbox.h" 42#include "lltextbox.h"
43#include "llviewercontrol.h"
42#include "llviewerparcelmgr.h" 44#include "llviewerparcelmgr.h"
43#include "llviewerregion.h" 45#include "llviewerregion.h"
46#include "llviewerwindow.h"
44#include "roles_constants.h" 47#include "roles_constants.h"
45 48
46#include "lluictrlfactory.h" 49#include "lluictrlfactory.h"
@@ -65,6 +68,10 @@ BOOL LLPanelLandInfo::postBuild()
65 childSetAction("button subdivide land",onClickDivide,this); 68 childSetAction("button subdivide land",onClickDivide,this);
66 childSetAction("button join land",onClickJoin,this); 69 childSetAction("button join land",onClickJoin,this);
67 childSetAction("button about land",onClickAbout,this); 70 childSetAction("button about land",onClickAbout,this);
71 childSetAction("button show owners help", onShowOwnersHelp, this);
72
73 mCheckShowOwners = getChild<LLCheckBoxCtrl>("checkbox show owners");
74 childSetValue("checkbox show owners", gSavedSettings.getBOOL("ShowParcelOwners"));
68 75
69 return TRUE; 76 return TRUE;
70} 77}
@@ -72,7 +79,8 @@ BOOL LLPanelLandInfo::postBuild()
72// Methods 79// Methods
73// 80//
74LLPanelLandInfo::LLPanelLandInfo(const std::string& name) 81LLPanelLandInfo::LLPanelLandInfo(const std::string& name)
75: LLPanel(name) 82: LLPanel(name),
83 mCheckShowOwners(NULL)
76{ 84{
77 if (!sInstance) 85 if (!sInstance)
78 { 86 {
@@ -255,3 +263,19 @@ void LLPanelLandInfo::onClickAbout(void*)
255 263
256 LLFloaterLand::showInstance(); 264 LLFloaterLand::showInstance();
257} 265}
266
267void LLPanelLandInfo::onShowOwnersHelp(void* user_data)
268{
269 LLPanelLandInfo* self = static_cast<LLPanelLandInfo*>(user_data);
270
271 const char* xml_alert = "ShowOwnersHelp";
272 LLAlertDialog* dialogp = gViewerWindow->alertXml(xml_alert);
273 if (dialogp)
274 {
275 LLFloater* root_floater = gFloaterView->getParentFloater(self);
276 if (root_floater)
277 {
278 root_floater->addDependentFloater(dialogp);
279 }
280 }
281}