summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterexperiences.cpp
diff options
context:
space:
mode:
authordolphin <dolphin@lindenlab.com>2014-02-28 16:21:42 -0800
committerdolphin <dolphin@lindenlab.com>2014-02-28 16:21:42 -0800
commit49f08d775d3644bb47d342f8e37dd15051aeaa62 (patch)
treef310183241edfc049945df7e5afc60e4e05e6655 /indra/newview/llfloaterexperiences.cpp
parentc1f730ed46c14c12d5856109b622bf085c39abb0 (diff)
Add group editing for experiences
Diffstat (limited to 'indra/newview/llfloaterexperiences.cpp')
-rw-r--r--indra/newview/llfloaterexperiences.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/indra/newview/llfloaterexperiences.cpp b/indra/newview/llfloaterexperiences.cpp
index 8e860a9ee0..956afe15c3 100644
--- a/indra/newview/llfloaterexperiences.cpp
+++ b/indra/newview/llfloaterexperiences.cpp
@@ -37,6 +37,9 @@
#include "llnotificationsutil.h"
+
+#define SHOW_RECENT_TAB (0)
+
class LLExperienceListResponder : public LLHTTPClient::Responder
{
public:
@@ -106,9 +109,11 @@ BOOL LLFloaterExperiences::postBuild()
addTab("Blocked_Experiences_Tab", false);
addTab("Admin_Experiences_Tab", false);
addTab("Contrib_Experiences_Tab", false);
- addTab("Recent_Experiences_Tab", false);
LLPanelExperiences* owned = addTab("Owned_Experiences_Tab", false);
owned->setButtonAction("acquire", boost::bind(&LLFloaterExperiences::sendPurchaseRequest, this));
+#if SHOW_RECENT_TAB
+ addTab("Recent_Experiences_Tab", false);
+#endif //SHOW_RECENT_TAB
resizeToTabs();
@@ -118,8 +123,10 @@ BOOL LLFloaterExperiences::postBuild()
return TRUE;
}
+
void LLFloaterExperiences::clearFromRecent(const LLSD& ids)
{
+#if SHOW_RECENT_TAB
LLTabContainer* tabs = getChild<LLTabContainer>("xp_tabs");
LLPanelExperiences* tab = (LLPanelExperiences*)tabs->getPanelByName("Recent_Experiences_Tab");
@@ -127,10 +134,12 @@ void LLFloaterExperiences::clearFromRecent(const LLSD& ids)
return;
tab->removeExperiences(ids);
+#endif // SHOW_RECENT_TAB
}
void LLFloaterExperiences::setupRecentTabs()
{
+#if SHOW_RECENT_TAB
LLTabContainer* tabs = getChild<LLTabContainer>("xp_tabs");
LLPanelExperiences* tab = (LLPanelExperiences*)tabs->getPanelByName("Recent_Experiences_Tab");
@@ -152,8 +161,10 @@ void LLFloaterExperiences::setupRecentTabs()
}
tab->setExperienceList(recent);
+#endif // SHOW_RECENT_TAB
}
+
void LLFloaterExperiences::resizeToTabs()
{
const S32 TAB_WIDTH_PADDING = 16;