aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpaneldirgroups.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:54 -0500
committerJacek Antonelli2008-08-15 23:44:54 -0500
commitb2afb8800bb033a04bb3ecdf0363068d56648ef1 (patch)
tree3568129b5bbddb47cd39d622b4137a8fbff4abaf /linden/indra/newview/llpaneldirgroups.cpp
parentSecond Life viewer sources 1.14.0.1 (diff)
downloadmeta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.zip
meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.gz
meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.bz2
meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.xz
Second Life viewer sources 1.15.0.2
Diffstat (limited to 'linden/indra/newview/llpaneldirgroups.cpp')
-rw-r--r--linden/indra/newview/llpaneldirgroups.cpp26
1 files changed, 25 insertions, 1 deletions
diff --git a/linden/indra/newview/llpaneldirgroups.cpp b/linden/indra/newview/llpaneldirgroups.cpp
index 794d7c8..d42cf96 100644
--- a/linden/indra/newview/llpaneldirgroups.cpp
+++ b/linden/indra/newview/llpaneldirgroups.cpp
@@ -4,6 +4,7 @@
4 * 4 *
5 * Copyright (c) 2001-2007, Linden Research, Inc. 5 * Copyright (c) 2001-2007, Linden Research, Inc.
6 * 6 *
7 * Second Life Viewer Source Code
7 * The source code in this file ("Source Code") is provided by Linden Lab 8 * The source code in this file ("Source Code") is provided by Linden Lab
8 * to you under the terms of the GNU General Public License, version 2.0 9 * to you under the terms of the GNU General Public License, version 2.0
9 * ("GPL"), unless you have obtained a separate licensing agreement 10 * ("GPL"), unless you have obtained a separate licensing agreement
@@ -30,8 +31,11 @@
30#include "llpaneldirgroups.h" 31#include "llpaneldirgroups.h"
31 32
32// linden library includes 33// linden library includes
34#include "llagent.h"
33//#include "llfontgl.h" 35//#include "llfontgl.h"
34#include "message.h" 36#include "message.h"
37#include "llqueryflags.h"
38#include "llviewercontrol.h"
35 39
36// viewer project includes 40// viewer project includes
37 41
@@ -60,6 +64,16 @@ LLPanelDirGroups::~LLPanelDirGroups()
60 // Children all cleaned up by default view destructor. 64 // Children all cleaned up by default view destructor.
61} 65}
62 66
67// virtual
68void LLPanelDirGroups::draw()
69{
70 // You only have a choice if you are mature
71 childSetVisible("incmature", gAgent.mAccess >= SIM_ACCESS_MATURE);
72 childSetValue("incmature", gSavedSettings.getBOOL("ShowMatureGroups"));
73
74 LLPanelDirBrowser::draw();
75}
76
63 77
64// virtual 78// virtual
65void LLPanelDirGroups::performQuery() 79void LLPanelDirGroups::performQuery()
@@ -72,7 +86,17 @@ void LLPanelDirGroups::performQuery()
72 setupNewSearch(); 86 setupNewSearch();
73 87
74 // groups 88 // groups
75 U32 scope = 0x10; 89 U32 scope = DFQ_GROUPS;
90
91 // Check group mature filter.
92 if ( !gSavedSettings.getBOOL("ShowMatureGroups")
93 || gAgent.mAccess <= SIM_ACCESS_PG )
94 {
95 scope |= DFQ_FILTER_MATURE;
96 }
97
98 mCurrentSortColumn = "score";
99 mCurrentSortAscending = FALSE;
76 100
77 // send the message 101 // send the message
78 sendDirFindQuery( 102 sendDirFindQuery(