summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerfoldertype.cpp
AgeCommit message (Collapse)Author
2016-09-15MAINT-5232: Normalize LLSingleton subclasses.Nat Goodspeed
A shocking number of LLSingleton subclasses had public constructors -- and in several instances, were being explicitly instantiated independently of the LLSingleton machinery. This breaks the new LLSingleton dependency-tracking machinery. It seems only fair that if you say you want an LLSingleton, there should only be ONE INSTANCE! Introduce LLSINGLETON() and LLSINGLETON_EMPTY_CTOR() macros. These handle the friend class LLSingleton<whatevah>; and explicitly declare a private nullary constructor. To try to enforce the LLSINGLETON() convention, introduce a new pure virtual LLSingleton method you_must_use_LLSINGLETON_macro() which is, as you might suspect, defined by the macro. If you declare an LLSingleton subclass without using LLSINGLETON() or LLSINGLETON_EMPTY_CTOR() in the class body, you can't instantiate the subclass for lack of a you_must_use_LLSINGLETON_macro() implementation -- which will hopefully remind the coder. Trawl through ALL LLSingleton subclass definitions, sprinkling in LLSINGLETON() or LLSINGLETON_EMPTY_CTOR() as appropriate. Remove all explicit constructor declarations, public or private, along with relevant 'friend class LLSingleton<myself>' declarations. Where destructors are declared, move them into private section as well. Where the constructor was inline but nontrivial, move out of class body. Fix several LLSingleton abuses revealed by making ctors/dtors private: LLGlobalEconomy was both an LLSingleton and the base class for LLRegionEconomy, a non-LLSingleton. (Therefore every LLRegionEconomy instance contained another instance of the LLGlobalEconomy "singleton.") Extract LLBaseEconomy; LLGlobalEconomy is now a trivial subclass of that. LLRegionEconomy, as you might suspect, now derives from LLBaseEconomy. LLToolGrab, an LLSingleton, was also explicitly instantiated by LLToolCompGun's constructor. Extract LLToolGrabBase, explicitly instantiated, with trivial subclass LLToolGrab, the LLSingleton instance. (WARNING: LLToolGrabBase methods have an unnerving tendency to go after LLToolGrab::getInstance(). I DO NOT KNOW what should be the relationship between the instance in LLToolCompGun and the LLToolGrab singleton instance.) LLGridManager declared a variant constructor accepting (const std::string&), with the comment: // initialize with an explicity grid file for testing. As there is no evidence of this being called from anywhere, delete it. LLChicletBar's constructor accepted an optional (const LLSD&). As the LLSD parameter wasn't used, and as there is no evidence of it being passed from anywhere, delete the parameter. LLViewerWindow::shutdownViews() was checking LLNavigationBar:: instanceExists(), then deleting its getInstance() pointer -- leaving a dangling LLSingleton instance pointer, a land mine if any subsequent code should attempt to reference it. Use deleteSingleton() instead. ~LLAppViewer() was calling LLViewerEventRecorder::instance() and then explicitly calling ~LLViewerEventRecorder() on that instance -- leaving the LLSingleton instance pointer pointing to an allocated-but-destroyed instance. Use deleteSingleton() instead.
2015-09-24MAINT-5282: I've removed most of the depricated Merchant Outbox code and the ↵Rider Linden
links to it in the menus. Also removed the Outbox Floater and made the folder always hidden if empty in inventory. (There may still be some outstanding Outbox code that was not obvious that I have missed.)
2014-09-14DD-175 : Prevent Marketplace Listings folder to be renamableMerov Linden
2014-07-22Sync merge with lindenlab/viewer-releaseMerov Linden
2014-06-17Merge viewer-release and become version 3.7.9simon
2014-06-07MAINT-4001 : Make Received Items not movable (protected), consolidate ↵Merov Linden
Received Items folders which may have been moved
2014-05-30DD-92 : pull merge lindenlab/sunshine-external to get AISv3 workMerov Linden
2014-05-30Pull merge from lindenlab/viewer-releaseMerov Linden
2014-05-13sunshine-external merge WIPBrad Payne (Vir Linden)
2014-04-22MergeXiaohong Bao
2014-04-22mergeBrad Payne (Vir Linden)
2014-04-21DD-66 : Use new icons for version folders and stock folderMerov Linden
2014-04-15DD-66 : WIP : Added new icons for stock foldersMerov Linden
2014-03-28DD-24 : Add FT_MARKETPLACE_STOCK as a new type for folders, implement the ↵Merov Linden
promotion code for Drag and Drop, display of stock folders and embryonic marketplace validation
2014-03-13DD-42 : Rename merchant items to marketplace listings to be consistent with specMerov Linden
2014-03-06DD-4, DD-5, DD-6, DD-7, DD-8: WIP : Add Merchant Items panel and make it ↵Merov Linden
somewhat work, in a clunky sort of way
2013-10-16mergeBrad Payne (Vir Linden)
2013-10-08merge from viewer-releaseRichard Linden
2013-08-09second phase summer cleaningRichard Linden
replace llinfos, lldebugs, etc with new LL_INFOS(), LL_DEBUGS(), etc.
2013-06-26SH-4305 WIP - cleanupBrad Payne (Vir Linden)
2013-01-25MAINT-2287 : WIP : Make inbox and outbox visible and accessible if ↵Merov Linden
InventoryOutboxMakeVisible is set (default is false)
2012-09-18CHUI-283: Now the avatar icon loads in the user's avatar image.Also the ↵Gilbert Gonzales
avatar image is of proper size. The participant of the conversation is offset correctly as well.
2012-09-13CHUI-283: Now upon the information icon and speaker icon do not overlap the ↵Gilbert Gonzales
username text. Instead the username text will be truncated with an ellipse to prevent the overlap. Also did a code cleanup.
2012-09-10CHUI-283: Basic Implementation, just have hard coded avatar icon appearing ↵Gilbert Gonzales
and profile/info buttons visible. profile/info buttons do not have proper positioning or mouseclick events.
2011-11-18EXP-1498, EXP-1595, EXP-1596 : Hide empty system folders in a dynamic way, ↵Merov Linden
turn the setting ON by default
2011-11-16EXP-1498 : Add a debug setting DebugHideEmptySystemFolders which is OFF by ↵Merov Linden
default so that we can control showing or hidding of system folders (this is temporary so we unblock testers).
2011-11-11EXP-1498 : Hide empty system folders. System folders can be specifically ↵Merov Linden
marked to be hidden if empty in the LLViewerFolderDictionary constructor.
2011-06-28EXP-922 FIX Purchased Direct Delivery items do not appear in Recent ↵Richard Linden
Inventory tab switched to using filters to hide inbox and show it for recent items only
2011-06-27mergeRichard Linden
2011-06-27preemptively adding folder type for basic inventory so we can update sim ↵Richard Linden
code to match
2011-06-08Merge from viewer-experienceLeslie Linden
2011-05-30Adding the outboxLeyla Farazha
2011-05-25hooking up marketplace inbox to inventoryLeyla Farazha
2010-10-13correct licenses (fix problem with license change merge)Oz Linden
2010-09-27mergeDave Parks
2010-09-25Fix for foldertype_bad_lookup nonsense (requires clearing of cache and ↵Dave Parks
bad_lookup folder and/or a fresh inventory copy from agni to take effect).
2010-09-24Added support for joint offsetsprep linden
2010-09-21Fix for build failures - disabling tcmalloc for nowBrad Payne (Vir Linden)
2010-08-13Change license from GPL to LGPL (version 2.1)Oz Linden
2010-06-15EXT-7829 FIXED Corrupted graphics in inventory side panel (gray box)Loren Shih
Took out ensemble folder icon use, replaced with default icons.
2010-06-11EXT-7824 FIXED Assert when changing folder type to "default"Loren Shih
Not a serious assert error, but added "default" folder type to get rid of it.
2010-06-10EXT-7430 : Create art overlay for inventory icons that are linksLoren Shih
Changed folder icon logic to use LLViewerFolderType (as it should always been doing).
2009-12-07EXT-2826 : Rename "Favorite" folder to "Favorites" folderLoren Shih
Only will affect new accounts. --HG-- branch : avatar-pipeline
2009-12-03EXT-2410 : Accepting an offered item should open the inventorySPLoren Shih
Added a new "Quiet" query for folder types, so I don't have to special case all the folders where we don't want UI notifications from inventory offers. Fixed a bug where a sidepanel was considered active even if the sidetray was closed. --HG-- branch : avatar-pipeline
2009-11-13EXT-2482 : Newly created folders have wrong default typeLoren Shih
Removed AT_ROOT_CATEGORY and FT_ROOT_CATEGORY since those types are unused. Changed FT_CATEGORY to FT_ROOT_INVENTORY to make its purpose more clear. This change assumes that no agent inventories have category type 9 for either inventory type or folder preferred type. --HG-- branch : avatar-pipeline
2009-11-04Redo Bao's broken mergeBryan O'Sullivan