summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Kolb <skolb@lindenlab.com>2007-09-11 20:48:08 +0000
committerSam Kolb <skolb@lindenlab.com>2007-09-11 20:48:08 +0000
commit55e52f363195ca7428a2b3773d8488d09e62b04d (patch)
treea2622bb2524f8c110a5c5c1d09ecc5d2307c16a2
parent96830697b2f3bb8d1d7e1c4a3a6872845a38926c (diff)
Merge sl-search-m0 back into release
-rw-r--r--indra/newview/llfloaterland.cpp3
-rw-r--r--indra/newview/llfloaterland.h2
-rw-r--r--indra/newview/llpanelgroupgeneral.cpp14
-rw-r--r--indra/newview/llpanelpermissions.cpp35
-rw-r--r--indra/newview/llpanelpermissions.h3
5 files changed, 30 insertions, 27 deletions
diff --git a/indra/newview/llfloaterland.cpp b/indra/newview/llfloaterland.cpp
index aa9a06555c..e0ceedf0f7 100644
--- a/indra/newview/llfloaterland.cpp
+++ b/indra/newview/llfloaterland.cpp
@@ -367,7 +367,8 @@ BOOL LLPanelLandGeneral::postBuild()
childSetUserData("Name", this);
- mEditDesc = LLUICtrlFactory::getLineEditorByName(this, "Description");
+ mEditDesc = LLUICtrlFactory::getTextEditorByName(this, "Description");
+ mEditDesc->setCommitOnFocusLost(TRUE);
mEditDesc->setCommitCallback(onCommitAny);
childSetPrevalidate("Description", LLLineEditor::prevalidatePrintableNotPipe);
childSetUserData("Description", this);
diff --git a/indra/newview/llfloaterland.h b/indra/newview/llfloaterland.h
index 6e8e525e0d..ff9c10fab2 100644
--- a/indra/newview/llfloaterland.h
+++ b/indra/newview/llfloaterland.h
@@ -154,7 +154,7 @@ protected:
LLTextBox* mLabelName;
LLLineEditor* mEditName;
LLTextBox* mLabelDesc;
- LLLineEditor* mEditDesc;
+ LLTextEditor* mEditDesc;
LLTextBox* mTextSalePending;
diff --git a/indra/newview/llpanelgroupgeneral.cpp b/indra/newview/llpanelgroupgeneral.cpp
index ca62790147..baeee12e7e 100644
--- a/indra/newview/llpanelgroupgeneral.cpp
+++ b/indra/newview/llpanelgroupgeneral.cpp
@@ -480,7 +480,6 @@ bool LLPanelGroupGeneral::apply(LLString& mesg)
{
gGroupMgr->sendUpdateGroupInfo(mGroupID);
}
- notifyObservers();
}
BOOL receive_notices = false;
@@ -491,7 +490,9 @@ bool LLPanelGroupGeneral::apply(LLString& mesg)
list_in_profile = mCtrlListGroup->get();
gAgent.setUserGroupFlags(mGroupID, receive_notices, list_in_profile);
+
mChanged = FALSE;
+ notifyObservers();
return true;
}
@@ -660,7 +661,6 @@ void LLPanelGroupGeneral::update(LLGroupChange gc)
mCtrlReceiveNotices->setVisible(is_member);
if (is_member)
{
- mCtrlReceiveNotices->set(agent_gdatap.mAcceptNotices);
mCtrlReceiveNotices->setEnabled(mAllowEdit);
}
}
@@ -804,6 +804,16 @@ void LLPanelGroupGeneral::updateChanged()
mChanged |= mInsignia->isDirty();
if ( mEditCharter )
mChanged |= mEditCharter->isDirty();
+ if ( mCtrlShowInGroupList)
+ mChanged |= mCtrlShowInGroupList->isDirty();
+ if ( mCtrlMature)
+ mChanged |= mCtrlMature->isDirty();
+ if ( mCtrlOpenEnrollment)
+ mChanged |= mCtrlOpenEnrollment->isDirty();
+ if ( mCtrlEnrollmentFee)
+ mChanged |= mCtrlEnrollmentFee->isDirty();
+ if ( mSpinEnrollmentFee)
+ mChanged |= mSpinEnrollmentFee->isDirty();
// if ( mCtrlReceiveNotices ) // "Receive group notices" is different, see onReceiveNotices()
// mChanged |= mCtrlReceiveNotices->isDirty();
}
diff --git a/indra/newview/llpanelpermissions.cpp b/indra/newview/llpanelpermissions.cpp
index 133173b02d..e2e283f516 100644
--- a/indra/newview/llpanelpermissions.cpp
+++ b/indra/newview/llpanelpermissions.cpp
@@ -1,18 +1,13 @@
/**
* @file llpanelpermissions.cpp
* @brief LLPanelPermissions class implementation
+ * This class represents the panel in the build view for
+ * viewing/editing object names, owners, permissions, etc.
*
* Copyright (c) 2002-$CurrentYear$, Linden Research, Inc.
* $License$
*/
-//*****************************************************************************
-//
-// This class represents the panel in the build view for
-// viewing/editing object names, owners, permissions, etc.
-//
-//*****************************************************************************
-
#include "llviewerprecompiledheaders.h"
#include "llpanelpermissions.h"
@@ -51,8 +46,13 @@
///----------------------------------------------------------------------------
// Default constructor
+LLPanelPermissions::LLPanelPermissions(const std::string& title) :
+ LLPanel(title)
+{
+ setMouseOpaque(FALSE);
+}
-BOOL LLPanelPermissions::postBuild()
+BOOL LLPanelPermissions::postBuild()
{
this->childSetCommitCallback("Object Name",LLPanelPermissions::onCommitName,this);
this->childSetPrevalidate("Object Name",LLLineEditor::prevalidatePrintableNotPipe);
@@ -86,25 +86,21 @@ BOOL LLPanelPermissions::postBuild()
this->childSetCommitCallback("clickaction",LLPanelPermissions::onCommitClickAction,this);
this->childSetCommitCallback("search_check",LLPanelPermissions::onCommitIncludeInSearch,this);
-
- LLTextBox* LabelGroupNameRectProxy = gUICtrlFactory->getTextBoxByName(this,"Group Name Proxy");
- if(LabelGroupNameRectProxy )
+ LLTextBox* group_rect_proxy = gUICtrlFactory->getTextBoxByName(this,"Group Name Proxy");
+ if(group_rect_proxy )
{
- mLabelGroupName = new LLNameBox("Group Name",LabelGroupNameRectProxy->getRect());
+ mLabelGroupName = new LLNameBox("Group Name", group_rect_proxy->getRect());
addChild(mLabelGroupName);
- }else
+ }
+ else
+ {
mLabelGroupName = NULL;
+ }
return TRUE;
}
-LLPanelPermissions::LLPanelPermissions(const std::string& title) :
- LLPanel(title)
-{
- setMouseOpaque(FALSE);
-}
-// Destroys the object
LLPanelPermissions::~LLPanelPermissions()
{
// base class will take care of everything
@@ -113,7 +109,6 @@ LLPanelPermissions::~LLPanelPermissions()
void LLPanelPermissions::refresh()
{
-
LLButton* BtnDeedToGroup = gUICtrlFactory->getButtonByName(this,"button deed");
if(BtnDeedToGroup)
{
diff --git a/indra/newview/llpanelpermissions.h b/indra/newview/llpanelpermissions.h
index 48c52b56b9..4cc276ff06 100644
--- a/indra/newview/llpanelpermissions.h
+++ b/indra/newview/llpanelpermissions.h
@@ -9,10 +9,7 @@
#ifndef LL_LLPANELPERMISSIONS_H
#define LL_LLPANELPERMISSIONS_H
-#ifndef LL_LLPANEL_H
#include "llpanel.h"
-#endif
-
#include "lluuid.h"
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~