aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelgroupgeneral.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpanelgroupgeneral.h110
1 files changed, 110 insertions, 0 deletions
diff --git a/linden/indra/newview/llpanelgroupgeneral.h b/linden/indra/newview/llpanelgroupgeneral.h
new file mode 100644
index 0000000..2bd1100
--- /dev/null
+++ b/linden/indra/newview/llpanelgroupgeneral.h
@@ -0,0 +1,110 @@
1/**
2 * @file llpanelgroupgeneral.h
3 * @brief General information about a group.
4 *
5 * Copyright (c) 2006-2007, Linden Research, Inc.
6 *
7 * 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 * ("GPL"), unless you have obtained a separate licensing agreement
10 * ("Other License"), formally executed by you and Linden Lab. Terms of
11 * the GPL can be found in doc/GPL-license.txt in this distribution, or
12 * online at http://secondlife.com/developers/opensource/gplv2
13 *
14 * There are special exceptions to the terms and conditions of the GPL as
15 * it is applied to this Source Code. View the full text of the exception
16 * in the file doc/FLOSS-exception.txt in this software distribution, or
17 * online at http://secondlife.com/developers/opensource/flossexception
18 *
19 * By copying, modifying or distributing this software, you acknowledge
20 * that you have read and understood your obligations described above,
21 * and agree to abide by those obligations.
22 *
23 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
24 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
25 * COMPLETENESS OR PERFORMANCE.
26 */
27
28#ifndef LL_LLPANELGROUPGENERAL_H
29#define LL_LLPANELGROUPGENERAL_H
30
31#include "llpanelgroup.h"
32
33class LLLineEditor;
34class LLTextBox;
35class LLTextureCtrl;
36class LLTextEditor;
37class LLButton;
38class LLNameListCtrl;
39class LLCheckBoxCtrl;
40class LLComboBox;
41class LLNameBox;
42class LLSpinCtrl;
43
44class LLPanelGroupGeneral : public LLPanelGroupTab
45{
46public:
47 LLPanelGroupGeneral(const std::string& name, const LLUUID& group_id);
48 virtual ~LLPanelGroupGeneral();
49
50 // LLPanelGroupTab
51 static void* createTab(void* data);
52 virtual void activate();
53 virtual bool needsApply(LLString& mesg);
54 virtual bool apply(LLString& mesg);
55 virtual void cancel();
56 static void createGroupCallback(S32 option, void* user_data);
57
58 virtual void update(LLGroupChange gc);
59
60 virtual BOOL postBuild();
61
62 virtual void draw();
63
64private:
65 static void onCommitAny(LLUICtrl* ctrl, void* data);
66 static void onCommitTitle(LLUICtrl* ctrl, void* data);
67 static void onCommitEnrollment(LLUICtrl* ctrl, void* data);
68 static void onClickJoin(void* userdata);
69 static void onClickInfo(void* userdata);
70 static void onReceiveNotices(LLUICtrl* ctrl, void* data);
71 static void openProfile(void* data);
72
73 static void joinDlgCB(S32 which, void *userdata);
74
75 void updateMembers();
76
77 BOOL mPendingMemberUpdate;
78 BOOL mChanged;
79 BOOL mFirstUse;
80 std::string mIncompleteMemberDataStr;
81 std::string mConfirmGroupCreateStr;
82 LLUUID mDefaultIconID;
83
84 // Group information
85 LLLineEditor *mGroupNameEditor;
86 LLTextBox *mGroupName;
87 LLNameBox *mFounderName;
88 LLTextureCtrl *mInsignia;
89 LLTextEditor *mEditCharter;
90 LLLineEditor *mEditName;
91 LLButton *mBtnJoinGroup;
92 LLButton *mBtnInfo;
93
94 LLNameListCtrl *mListVisibleMembers;
95
96 // Options
97 LLCheckBoxCtrl *mCtrlShowInGroupList;
98 LLCheckBoxCtrl *mCtrlPublishOnWeb;
99 LLCheckBoxCtrl *mCtrlMature;
100 LLCheckBoxCtrl *mCtrlOpenEnrollment;
101 LLCheckBoxCtrl *mCtrlEnrollmentFee;
102 LLSpinCtrl *mSpinEnrollmentFee;
103 LLCheckBoxCtrl *mCtrlReceiveNotices;
104 LLTextBox *mActiveTitleLabel;
105 LLComboBox *mComboActiveTitle;
106
107 LLGroupMgrGroupData::member_iter mMemberProgress;
108};
109
110#endif