diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-06-09 00:22:02 +0300 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-06-09 00:22:02 +0300 |
commit | ababcc700cc956c4c024f03bf69ca2fdb3e7baed (patch) | |
tree | 324076e5fefe32bf34f530e24a5b6baaa7ffc735 /indra/newview/llpanelprofile.h | |
parent | 8ef8497add2007d29de1cb75b55e77349a7c717f (diff) |
SL-17532 Ability to pick inventory image as a profile image
Diffstat (limited to 'indra/newview/llpanelprofile.h')
-rw-r--r-- | indra/newview/llpanelprofile.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/newview/llpanelprofile.h b/indra/newview/llpanelprofile.h index 943048843f..b363bd3fd2 100644 --- a/indra/newview/llpanelprofile.h +++ b/indra/newview/llpanelprofile.h @@ -181,6 +181,8 @@ private: void onDiscardDescriptionChanges(); void onShowAgentPermissionsDialog(); void onShowAgentProfileTexture(); + void onShowTexturePicker(); + void onCommitProfileImage(const LLUUID& id); void onOpenNotes(); private: @@ -205,6 +207,7 @@ private: LLHandle<LLFloater> mFloaterPermissionsHandle; LLHandle<LLFloater> mFloaterProfileTextureHandle; + LLHandle<LLFloater> mFloaterTexturePickerHandle; bool mHasUnsavedDescriptionChanges; bool mVoiceStatus; @@ -288,8 +291,10 @@ public: protected: void setLoaded() override; + void onUploadPhoto(); void onChangePhoto(); void onRemovePhoto(); + void onCommitPhoto(const LLUUID& id); void setDescriptionText(const std::string &text); void onSetDescriptionDirty(); void onSaveDescriptionChanges(); @@ -297,12 +302,16 @@ protected: LLTextEditor* mDescriptionEdit; LLIconCtrl* mPicture; + LLButton* mUploadPhoto; LLButton* mChangePhoto; LLButton* mRemovePhoto; LLButton* mSaveChanges; LLButton* mDiscardChanges; - std::string mCurrentDescription; + LLHandle<LLFloater> mFloaterTexturePickerHandle; + + std::string mCurrentDescription; + LLUUID mImageId; bool mHasUnsavedChanges; }; |