Annotation of /trunk/linden/indra/newview/llpanelpermissions.h
Parent Directory
|
Revision Log
Revision 103 - (view) (download)
| 1 : | mjm | 57 | /** |
| 2 : | * @file llpanelpermissions.h | ||
| 3 : | * @brief LLPanelPermissions class header file | ||
| 4 : | * | ||
| 5 : | * $LicenseInfo:firstyear=2002&license=viewergpl$ | ||
| 6 : | * | ||
| 7 : | mjm | 103 | * Copyright (c) 2002-2009, Linden Research, Inc. |
| 8 : | mjm | 57 | * |
| 9 : | * Second Life Viewer Source Code | ||
| 10 : | * The source code in this file ("Source Code") is provided by Linden Lab | ||
| 11 : | * to you under the terms of the GNU General Public License, version 2.0 | ||
| 12 : | * ("GPL"), unless you have obtained a separate licensing agreement | ||
| 13 : | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
| 14 : | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
| 15 : | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | ||
| 16 : | * | ||
| 17 : | * There are special exceptions to the terms and conditions of the GPL as | ||
| 18 : | * it is applied to this Source Code. View the full text of the exception | ||
| 19 : | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
| 20 : | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
| 21 : | * | ||
| 22 : | * By copying, modifying or distributing this software, you acknowledge | ||
| 23 : | * that you have read and understood your obligations described above, | ||
| 24 : | * and agree to abide by those obligations. | ||
| 25 : | * | ||
| 26 : | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
| 27 : | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
| 28 : | * COMPLETENESS OR PERFORMANCE. | ||
| 29 : | * $/LicenseInfo$ | ||
| 30 : | */ | ||
| 31 : | |||
| 32 : | #ifndef LL_LLPANELPERMISSIONS_H | ||
| 33 : | #define LL_LLPANELPERMISSIONS_H | ||
| 34 : | |||
| 35 : | #include "llpanel.h" | ||
| 36 : | #include "lluuid.h" | ||
| 37 : | |||
| 38 : | //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| 39 : | // Class llpanelpermissions | ||
| 40 : | // | ||
| 41 : | // Panel for permissions of an object. | ||
| 42 : | //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| 43 : | |||
| 44 : | class LLCheckBoxCtrl; | ||
| 45 : | class LLTextBox; | ||
| 46 : | class LLButton; | ||
| 47 : | class LLLineEditor; | ||
| 48 : | class LLRadioGroup; | ||
| 49 : | class LLComboBox; | ||
| 50 : | class LLNameBox; | ||
| 51 : | |||
| 52 : | class LLPanelPermissions : public LLPanel | ||
| 53 : | { | ||
| 54 : | public: | ||
| 55 : | LLPanelPermissions(const std::string& title); | ||
| 56 : | virtual ~LLPanelPermissions(); | ||
| 57 : | |||
| 58 : | virtual BOOL postBuild(); | ||
| 59 : | |||
| 60 : | // MANIPULATORS | ||
| 61 : | void refresh(); // refresh all labels as needed | ||
| 62 : | // void setPermCheckboxes(U32 mask_on, U32 mask_off, | ||
| 63 : | // LLCheckBoxCtrl* move, LLCheckboxCtrl* edit, | ||
| 64 : | // LLCheckBoxCtrl* copy); | ||
| 65 : | protected: | ||
| 66 : | // statics | ||
| 67 : | static void onClickClaim(void*); | ||
| 68 : | static void onClickRelease(void*); | ||
| 69 : | static void onClickCreator(void*); | ||
| 70 : | static void onClickOwner(void*); | ||
| 71 : | static void onClickGroup(void*); | ||
| 72 : | static void cbGroupID(LLUUID group_id, void* userdata); | ||
| 73 : | static void onClickDeedToGroup(void*); | ||
| 74 : | |||
| 75 : | static void onCommitPerm(LLUICtrl *ctrl, void *data, U8 field, U32 perm); | ||
| 76 : | |||
| 77 : | // static void onCommitGroupMove(LLUICtrl *ctrl, void *data); | ||
| 78 : | // static void onCommitGroupCopy(LLUICtrl *ctrl, void *data); | ||
| 79 : | // static void onCommitGroupModify(LLUICtrl *ctrl, void *data); | ||
| 80 : | static void onCommitGroupShare(LLUICtrl *ctrl, void *data); | ||
| 81 : | |||
| 82 : | static void onCommitEveryoneMove(LLUICtrl *ctrl, void *data); | ||
| 83 : | static void onCommitEveryoneCopy(LLUICtrl *ctrl, void *data); | ||
| 84 : | //static void onCommitEveryoneModify(LLUICtrl *ctrl, void *data); | ||
| 85 : | |||
| 86 : | static void onCommitNextOwnerModify(LLUICtrl* ctrl, void* data); | ||
| 87 : | static void onCommitNextOwnerCopy(LLUICtrl* ctrl, void* data); | ||
| 88 : | static void onCommitNextOwnerTransfer(LLUICtrl* ctrl, void* data); | ||
| 89 : | |||
| 90 : | static void onCommitName(LLUICtrl* ctrl, void* data); | ||
| 91 : | static void onCommitDesc(LLUICtrl* ctrl, void* data); | ||
| 92 : | |||
| 93 : | static void onCommitSaleInfo(LLUICtrl* ctrl, void* data); | ||
| 94 : | static void onCommitSaleType(LLUICtrl* ctrl, void* data); | ||
| 95 : | void setAllSaleInfo(); | ||
| 96 : | |||
| 97 : | static void onCommitClickAction(LLUICtrl* ctrl, void*); | ||
| 98 : | static void onCommitIncludeInSearch(LLUICtrl* ctrl, void*); | ||
| 99 : | |||
| 100 : | protected: | ||
| 101 : | LLNameBox* mLabelGroupName; // group name | ||
| 102 : | |||
| 103 : | //LLTextBox* mBuyerLabel; | ||
| 104 : | //LLCheckBoxCtrl* mCheckBuyerModify; | ||
| 105 : | //LLCheckBoxCtrl* mCheckBuyerCopy; | ||
| 106 : | |||
| 107 : | LLUUID mCreatorID; | ||
| 108 : | LLUUID mOwnerID; | ||
| 109 : | LLUUID mLastOwnerID; | ||
| 110 : | }; | ||
| 111 : | |||
| 112 : | |||
| 113 : | #endif // LL_LLPANELPERMISSIONS_H |
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

