00001
00032 #ifndef LL_LLPANELPERMISSIONS_H
00033 #define LL_LLPANELPERMISSIONS_H
00034
00035 #include "llpanel.h"
00036 #include "lluuid.h"
00037
00038
00039
00040
00041
00042
00043
00044 class LLCheckBoxCtrl;
00045 class LLTextBox;
00046 class LLButton;
00047 class LLLineEditor;
00048 class LLRadioGroup;
00049 class LLComboBox;
00050 class LLNameBox;
00051
00052 class LLPanelPermissions : public LLPanel
00053 {
00054 public:
00055 LLPanelPermissions(const std::string& title);
00056 virtual ~LLPanelPermissions();
00057
00058 virtual BOOL postBuild();
00059
00060
00061 void refresh();
00062
00063
00064
00065 protected:
00066
00067 static void onClickClaim(void*);
00068 static void onClickRelease(void*);
00069 static void onClickCreator(void*);
00070 static void onClickOwner(void*);
00071 static void onClickGroup(void*);
00072 static void cbGroupID(LLUUID group_id, void* userdata);
00073 static void onClickDeedToGroup(void*);
00074
00075 static void onCommitPerm(LLUICtrl *ctrl, void *data, U8 field, U32 perm);
00076
00077
00078
00079
00080 static void onCommitGroupShare(LLUICtrl *ctrl, void *data);
00081
00082 static void onCommitEveryoneMove(LLUICtrl *ctrl, void *data);
00083 static void onCommitEveryoneCopy(LLUICtrl *ctrl, void *data);
00084
00085
00086 static void onCommitNextOwnerModify(LLUICtrl* ctrl, void* data);
00087 static void onCommitNextOwnerCopy(LLUICtrl* ctrl, void* data);
00088 static void onCommitNextOwnerTransfer(LLUICtrl* ctrl, void* data);
00089
00090 static void onCommitName(LLUICtrl* ctrl, void* data);
00091 static void onCommitDesc(LLUICtrl* ctrl, void* data);
00092
00093 static void onCommitSaleInfo(LLUICtrl* ctrl, void* data);
00094 static void onCommitSaleType(LLUICtrl* ctrl, void* data);
00095 void setAllSaleInfo();
00096
00097 static void onCommitClickAction(LLUICtrl* ctrl, void*);
00098 static void onCommitIncludeInSearch(LLUICtrl* ctrl, void*);
00099
00100 protected:
00101 LLNameBox* mLabelGroupName;
00102
00103
00104
00105
00106
00107 LLUUID mCreatorID;
00108 LLUUID mOwnerID;
00109 LLUUID mLastOwnerID;
00110 };
00111
00112
00113 #endif // LL_LLPANELPERMISSIONS_H