diff options
author | Jacek Antonelli | 2008-08-15 23:44:46 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:46 -0500 |
commit | 38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4 (patch) | |
tree | adca584755d22ca041a2dbfc35d4eca01f70b32c /linden/indra/newview/llpanelpermissions.h | |
parent | README.txt (diff) | |
download | meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.zip meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.gz meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.bz2 meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.xz |
Second Life viewer sources 1.13.2.12
Diffstat (limited to 'linden/indra/newview/llpanelpermissions.h')
-rw-r--r-- | linden/indra/newview/llpanelpermissions.h | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/linden/indra/newview/llpanelpermissions.h b/linden/indra/newview/llpanelpermissions.h new file mode 100644 index 0000000..5ffba06 --- /dev/null +++ b/linden/indra/newview/llpanelpermissions.h | |||
@@ -0,0 +1,111 @@ | |||
1 | /** | ||
2 | * @file llpanelpermissions.h | ||
3 | * @brief LLPanelPermissions class header file | ||
4 | * | ||
5 | * Copyright (c) 2002-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_LLPANELPERMISSIONS_H | ||
29 | #define LL_LLPANELPERMISSIONS_H | ||
30 | |||
31 | #ifndef LL_LLPANEL_H | ||
32 | #include "llpanel.h" | ||
33 | #endif | ||
34 | |||
35 | #include "lluuid.h" | ||
36 | |||
37 | //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
38 | // Class llpanelpermissions | ||
39 | // | ||
40 | // Panel for permissions of an object. | ||
41 | //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
42 | |||
43 | class LLCheckBoxCtrl; | ||
44 | class LLTextBox; | ||
45 | class LLButton; | ||
46 | class LLLineEditor; | ||
47 | class LLRadioGroup; | ||
48 | class LLComboBox; | ||
49 | class LLNameBox; | ||
50 | |||
51 | class LLPanelPermissions : public LLPanel | ||
52 | { | ||
53 | public: | ||
54 | LLPanelPermissions(const std::string& title); | ||
55 | virtual ~LLPanelPermissions(); | ||
56 | |||
57 | virtual BOOL postBuild(); | ||
58 | |||
59 | // MANIPULATORS | ||
60 | void refresh(); // refresh all labels as needed | ||
61 | // void setPermCheckboxes(U32 mask_on, U32 mask_off, | ||
62 | // LLCheckBoxCtrl* move, LLCheckboxCtrl* edit, | ||
63 | // LLCheckBoxCtrl* copy); | ||
64 | protected: | ||
65 | // statics | ||
66 | static void onClickClaim(void*); | ||
67 | static void onClickRelease(void*); | ||
68 | static void onClickCreator(void*); | ||
69 | static void onClickOwner(void*); | ||
70 | static void onClickGroup(void*); | ||
71 | static void cbGroupID(LLUUID group_id, void* userdata); | ||
72 | static void onClickDeedToGroup(void*); | ||
73 | |||
74 | static void onCommitPerm(LLUICtrl *ctrl, void *data, U8 field, U32 perm); | ||
75 | |||
76 | // static void onCommitGroupMove(LLUICtrl *ctrl, void *data); | ||
77 | // static void onCommitGroupCopy(LLUICtrl *ctrl, void *data); | ||
78 | // static void onCommitGroupModify(LLUICtrl *ctrl, void *data); | ||
79 | static void onCommitGroupShare(LLUICtrl *ctrl, void *data); | ||
80 | |||
81 | static void onCommitEveryoneMove(LLUICtrl *ctrl, void *data); | ||
82 | static void onCommitEveryoneCopy(LLUICtrl *ctrl, void *data); | ||
83 | //static void onCommitEveryoneModify(LLUICtrl *ctrl, void *data); | ||
84 | |||
85 | static void onCommitNextOwnerModify(LLUICtrl* ctrl, void* data); | ||
86 | static void onCommitNextOwnerCopy(LLUICtrl* ctrl, void* data); | ||
87 | static void onCommitNextOwnerTransfer(LLUICtrl* ctrl, void* data); | ||
88 | |||
89 | static void onCommitName(LLUICtrl* ctrl, void* data); | ||
90 | static void onCommitDesc(LLUICtrl* ctrl, void* data); | ||
91 | |||
92 | static void onCommitSaleInfo(LLUICtrl* ctrl, void* data); | ||
93 | static void onCommitSaleType(LLUICtrl* ctrl, void* data); | ||
94 | void setAllSaleInfo(); | ||
95 | |||
96 | static void onCommitClickAction(LLUICtrl* ctrl, void*); | ||
97 | |||
98 | protected: | ||
99 | LLNameBox* mLabelGroupName; // group name | ||
100 | |||
101 | //LLTextBox* mBuyerLabel; | ||
102 | //LLCheckBoxCtrl* mCheckBuyerModify; | ||
103 | //LLCheckBoxCtrl* mCheckBuyerCopy; | ||
104 | |||
105 | LLUUID mCreatorID; | ||
106 | LLUUID mOwnerID; | ||
107 | LLUUID mLastOwnerID; | ||
108 | }; | ||
109 | |||
110 | |||
111 | #endif // LL_LLPANELPERMISSIONS_H | ||