From 1b68f71348ecf3983b76b40d7940da8377f049b7 Mon Sep 17 00:00:00 2001 From: Andrey Lihatskiy Date: Mon, 29 Apr 2024 07:43:28 +0300 Subject: #824 Process source files in bulk: replace tabs with spaces, convert CRLF to LF, and trim trailing whitespaces as needed --- indra/newview/llpanelprofile.h | 268 ++++++++++++++++++++--------------------- 1 file changed, 134 insertions(+), 134 deletions(-) (limited to 'indra/newview/llpanelprofile.h') diff --git a/indra/newview/llpanelprofile.h b/indra/newview/llpanelprofile.h index 11632a10ae..6007d95022 100644 --- a/indra/newview/llpanelprofile.h +++ b/indra/newview/llpanelprofile.h @@ -68,38 +68,38 @@ class LLViewerFetchedTexture; * Panel for displaying Avatar's second life related info. */ class LLPanelProfileSecondLife - : public LLPanelProfileTab - , public LLFriendObserver - , public LLVoiceClientStatusObserver + : public LLPanelProfileTab + , 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; - /** - * Sends update data request to server. - */ - void updateData() override; + /** + * Sends update data request to server. + */ + void updateData() 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); @@ -110,30 +110,30 @@ public: friend void request_avatar_properties_coro(std::string cap_url, LLUUID agent_id); protected: - /** - * Process profile related data received from server. - */ - void processProfileProperties(const LLAvatarData* avatar_data); - - /** - * Processes group related data received from server. - */ - void processGroupProperties(const LLAvatarGroups* avatar_groups); - - /** - * 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); + + /** + * Processes group related data received from server. + */ + void processGroupProperties(const LLAvatarGroups* avatar_groups); + + /** + * 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 @@ -154,27 +154,27 @@ protected: BOOL final, void* userdata); - /** - * 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(); @@ -187,37 +187,37 @@ private: void onCommitProfileImage(const LLUUID& id); private: - typedef std::map group_map_t; - group_map_t mGroups; - void openGroupProfile(); - - LLGroupList* mGroupList; - LLComboBox* mShowInSearchCombo; - LLThumbnailCtrl* mSecondLifePic; - LLPanel* mSecondLifePicLayout; - LLTextEditor* mDescriptionEdit; - LLMenuButton* mAgentActionMenuButton; - LLButton* mSaveDescriptionChanges; - LLButton* mDiscardDescriptionChanges; - LLIconCtrl* mCanSeeOnlineIcon; - LLIconCtrl* mCantSeeOnlineIcon; - LLIconCtrl* mCanSeeOnMapIcon; - LLIconCtrl* mCantSeeOnMapIcon; - LLIconCtrl* mCanEditObjectsIcon; - LLIconCtrl* mCantEditObjectsIcon; - - LLHandle mFloaterPermissionsHandle; - LLHandle mFloaterProfileTextureHandle; - LLHandle mFloaterTexturePickerHandle; - - bool mHasUnsavedDescriptionChanges; - bool mVoiceStatus; - bool mWaitingForImageUpload; - bool mAllowPublish; - std::string mDescriptionText; - LLUUID mImageId; - - boost::signals2::connection mAvatarNameCacheConnection; + typedef std::map group_map_t; + group_map_t mGroups; + void openGroupProfile(); + + LLGroupList* mGroupList; + LLComboBox* mShowInSearchCombo; + LLThumbnailCtrl* mSecondLifePic; + LLPanel* mSecondLifePicLayout; + LLTextEditor* mDescriptionEdit; + LLMenuButton* mAgentActionMenuButton; + LLButton* mSaveDescriptionChanges; + LLButton* mDiscardDescriptionChanges; + LLIconCtrl* mCanSeeOnlineIcon; + LLIconCtrl* mCantSeeOnlineIcon; + LLIconCtrl* mCanSeeOnMapIcon; + LLIconCtrl* mCantSeeOnMapIcon; + LLIconCtrl* mCanEditObjectsIcon; + LLIconCtrl* mCantEditObjectsIcon; + + LLHandle mFloaterPermissionsHandle; + LLHandle mFloaterProfileTextureHandle; + LLHandle mFloaterTexturePickerHandle; + + bool mHasUnsavedDescriptionChanges; + bool mVoiceStatus; + bool mWaitingForImageUpload; + bool mAllowPublish; + std::string mDescriptionText; + LLUUID mImageId; + + boost::signals2::connection mAvatarNameCacheConnection; }; @@ -225,61 +225,61 @@ 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); friend void request_avatar_properties_coro(std::string cap_url, LLUUID agent_id); 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; }; /** * Panel for displaying Avatar's first life related info. */ class LLPanelProfileFirstLife - : public LLPanelProfileTab + : public LLPanelProfileTab { 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(const LLAvatarData* avatar_data); - void resetData() override; + void resetData() override; void setProfileImageUploading(bool loading); void setProfileImageUploaded(const LLUUID &image_asset_id); @@ -290,7 +290,7 @@ public: friend void request_avatar_properties_coro(std::string cap_url, LLUUID agent_id); protected: - void setLoaded() override; + void setLoaded() override; void onUploadPhoto(); void onChangePhoto(); @@ -301,7 +301,7 @@ protected: void onSaveDescriptionChanges(); void onDiscardDescriptionChanges(); - LLTextEditor* mDescriptionEdit; + LLTextEditor* mDescriptionEdit; LLThumbnailCtrl* mPicture; LLButton* mUploadPhoto; LLButton* mChangePhoto; @@ -309,34 +309,34 @@ protected: LLButton* mSaveChanges; LLButton* mDiscardChanges; - LLHandle mFloaterTexturePickerHandle; + LLHandle mFloaterTexturePickerHandle; - std::string mCurrentDescription; - LLUUID mImageId; - bool mHasUnsavedChanges; + std::string mCurrentDescription; + LLUUID mImageId; + bool mHasUnsavedChanges; }; /** * Panel for displaying Avatar's notes and modifying friend's rights. */ class LLPanelProfileNotes - : public LLPanelProfileTab + : public LLPanelProfileTab { public: - LLPanelProfileNotes(); - /*virtual*/ ~LLPanelProfileNotes(); + LLPanelProfileNotes(); + /*virtual*/ ~LLPanelProfileNotes(); - void setAvatarId(const LLUUID& avatar_id) override; + void setAvatarId(const LLUUID& avatar_id) override; - void onOpen(const LLSD& key) override; + void onOpen(const LLSD& key) override; - BOOL postBuild() override; + BOOL postBuild() override; void processProperties(LLAvatarNotes* avatar_notes); - void resetData() override; + void resetData() override; - void updateData() override; + void updateData() override; bool hasUnsavedChanges() override { return mHasUnsavedChanges; } void commitUnsavedChanges() override; @@ -347,12 +347,12 @@ protected: void onSaveNotesChanges(); void onDiscardNotesChanges(); - LLTextEditor* mNotesEditor; + LLTextEditor* mNotesEditor; LLButton* mSaveChanges; LLButton* mDiscardChanges; - std::string mCurrentNotes; - bool mHasUnsavedChanges; + std::string mCurrentNotes; + bool mHasUnsavedChanges; }; -- cgit v1.2.3