Skip to content

Commit

Permalink
Merge pull request #25 from AlchemyViewer/RyeMutt/issue17
Browse files Browse the repository at this point in the history
Replace directory search with firestorm search and remove legacy profiles
  • Loading branch information
RyeMutt authored Jun 20, 2024
2 parents 0dcc5ce + b20f74a commit 20fb5ad
Show file tree
Hide file tree
Showing 127 changed files with 9,056 additions and 14,949 deletions.
1 change: 0 additions & 1 deletion indra/llmessage/llclassifiedflags.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ const U8 CLASSIFIED_QUERY_INC_ADULT = 1 << 6;
const U8 CLASSIFIED_QUERY_INC_NEW_VIEWER = (CLASSIFIED_QUERY_INC_PG | CLASSIFIED_QUERY_INC_MATURE | CLASSIFIED_QUERY_INC_ADULT);

const S32 MAX_CLASSIFIEDS = 100;
const S32 MINIMUM_PRICE_FOR_LISTING = 50; // L$

// This function is used in AO viewers to pack old query flags into the request
// so that they can talk to old dataservers properly. When the AO servers are deployed on agni
Expand Down
41 changes: 2 additions & 39 deletions indra/newview/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ set(viewer_SOURCE_FILES
bdfloaterposer.cpp
bdfloaterposecreator.cpp
bdposingmotion.cpp
fsfloatersearch.cpp
fslslpreproc.cpp
fslslpreprocviewer.cpp
gltfscenemanager.cpp
Expand All @@ -129,7 +130,6 @@ set(viewer_SOURCE_FILES
llagentbenefits.cpp
llagentcamera.cpp
llagentdata.cpp
llagenthandler.cpp
llagentlanguage.cpp
llagentlistener.cpp
llagentpicksinfo.cpp
Expand Down Expand Up @@ -167,7 +167,6 @@ set(viewer_SOURCE_FILES
llchiclet.cpp
llchicletbar.cpp
llclassifiedinfo.cpp
llclassifieditem.cpp
llcofwearables.cpp
llcolorswatch.cpp
llcommanddispatcherlistener.cpp
Expand Down Expand Up @@ -264,7 +263,6 @@ set(viewer_SOURCE_FILES
llfloatercreatelandmark.cpp
llfloaterdeleteprefpreset.cpp
llfloaterdestinations.cpp
llfloaterdirectory.cpp
llfloaterdisplayname.cpp
llfloatereditenvironmentbase.cpp
llfloatereditextdaycycle.cpp
Expand Down Expand Up @@ -331,14 +329,12 @@ set(viewer_SOURCE_FILES
llfloaterperformance.cpp
llfloaterperms.cpp
llfloaterprofile.cpp
llfloaterprofilelegacy.cpp
llfloaterpreference.cpp
llfloaterpreferencesgraphicsadvanced.cpp
llfloaterpreferenceviewadvanced.cpp
llfloaterpreviewtrash.cpp
llfloaterprofiletexture.cpp
llfloaterprogressview.cpp
llfloaterpublishclassified.cpp
llfloaterregiondebugconsole.cpp
llfloaterregioninfo.cpp
llfloaterreporter.cpp
Expand Down Expand Up @@ -370,7 +366,6 @@ set(viewer_SOURCE_FILES
llfloatervoiceeffect.cpp
llfloatervoicevolume.cpp
llfloaterwebcontent.cpp
llfloaterwebprofile.cpp
llfloaterwhitelistentry.cpp
llfloaterwindowsize.cpp
llfloaterworldmap.cpp
Expand Down Expand Up @@ -489,7 +484,6 @@ set(viewer_SOURCE_FILES
lloutputmonitorctrl.cpp
llpanelappearancetab.cpp
llpanelavatar.cpp
llpanelavatarlegacy.cpp
llpanelavatartag.cpp
llpanelblockedlist.cpp
llpanelclassified.cpp
Expand All @@ -499,7 +493,6 @@ set(viewer_SOURCE_FILES
llpaneleditwearable.cpp
llpanelemojicomplete.cpp
llpanelenvironment.cpp
llpaneleventinfo.cpp
llpanelexperiencelisteditor.cpp
llpanelexperiencelog.cpp
llpanelexperiencepicker.cpp
Expand Down Expand Up @@ -539,7 +532,6 @@ set(viewer_SOURCE_FILES
llpanelpeople.cpp
llpanelpeoplemenus.cpp
llpanelpermissions.cpp
llpanelpick.cpp
llpanelplaceinfo.cpp
llpanelplaceprofile.cpp
llpanelplaces.cpp
Expand All @@ -548,17 +540,8 @@ set(viewer_SOURCE_FILES
llpanelpresetspulldown.cpp
llpanelprimmediacontrols.cpp
llpanelprofile.cpp
llpanelprofilelegacy.cpp
llpanelprofileclassifieds.cpp
llpanelprofilepicks.cpp
llpanelsearchbase.cpp
llpanelsearchclassifieds.cpp
llpanelsearchevents.cpp
llpanelsearchgroups.cpp
llpanelsearchlandsales.cpp
llpanelsearchpeople.cpp
llpanelsearchplaces.cpp
llpanelsearchweb.cpp
llpanelsnapshot.cpp
llpanelsnapshotinventory.cpp
llpanelsnapshotlocal.cpp
Expand Down Expand Up @@ -591,7 +574,6 @@ set(viewer_SOURCE_FILES
llpersistentnotificationstorage.cpp
llphysicsmotion.cpp
llphysicsshapebuilderutil.cpp
llpickitem.cpp
llpipelinelistener.cpp
llplacesinventorybridge.cpp
llplacesinventorypanel.cpp
Expand All @@ -608,7 +590,6 @@ set(viewer_SOURCE_FILES
llpreviewtexture.cpp
llproductinforequest.cpp
llprogressview.cpp
llprofileimagepicker.cpp
llrecentpeople.cpp
llreflectionmap.cpp
llreflectionmapmanager.cpp
Expand Down Expand Up @@ -859,6 +840,7 @@ set(viewer_HEADER_FILES
bdfloaterposer.h
bdfloaterposecreator.h
bdposingmotion.h
fsfloatersearch.h
fslslpreproc.h
fslslpreprocviewer.h
gltfscenemanager.h
Expand Down Expand Up @@ -914,7 +896,6 @@ set(viewer_HEADER_FILES
llchiclet.h
llchicletbar.h
llclassifiedinfo.h
llclassifieditem.h
llcofwearables.h
llcolorswatch.h
llcommanddispatcherlistener.h
Expand Down Expand Up @@ -1011,7 +992,6 @@ set(viewer_HEADER_FILES
llfloatercreatelandmark.h
llfloaterdeleteprefpreset.h
llfloaterdestinations.h
llfloaterdirectory.h
llfloaterdisplayname.h
llfloatereditenvironmentbase.h
llfloatereditextdaycycle.h
Expand Down Expand Up @@ -1081,14 +1061,12 @@ set(viewer_HEADER_FILES
llfloaterperformance.h
llfloaterperms.h
llfloaterprofile.h
llfloaterprofilelegacy.h
llfloaterpreference.h
llfloaterpreferencesgraphicsadvanced.h
llfloaterpreferenceviewadvanced.h
llfloaterpreviewtrash.h
llfloaterprofiletexture.h
llfloaterprogressview.h
llfloaterpublishclassified.h
llfloaterregiondebugconsole.h
llfloaterregioninfo.h
llfloaterreporter.h
Expand Down Expand Up @@ -1120,7 +1098,6 @@ set(viewer_HEADER_FILES
llfloatervoiceeffect.h
llfloatervoicevolume.h
llfloaterwebcontent.h
llfloaterwebprofile.h
llfloaterwhitelistentry.h
llfloaterwindowsize.h
llfloaterworldmap.h
Expand Down Expand Up @@ -1228,7 +1205,6 @@ set(viewer_HEADER_FILES
lloutputmonitorctrl.h
llpanelappearancetab.h
llpanelavatar.h
llpanelavatarlegacy.h
llpanelavatartag.h
llpanelblockedlist.h
llpanelclassified.h
Expand All @@ -1238,7 +1214,6 @@ set(viewer_HEADER_FILES
llpaneleditwearable.h
llpanelemojicomplete.h
llpanelenvironment.h
llpaneleventinfo.h
llpanelexperiencelisteditor.h
llpanelexperiencelog.h
llpanelexperiencepicker.h
Expand Down Expand Up @@ -1279,7 +1254,6 @@ set(viewer_HEADER_FILES
llpanelpeople.h
llpanelpeoplemenus.h
llpanelpermissions.h
llpanelpick.h
llpanelplaceinfo.h
llpanelplaceprofile.h
llpanelplaces.h
Expand All @@ -1288,17 +1262,8 @@ set(viewer_HEADER_FILES
llpanelpresetspulldown.h
llpanelprimmediacontrols.h
llpanelprofile.h
llpanelprofilelegacy.h
llpanelprofileclassifieds.h
llpanelprofilepicks.h
llpanelsearchbase.h
llpanelsearchclassifieds.h
llpanelsearchevents.h
llpanelsearchgroups.h
llpanelsearchlandsales.h
llpanelsearchpeople.h
llpanelsearchplaces.h
llpanelsearchweb.h
llpanelsnapshot.h
llpanelteleporthistory.h
llpaneltiptoast.h
Expand Down Expand Up @@ -1326,7 +1291,6 @@ set(viewer_HEADER_FILES
llpersistentnotificationstorage.h
llphysicsmotion.h
llphysicsshapebuilderutil.h
llpickitem.h
llpipelinelistener.h
llplacesinventorybridge.h
llplacesinventorypanel.h
Expand All @@ -1342,7 +1306,6 @@ set(viewer_HEADER_FILES
llpreviewsound.h
llpreviewtexture.h
llproductinforequest.h
llprofileimagepicker.h
llprogressview.h
llrecentpeople.h
llreflectionmap.h
Expand Down
21 changes: 0 additions & 21 deletions indra/newview/alavataractions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,8 @@
#include "roles_constants.h"

#include "llagent.h"
#include "llavataractions.h"
#include "llfloaterreg.h"
#include "llfloaterregioninfo.h"
#include "llfloaterreporter.h"
#include "llfloaterwebcontent.h"
#include "llslurl.h"
#include "llviewercontrol.h"
#include "llviewermenu.h"
Expand Down Expand Up @@ -856,21 +853,3 @@ bool ALAvatarActions::handleGodKick(const LLSD& notification, const LLSD& respon
}
return false;
}

// Webprofile junk... for posterity!

static void on_avatar_name_show_profile(const LLUUID& agent_id, const LLAvatarName& av_name)
{
LLFloaterWebContent::Params p;
p.url(getProfileURL(av_name.getAccountName())).id(agent_id.asString());
LLFloaterReg::showInstance("webprofile", p);
}

// static
void ALAvatarActions::showWebProfile(const LLUUID& id)
{
if (id.notNull())
{
LLAvatarNameCache::get(id, boost::bind(&on_avatar_name_show_profile, _1, _2));
}
}
3 changes: 0 additions & 3 deletions indra/newview/alavataractions.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,6 @@ class ALAvatarActions
static void godFreeze(const LLUUID& id);
static void godUnfreeze(const LLUUID& id);

// Webprofile
static void showWebProfile(const LLUUID& id);

private:
static bool handleParcelFreeze(const LLSD& notification, const LLSD& response);
static bool handleParcelEject(const LLSD& notification, const LLSD& response);
Expand Down
22 changes: 11 additions & 11 deletions indra/newview/alviewermenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,20 +410,20 @@ namespace

class ALToggleLocationBar : public view_listener_t
{
bool handleEvent(const LLSD& userdata) override
{
const U32 val = userdata.asInteger();
gSavedSettings.setU32("NavigationBarStyle", val);
return true;
}
bool handleEvent(const LLSD& userdata) override
{
const U32 val = userdata.asInteger();
gSavedSettings.setU32("NavigationBarStyle", val);
return true;
}
};

class ALCheckLocationBar : public view_listener_t
{
bool handleEvent(const LLSD& userdata) override
{
return userdata.asInteger() == (S32)gSavedSettings.getU32("NavigationBarStyle");
}
bool handleEvent(const LLSD& userdata) override
{
return userdata.asInteger() == (S32)gSavedSettings.getU32("NavigationBarStyle");
}
};
}

Expand Down Expand Up @@ -461,5 +461,5 @@ void ALViewerMenu::initialize_menus()
commit.add("View.ToggleCinematicMode", [](LLUICtrl* ctrl, const LLSD& param) { toggle_cinematic_mode(); });

view_listener_t::addMenu(new ALToggleLocationBar(), "ToggleLocationBar");
view_listener_t::addMenu(new ALCheckLocationBar(), "CheckLocationBar");
view_listener_t::addMenu(new ALCheckLocationBar(), "CheckLocationBar");
}
Loading

0 comments on commit 20fb5ad

Please # to comment.