llpanelpermissions.h

Go to the documentation of this file.
00001 
00032 #ifndef LL_LLPANELPERMISSIONS_H
00033 #define LL_LLPANELPERMISSIONS_H
00034 
00035 #include "llpanel.h"
00036 #include "lluuid.h"
00037 
00038 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
00039 // Class llpanelpermissions
00040 //
00041 // Panel for permissions of an object.
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         // MANIPULATORS
00061         void refresh();                                                 // refresh all labels as needed
00062 //      void setPermCheckboxes(U32 mask_on, U32 mask_off, 
00063 //                                                 LLCheckBoxCtrl* move, LLCheckboxCtrl* edit,
00064 //                                                 LLCheckBoxCtrl* copy);
00065 protected:
00066         // statics
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 //      static void onCommitGroupMove(LLUICtrl *ctrl, void *data);
00078 //      static void onCommitGroupCopy(LLUICtrl *ctrl, void *data);
00079 //      static void onCommitGroupModify(LLUICtrl *ctrl, void *data);
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         //static void onCommitEveryoneModify(LLUICtrl *ctrl, void *data);
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;                // group name
00102 
00103         //LLTextBox*            mBuyerLabel;
00104         //LLCheckBoxCtrl*       mCheckBuyerModify;
00105         //LLCheckBoxCtrl*       mCheckBuyerCopy;
00106 
00107         LLUUID                  mCreatorID;
00108         LLUUID                  mOwnerID;
00109         LLUUID                  mLastOwnerID;
00110 };
00111 
00112 
00113 #endif // LL_LLPANELPERMISSIONS_H

Generated on Thu Jul 1 06:08:59 2010 for Second Life Viewer by  doxygen 1.4.7