From b82d70cf2aa2b56a2c0bfdd941ee4f74e690e4df Mon Sep 17 00:00:00 2001 From: Kadah_Coba Date: Mon, 4 Mar 2019 00:18:45 -0800 Subject: Added viewer based profiles Split picks and classifieds in to separate panels Moved getProfileURL to LLAvatarActions Removed dead XUI panels Removed picks/classifieds floater --- indra/newview/llfloaterprofile.h | 62 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 indra/newview/llfloaterprofile.h (limited to 'indra/newview/llfloaterprofile.h') diff --git a/indra/newview/llfloaterprofile.h b/indra/newview/llfloaterprofile.h new file mode 100644 index 0000000000..fa06347cee --- /dev/null +++ b/indra/newview/llfloaterprofile.h @@ -0,0 +1,62 @@ +/** + * @file llfloaterprofile.h + * @brief Avatar profile floater. + * + * $LicenseInfo:firstyear=2009&license=viewerlgpl$ + * Second Life Viewer Source Code + * Copyright (C) 2010, Linden Research, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; + * version 2.1 of the License only. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA + * $/LicenseInfo$ + */ + +#ifndef LL_LLFLOATERPROFILE_H +#define LL_LLFLOATERPROFILE_H + +#include "llavatarnamecache.h" +#include "llfloater.h" + +class LLPanelProfile; + +class LLFloaterProfile : public LLFloater +{ + LOG_CLASS(LLFloaterProfile); +public: + LLFloaterProfile(const LLSD& key); + virtual ~LLFloaterProfile(); + + /*virtual*/ void onOpen(const LLSD& key); + /*virtual*/ BOOL postBuild(); + + void showPick(const LLUUID& pick_id = LLUUID::null); + + void showClassified(const LLUUID& classified_id = LLUUID::null, bool edit = false); + +protected: + void onOKBtn(); + void onCancelBtn(); + +private: + LLAvatarNameCache::callback_connection_t mNameCallbackConnection; + void onAvatarNameCache(const LLUUID& agent_id, const LLAvatarName& av_name); + + LLPanelProfile* mPanelProfile; + + LLUUID mAvatarId; +}; + +#endif // LL_LLFLOATERPROFILE_H -- cgit v1.2.3 From e0b24ee960c7a7eebb9e7d6e4b5974973eb3da00 Mon Sep 17 00:00:00 2001 From: maxim_productengine Date: Mon, 25 Mar 2019 15:38:26 +0200 Subject: SL-10798 FIXED [Legacy Profiles] 'Picks' toolbar button does nothing --- indra/newview/llfloaterprofile.h | 1 + 1 file changed, 1 insertion(+) (limited to 'indra/newview/llfloaterprofile.h') diff --git a/indra/newview/llfloaterprofile.h b/indra/newview/llfloaterprofile.h index fa06347cee..22ed47e54f 100644 --- a/indra/newview/llfloaterprofile.h +++ b/indra/newview/llfloaterprofile.h @@ -43,6 +43,7 @@ public: /*virtual*/ BOOL postBuild(); void showPick(const LLUUID& pick_id = LLUUID::null); + bool isPickTabSelected(); void showClassified(const LLUUID& classified_id = LLUUID::null, bool edit = false); -- cgit v1.2.3 From 1483c05c9f61e7ce44e8883d8e10d976867882fa Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Tue, 12 Apr 2022 21:46:53 +0300 Subject: SL-15312 Legacy profiles remake #5 Mostly changes for notes tab and first life tab --- indra/newview/llfloaterprofile.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'indra/newview/llfloaterprofile.h') diff --git a/indra/newview/llfloaterprofile.h b/indra/newview/llfloaterprofile.h index 22ed47e54f..3026f174fb 100644 --- a/indra/newview/llfloaterprofile.h +++ b/indra/newview/llfloaterprofile.h @@ -47,10 +47,6 @@ public: void showClassified(const LLUUID& classified_id = LLUUID::null, bool edit = false); -protected: - void onOKBtn(); - void onCancelBtn(); - private: LLAvatarNameCache::callback_connection_t mNameCallbackConnection; void onAvatarNameCache(const LLUUID& agent_id, const LLAvatarName& av_name); -- cgit v1.2.3 From 4ffc6c3fde17de5e18370139274bbd44b1b61a23 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Mon, 30 May 2022 22:06:59 +0300 Subject: SL-15312 Tweaks and fixes - Allowed resizing text fields for classifieds in profiles - Fixed mislabeled floater from picks to classifieds - Fixed classified floater's title - Added support to see multiple classifieds - Removed obsolete panels - Fixed pick requests for various menus - Fixed pick creation from landmarks - Improved online status handling - Updated headers in files --- indra/newview/llfloaterprofile.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'indra/newview/llfloaterprofile.h') diff --git a/indra/newview/llfloaterprofile.h b/indra/newview/llfloaterprofile.h index 3026f174fb..1d0450be9c 100644 --- a/indra/newview/llfloaterprofile.h +++ b/indra/newview/llfloaterprofile.h @@ -2,9 +2,9 @@ * @file llfloaterprofile.h * @brief Avatar profile floater. * - * $LicenseInfo:firstyear=2009&license=viewerlgpl$ + * $LicenseInfo:firstyear=2022&license=viewerlgpl$ * Second Life Viewer Source Code - * Copyright (C) 2010, Linden Research, Inc. + * Copyright (C) 2022, Linden Research, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -28,6 +28,7 @@ #define LL_LLFLOATERPROFILE_H #include "llavatarnamecache.h" +#include "llavatarpropertiesprocessor.h" #include "llfloater.h" class LLPanelProfile; @@ -42,6 +43,7 @@ public: /*virtual*/ void onOpen(const LLSD& key); /*virtual*/ BOOL postBuild(); + void createPick(const LLPickData &data); void showPick(const LLUUID& pick_id = LLUUID::null); bool isPickTabSelected(); -- cgit v1.2.3 From 3efe64619b772ce8cab596d7e74de48dcc7f6c20 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Thu, 2 Jun 2022 00:17:54 +0300 Subject: SL-15312 Confirm usaved changes dialog when closing floater --- indra/newview/llfloaterprofile.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'indra/newview/llfloaterprofile.h') diff --git a/indra/newview/llfloaterprofile.h b/indra/newview/llfloaterprofile.h index 1d0450be9c..36023077d3 100644 --- a/indra/newview/llfloaterprofile.h +++ b/indra/newview/llfloaterprofile.h @@ -40,8 +40,11 @@ public: LLFloaterProfile(const LLSD& key); virtual ~LLFloaterProfile(); - /*virtual*/ void onOpen(const LLSD& key); - /*virtual*/ BOOL postBuild(); + BOOL postBuild() override; + + void onOpen(const LLSD& key) override; + void onClickCloseBtn(bool app_quitting = false) override; + void onUnsavedChangesCallback(const LLSD& notification, const LLSD& response, bool can_save); void createPick(const LLPickData &data); void showPick(const LLUUID& pick_id = LLUUID::null); -- cgit v1.2.3 From 946bdc1ee352618f0d333292272aceb48b6d8dd8 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Mon, 8 Aug 2022 22:38:56 +0300 Subject: SL-14556 Profile floater does not update after a name change --- indra/newview/llfloaterprofile.h | 1 + 1 file changed, 1 insertion(+) (limited to 'indra/newview/llfloaterprofile.h') diff --git a/indra/newview/llfloaterprofile.h b/indra/newview/llfloaterprofile.h index 36023077d3..c2b90a1dce 100644 --- a/indra/newview/llfloaterprofile.h +++ b/indra/newview/llfloaterprofile.h @@ -49,6 +49,7 @@ public: void createPick(const LLPickData &data); void showPick(const LLUUID& pick_id = LLUUID::null); bool isPickTabSelected(); + void refreshName(); void showClassified(const LLUUID& classified_id = LLUUID::null, bool edit = false); -- cgit v1.2.3 From c4335939d90346a778eb18acb7611135742231df Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Wed, 10 Aug 2022 19:03:12 +0300 Subject: SL-17925 Fix SLURL based creation of picks and classifieds --- indra/newview/llfloaterprofile.h | 1 + 1 file changed, 1 insertion(+) (limited to 'indra/newview/llfloaterprofile.h') diff --git a/indra/newview/llfloaterprofile.h b/indra/newview/llfloaterprofile.h index c2b90a1dce..b3ed02fc2c 100644 --- a/indra/newview/llfloaterprofile.h +++ b/indra/newview/llfloaterprofile.h @@ -52,6 +52,7 @@ public: void refreshName(); void showClassified(const LLUUID& classified_id = LLUUID::null, bool edit = false); + void createClassified(); private: LLAvatarNameCache::callback_connection_t mNameCallbackConnection; -- cgit v1.2.3