diff options
author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2024-05-01 08:16:58 +0300 |
---|---|---|
committer | Andrey Lihatskiy <alihatskiy@productengine.com> | 2024-05-01 08:16:58 +0300 |
commit | 38c2a5bde985a6a8a96d912d432f8bdf7e5b60be (patch) | |
tree | b3469444ea8dabe4e76a8a265ac086a9db78891c /indra/newview/llpanelprofile.h | |
parent | 9bf2dfbb39032d7407295089cf181de0987083e5 (diff) | |
parent | e7eced3c87310b15ac20cc3cd470d67686104a14 (diff) |
Merge branch 'marchcat/w-whitespace' into marchcat/x-ws-merge
Diffstat (limited to 'indra/newview/llpanelprofile.h')
-rw-r--r-- | indra/newview/llpanelprofile.h | 242 |
1 files changed, 121 insertions, 121 deletions
diff --git a/indra/newview/llpanelprofile.h b/indra/newview/llpanelprofile.h index 3760fe11d7..1afc248073 100644 --- a/indra/newview/llpanelprofile.h +++ b/indra/newview/llpanelprofile.h @@ -68,34 +68,34 @@ class LLViewerFetchedTexture; * Panel for displaying Avatar's second life related info. */ class LLPanelProfileSecondLife - : public LLPanelProfilePropertiesProcessorTab - , public LLFriendObserver - , public LLVoiceClientStatusObserver + : public LLPanelProfilePropertiesProcessorTab + , public LLFriendObserver + , public LLVoiceClientStatusObserver { public: - LLPanelProfileSecondLife(); - /*virtual*/ ~LLPanelProfileSecondLife(); + LLPanelProfileSecondLife(); + /*virtual*/ ~LLPanelProfileSecondLife(); - void onOpen(const LLSD& key) override; + void onOpen(const LLSD& key) override; - /** - * LLFriendObserver trigger - */ - void changed(U32 mask) override; + /** + * LLFriendObserver trigger + */ + void changed(U32 mask) override; - // Implements LLVoiceClientStatusObserver::onChange() to enable the call - // button when voice is available - void onChange(EStatusType status, const std::string &channelURI, bool proximal) override; + // Implements LLVoiceClientStatusObserver::onChange() to enable the call + // button when voice is available + void onChange(EStatusType status, const std::string &channelURI, bool proximal) override; - void setAvatarId(const LLUUID& avatar_id) override; + void setAvatarId(const LLUUID& avatar_id) override; - BOOL postBuild() override; + BOOL postBuild() override; - void resetData() override; + void resetData() override; void refreshName(); - void onAvatarNameCache(const LLUUID& agent_id, const LLAvatarName& av_name); + void onAvatarNameCache(const LLUUID& agent_id, const LLAvatarName& av_name); void setProfileImageUploading(bool loading); void setProfileImageUploaded(const LLUUID &image_asset_id); @@ -106,25 +106,25 @@ public: void processProperties(void* data, EAvatarProcessorType type) override; protected: - /** - * Process profile related data received from server. - */ - void processProfileProperties(const LLAvatarData* avatar_data); - - /** - * Fills common for Avatar profile and My Profile fields. - */ - void fillCommonData(const LLAvatarData* avatar_data); - - /** - * Fills partner data. - */ - void fillPartnerData(const LLAvatarData* avatar_data); - - /** - * Fills account status. - */ - void fillAccountStatus(const LLAvatarData* avatar_data); + /** + * Process profile related data received from server. + */ + void processProfileProperties(const LLAvatarData* avatar_data); + + /** + * Fills common for Avatar profile and My Profile fields. + */ + void fillCommonData(const LLAvatarData* avatar_data); + + /** + * Fills partner data. + */ + void fillPartnerData(const LLAvatarData* avatar_data); + + /** + * Fills account status. + */ + void fillAccountStatus(const LLAvatarData* avatar_data); /** * Sets permissions specific icon @@ -138,27 +138,27 @@ protected: void onImageLoaded(BOOL success, LLViewerFetchedTexture *imagep); - /** - * Displays avatar's online status if possible. - * - * Requirements from EXT-3880: - * For friends: - * - Online when online and privacy settings allow to show - * - Offline when offline and privacy settings allow to show - * - Else: nothing - * For other avatars: - * - Online when online and was not set in Preferences/"Only Friends & Groups can see when I am online" - * - Else: Offline - */ - void updateOnlineStatus(); - void processOnlineStatus(bool is_friend, bool show_online, bool online); + /** + * Displays avatar's online status if possible. + * + * Requirements from EXT-3880: + * For friends: + * - Online when online and privacy settings allow to show + * - Offline when offline and privacy settings allow to show + * - Else: nothing + * For other avatars: + * - Online when online and was not set in Preferences/"Only Friends & Groups can see when I am online" + * - Else: Offline + */ + void updateOnlineStatus(); + void processOnlineStatus(bool is_friend, bool show_online, bool online); private: void setLoaded() override; void onCommitMenu(const LLSD& userdata); bool onEnableMenu(const LLSD& userdata); bool onCheckMenu(const LLSD& userdata); - void onAvatarNameCacheSetName(const LLUUID& id, const LLAvatarName& av_name); + void onAvatarNameCacheSetName(const LLUUID& id, const LLAvatarName& av_name); void setDescriptionText(const std::string &text); void onSetDescriptionDirty(); @@ -172,37 +172,37 @@ private: void onCommitProfileImage(const LLUUID& id); private: - typedef std::map<std::string, LLUUID> group_map_t; - group_map_t mGroups; - void openGroupProfile(); - - LLGroupList* mGroupList; - LLComboBox* mShowInSearchCombo; - LLComboBox* mHideAgeCombo; - LLProfileImageCtrl* mSecondLifePic; - LLPanel* mSecondLifePicLayout; - LLTextEditor* mDescriptionEdit; - LLMenuButton* mAgentActionMenuButton; - LLButton* mSaveDescriptionChanges; - LLButton* mDiscardDescriptionChanges; - LLIconCtrl* mCanSeeOnlineIcon; - LLIconCtrl* mCantSeeOnlineIcon; - LLIconCtrl* mCanSeeOnMapIcon; - LLIconCtrl* mCantSeeOnMapIcon; - LLIconCtrl* mCanEditObjectsIcon; - LLIconCtrl* mCantEditObjectsIcon; - - LLHandle<LLFloater> mFloaterPermissionsHandle; - LLHandle<LLFloater> mFloaterProfileTextureHandle; - LLHandle<LLFloater> mFloaterTexturePickerHandle; - - bool mHasUnsavedDescriptionChanges; - bool mVoiceStatus; - bool mWaitingForImageUpload; - bool mAllowPublish; - bool mHideAge; - std::string mDescriptionText; - boost::signals2::connection mAvatarNameCacheConnection; + typedef std::map<std::string, LLUUID> group_map_t; + group_map_t mGroups; + void openGroupProfile(); + + LLGroupList* mGroupList; + LLComboBox* mShowInSearchCombo; + LLComboBox* mHideAgeCombo; + LLProfileImageCtrl* mSecondLifePic; + LLPanel* mSecondLifePicLayout; + LLTextEditor* mDescriptionEdit; + LLMenuButton* mAgentActionMenuButton; + LLButton* mSaveDescriptionChanges; + LLButton* mDiscardDescriptionChanges; + LLIconCtrl* mCanSeeOnlineIcon; + LLIconCtrl* mCantSeeOnlineIcon; + LLIconCtrl* mCanSeeOnMapIcon; + LLIconCtrl* mCantSeeOnMapIcon; + LLIconCtrl* mCanEditObjectsIcon; + LLIconCtrl* mCantEditObjectsIcon; + + LLHandle<LLFloater> mFloaterPermissionsHandle; + LLHandle<LLFloater> mFloaterProfileTextureHandle; + LLHandle<LLFloater> mFloaterTexturePickerHandle; + + bool mHasUnsavedDescriptionChanges; + bool mVoiceStatus; + bool mWaitingForImageUpload; + bool mAllowPublish; + bool mHideAge; + std::string mDescriptionText; + boost::signals2::connection mAvatarNameCacheConnection; }; @@ -210,40 +210,40 @@ private: * Panel for displaying Avatar's web profile and home page. */ class LLPanelProfileWeb - : public LLPanelProfileTab - , public LLViewerMediaObserver + : public LLPanelProfileTab + , public LLViewerMediaObserver { public: - LLPanelProfileWeb(); - /*virtual*/ ~LLPanelProfileWeb(); + LLPanelProfileWeb(); + /*virtual*/ ~LLPanelProfileWeb(); - void onOpen(const LLSD& key) override; + void onOpen(const LLSD& key) override; - BOOL postBuild() override; + BOOL postBuild() override; - void resetData() override; + void resetData() override; - /** - * Loads web profile. - */ - void updateData() override; + /** + * Loads web profile. + */ + void updateData() override; - void handleMediaEvent(LLPluginClassMedia* self, EMediaEvent event) override; + void handleMediaEvent(LLPluginClassMedia* self, EMediaEvent event) override; - void onAvatarNameCache(const LLUUID& agent_id, const LLAvatarName& av_name); + void onAvatarNameCache(const LLUUID& agent_id, const LLAvatarName& av_name); protected: - void onCommitLoad(LLUICtrl* ctrl); + void onCommitLoad(LLUICtrl* ctrl); private: - std::string mURLHome; - std::string mURLWebProfile; - LLMediaCtrl* mWebBrowser; + std::string mURLHome; + std::string mURLWebProfile; + LLMediaCtrl* mWebBrowser; - LLFrameTimer mPerformanceTimer; - bool mFirstNavigate; + LLFrameTimer mPerformanceTimer; + bool mFirstNavigate; - boost::signals2::connection mAvatarNameCacheConnection; + boost::signals2::connection mAvatarNameCacheConnection; }; /** @@ -253,17 +253,17 @@ class LLPanelProfileFirstLife : public LLPanelProfilePropertiesProcessorTab { public: - LLPanelProfileFirstLife(); - /*virtual*/ ~LLPanelProfileFirstLife(); + LLPanelProfileFirstLife(); + /*virtual*/ ~LLPanelProfileFirstLife(); - void onOpen(const LLSD& key) override; + void onOpen(const LLSD& key) override; - BOOL postBuild() override; + BOOL postBuild() override; void processProperties(void* data, EAvatarProcessorType type) override; void processProperties(const LLAvatarData* avatar_data); - void resetData() override; + void resetData() override; void setProfileImageUploading(bool loading); void setProfileImageUploaded(const LLUUID &image_asset_id); @@ -272,7 +272,7 @@ public: void commitUnsavedChanges() override; protected: - void setLoaded() override; + void setLoaded() override; void onUploadPhoto(); void onChangePhoto(); @@ -283,7 +283,7 @@ protected: void onSaveDescriptionChanges(); void onDiscardDescriptionChanges(); - LLTextEditor* mDescriptionEdit; + LLTextEditor* mDescriptionEdit; LLProfileImageCtrl* mPicture; LLButton* mUploadPhoto; LLButton* mChangePhoto; @@ -291,30 +291,30 @@ protected: LLButton* mSaveChanges; LLButton* mDiscardChanges; - LLHandle<LLFloater> mFloaterTexturePickerHandle; + LLHandle<LLFloater> mFloaterTexturePickerHandle; - std::string mCurrentDescription; - bool mHasUnsavedChanges; + std::string mCurrentDescription; + bool mHasUnsavedChanges; }; /** * Panel for displaying Avatar's notes and modifying friend's rights. */ class LLPanelProfileNotes - : public LLPanelProfilePropertiesProcessorTab + : public LLPanelProfilePropertiesProcessorTab { public: - LLPanelProfileNotes(); - /*virtual*/ ~LLPanelProfileNotes(); + LLPanelProfileNotes(); + /*virtual*/ ~LLPanelProfileNotes(); - void onOpen(const LLSD& key) override; + void onOpen(const LLSD& key) override; - BOOL postBuild() override; + BOOL postBuild() override; void processProperties(void* data, EAvatarProcessorType type) override; void processProperties(const LLAvatarData* avatar_data); - void resetData() override; + void resetData() override; bool hasUnsavedChanges() override { return mHasUnsavedChanges; } void commitUnsavedChanges() override; @@ -325,12 +325,12 @@ protected: void onSaveNotesChanges(); void onDiscardNotesChanges(); - LLTextEditor* mNotesEditor; + LLTextEditor* mNotesEditor; LLButton* mSaveChanges; LLButton* mDiscardChanges; - std::string mCurrentNotes; - bool mHasUnsavedChanges; + std::string mCurrentNotes; + bool mHasUnsavedChanges; }; |