Commit Graph

64 Commits (c04ceedbc3e462098eceaa233cd26f6bed79b773)

Author SHA1 Message Date
Rider Linden c04ceedbc3 Baseline for settings changes 2017-09-19 15:50:30 -07:00
andreykproductengine 0dcb423cf3 MAINT-7145 Eliminate LLSingleton circular references 2017-04-25 17:48:34 +03:00
andreykproductengine 5b5ee18f6f MAINT-7330 Fixed circularity of environmental singletons 2017-04-24 19:55:55 +03:00
Oz Linden c8726aba30 remove execute permission from many files that should not have it 2015-11-10 09:48:56 -05:00
Oz Linden 5c6cf3e7fb restore the ll[io]fstream because we need them as wrappers on Windows for wide char paths; on other platforms they are now just typedefs to the std classes 2015-04-10 11:02:37 -04:00
Oz Linden 8b42c7898e replace llifstream and llofstream with std::ifstream and std::ofstream respectively 2015-04-07 17:59:28 -04:00
Oz Linden 3a57b18896 convert llifstream and llofstream to std::ifstream and std::ofstream respectively 2015-04-07 17:28:05 -04:00
Richard Linden 697d2e720b renamed TimeBlock to BlockTimerStatHandle 2013-10-15 20:24:42 -07:00
Richard Linden 80dfbbaacd merge from viewer-release 2013-10-08 11:59:24 -07:00
Graham Linden 2a03e8f9fb MAINT-3172 fix rendering regressions from release mergedown 2013-09-20 16:44:39 -07:00
Richard Linden cbe397ad13 changed fast timer over to using macro
another attempt to move mem stat into base class
2013-09-05 14:04:13 -07:00
Richard Linden e340009fc5 second phase summer cleaning
replace llinfos, lldebugs, etc with new LL_INFOS(), LL_DEBUGS(), etc.
2013-08-09 17:11:19 -07:00
Richard Linden a2e22732f1 Summer cleaning - removed a lot of llcommon dependencies to speed up build times
consolidated most indra-specific constants in llcommon under indra_constants.h
fixed issues with operations on mixed unit types (implicit and explicit)
made LL_INFOS() style macros variadic in order to subsume other logging methods
such as ll_infos
added optional tag output to error recorders
2013-07-30 19:13:45 -07:00
simon ee2fce8790 Merge downstream code and viewer-beta 2013-05-09 14:10:45 -07:00
Graham Madarasz bf6182daa8 Update Mac and Windows breakpad builds to latest 2013-03-29 07:50:08 -07:00
Dave Parks 609ed855e1 MAINT-2371 More optimizations.
Reviewed by Graham
2013-03-04 18:01:42 -06:00
Nat Goodspeed 3653727e7f Introduce new LLDir::findSkinnedFilenames() method. Use as needed.
In a number of different places, for different reasons, the viewer wants to
load a UI-related file that might be overridden by a non-default skin; and
within that skin, might further be overridden by a non-default language.
Apparently, for each of those use cases, every individual developer approached
it as an entirely new problem, solving it idiosyncratically for that one case.
Not only is this a maintenance problem, but it rubs one's nose in the fact
that most such solutions consider only a subset of the relevant skin
directories.
Richard and I evolved an API intended to address all such cases: a central
LLDir method returning a list of relevant pathnames, from most general to most
localized, filtered to present only existing files; plus a couple of
convenience methods to specifically obtain the most general and most localized
available file.
There were several load-skinned-file methods (LLFloater::buildFromFile(),
LLPanel::buildFromFile() and LLUICtrlFactory::createFromFile() -- apparently
cloned-and-modified from each other) that contained funky bolted-on logic to
output the loaded data to an optional passed LLXMLNodePtr param. The trouble
is that passing that param forced each of these methods to subvert its normal
search: specifically for that case, it needed to find the baseline XML file
instead of the localized one. Richard agreed that for the intended usage
(reformatting XML files) we should use XML schema instead, and that the hacky
functionality should be removed. Remove it. Also remove
LLUICtrlFactory::getLocalizedXMLNode(), only used for those three special cases.
Some callers explicitly passed the optional LLXMLNodePtr param as NULL. Remove
that.
Remove LLFloaterUIPreview::displayFloater(save) param, which relied on the
optional output LLXMLNodePtr param. Make onClickSaveFloater() and
onClickSaveAll() emit popupAndPrintWarning() about discontinued functionality.
Recast LLFloater::buildFromFile(), LLPanel::buildFromFile(),
LLUICtrlFactory::createFromFile(), LLNotifications::loadTemplates(),
LLUI::locateSkin(), LLFontRegistry::parseFontInfo(),
LLUIColorTable::loadFromSettings(), LLUICtrlFactory::loadWidgetTemplate(),
LLUICtrlFactory::getLayeredXMLNode(), LLUIImageList::initFromFile(),
LLAppViewer::launchUpdater() and LLMediaCtrl::navigateToLocalPage() to use
findSkinnedFilenames(). (Is LLAppViewer::launchUpdater() ever called any more?
Apparently so -- though the linux-updater.bin logic to process the relevant
command-line switch has been disabled. Shrug.) (Is
LLMediaCtrl::navigateToLocalPage() ever used?? If so, why?)
Remove LLUI::setupPaths(), getXUIPaths(), getSkinPath() and
getLocalizedSkinPath(). Remove the skins/paths.xml file read by setupPaths().
The only configuration it contained was the pair of partial paths "xui/en" and
"xui/[LANGUAGE]" -- hardly likely to change. getSkinPath() specifically
returned the first of these, while getLocalizedSkinPath() specifically
returned the second. This knowledge is now embedded in findSkinnedFilenames().
Also remove paths.xml from viewer_manifest.py.
Remove injected xui_paths from LLFontGL::initClass() and
LLFontRegistry::LLFontRegistry(). These are no longer needed since
LLFontRegistry can now directly consult LLDir for its path search. Stop
passing LLUI::getXUIPaths() to LLFontGL::initClass() in LLViewerWindow's
constructor and initFonts() method.
Add LLDir::append() and add() methods for the simple task of combining two
path components separated by getDirDelimiter() -- but only if they're both
non-empty. Amazing how often that logic is replicated. Replace some existing
concatenations with add() or append().
New LLDir::findSkinnedFilenames() method must know current language. Allow
injecting current language by adding an LLDir::setSkinFolder(language) param,
and pass it where LLAppViewer::init() and initConfiguration() currently call
setSkinFolder(). Also add LLDir::getSkinFolder() and getLanguage() methods.
Change LLFLoaterUIPreview's LLLocalizationResetForcer helper to "forcibly
reset language" using LLDir::setSkinFolder() instead of LLUI::setupPaths().
Update LLDir stubs in lldir_stub.cpp and llupdaterservice_test.cpp.
Add LLDir::getUserDefaultSkinDir() to obtain often-overlooked possible skin
directory -- like getUserSkinDir() but with "default" in place of the current
skin name as the last path component. (However, we hope findSkinnedFilenames()
obviates most explicit use of such individual skin directory pathnames.)
Add LLDir unit tests for new findSkinnedFilenames() and add() methods -- the
latter exercises append() as well.
Tweak indra/integration_tests/llui_libtest/llui_libtest.cpp for all the above.
Notably, comment out its export_test_floaters() function, since the essential
LLFloater::buildFromFile(optional LLXMLNodePtr) functionality has been
removed. This may mean that llui_libtest.cpp has little remaining value, not
sure.
2012-10-10 14:57:43 -04:00
Leslie Linden c4084c7138 SH-2592 PROGRESS -- (OS X Lion) Graphics issues with Atmospheric Shaders enabled on Intel HD 3000, 10.7.2
Refactored WindLight estate settings to use float uniforms in the shaders that
only need it, rather than vec4's for everything.
2012-01-30 15:29:53 -08:00
Vadim ProductEngine 31c1cff64f STORM-1262 FIXED Removed the original Windlight Region Settings implementation. 2011-07-06 00:42:28 +03:00
Vadim ProductEngine 4fd946fa3e STORM-1305 WIP User sky presets now go first in all lists. 2011-06-10 23:44:13 +03:00
Vadim ProductEngine 0d1cc56eb1 STORM-1279 FIXED Changing sky preset with a keyboard shortcut now updates the Environment Settings floater.
Changes:
* Subscribed the floater to the "settings changed" signal of the environment manager.
* Rewrote the floater to not modify settings only when the Save button is pressed.
* Refactoring to eliminate code duplication.
2011-06-10 18:21:32 +03:00
Vadim ProductEngine 7151a4e6b0 STORM-1255 WIP Consistency pass on sky presets removal.
* Update all related floaters when a sky preset gets removed.
* Don't allow removing skies referenced by (local) day cycles.
* Other minor fixes.
2011-06-07 17:41:26 +03:00
Vadim ProductEngine 4e05ea6ebd STORM-1255 WIP Implemented creating, editing and removing local sky presets. 2011-06-07 00:17:21 +03:00
Vadim ProductEngine dda7df4ac9 STORM-1253 WIP Debugging stuff. 2011-06-02 18:35:23 +03:00
Vadim ProductEngine 04f680a5c3 STORM-1245 WIP Fixed sky initialization to apply user preferences correctly. 2011-05-30 22:57:24 +03:00
Vadim ProductEngine 48fe540129 STORM-1253 WIP Fixed loading user day cycle on start-up; improved error handling. 2011-05-30 22:34:56 +03:00
Vadim ProductEngine 4f8098344e STORM-1284 ADDITIONAL_FIX Fixing build errors. 2011-05-26 20:52:10 +03:00
Vadim ProductEngine c0037909d5 STORM-1284 FIXED Changes to region environment are now visible immediately.
Pressing "Apply" sends the settings update to server.
Pressing "Cancel" reverts to current region settings.
2011-05-26 19:32:20 +03:00
Vadim ProductEngine c32b19f31d STORM-1253 WIP Implemented switching between multiple day cycles (locally and region-wide). 2011-05-26 15:11:01 +03:00
Vadim ProductEngine 047f69bf61 STORM-1256 WIP Fixed resetting the Environment tab if a server env. update comes while your preference is using personal env. settings.
The fix is to re-add server skies to our WL param mgr regardless of user preferences.
2011-05-24 19:05:41 +03:00
Vadim ProductEngine b60c63bf07 STORM-1256 WIP Implemented editing region environment settings via the Region/Estate floater. 2011-05-23 19:26:17 +03:00
Vadim ProductEngine 0c358f78ab STORM-1269 FIXED Teleport to a region that has no env. settings now resets environment to defaults. 2011-05-19 21:10:34 +03:00
Vadim ProductEngine 001b9e5ae3 Merge from viewer-development. 2011-05-17 21:53:10 +03:00
Vadim ProductEngine 242f45d167 STORM-1245 WIP Fixed switching to day cycle. 2011-05-17 17:33:08 +03:00
Seth ProductEngine ec749bb1c1 STORM-1244 FIXED Environment Settings floater implementation. 2011-05-17 17:09:15 +03:00
Vadim ProductEngine 348218e40f STORM-1245 WIP Restored environment settings interpolation on region crossing.
Also got rid of duplicated region environment settings requests.
2011-05-17 16:26:55 +03:00
Vadim ProductEngine 912f021bb1 STORM-1245 WIP Implement loading and applying region environment settings. 2011-05-16 17:17:22 +03:00
Vadim ProductEngine cccca566bd STORM-1245 WIP Reimplementing management of local presets according to the new spec.
User environment preferences are now persistent.

TODO: Implement applying region env. settings.
2011-05-16 17:17:01 +03:00
Seth ProductEngine e213a36f70 STORM-477 Restored the backed out changeset: b62b260aa04d 2011-05-11 18:12:23 +03:00
Vadim ProductEngine 5a0547cdc3 STORM-1126 merge 2011-03-31 18:46:56 +03:00
Vadim ProductEngine 48309dcb3f STORM-1126 WIP Windlight Estate Settings integration: pass 8
Eliminated more merge artifacts (superflous copyright changes).
2011-03-31 18:24:01 +03:00
Vadim ProductEngine 79fb8e2ec2 STORM-1126 WIP Windlight Estate Settings integration: pass 4
Changes:
* Fixed incorrect way to pass parameters to notifications.
* Fixed crashes in the Advanced Sky floater and the Region Terrain panel.
* Fixed initialization and multiple instantiation of the Day Cycle floater
  (that might lead to incorrect behavior).
* Fixed and re-enabled committing env. settings changes to region.
* Fixed day cycle and sky settings being sent as empty arrays and therefore not passing validation on server.
  It is now possible to change region environment settings.
* Added debug messages.
2011-03-31 18:24:01 +03:00
tiggs@lindenlab.com 758fdbfe12 STORM-1126 WIP Windlight Estate Settings port from 1.23: baseline: read only windlight works
(resubmitted by Vadim ProductEngine)
2011-02-23 17:44:18 -05:00
Oz Linden 4fa6500b51 STORM-480 remove unused "wrap" parameter from LLDir::getNetFileInDir
--HG--
branch : storm-102
2010-10-28 18:09:09 -04:00
Nyx (Neal Orman) 2fb337bc12 STORM-1126 WIP Windlight Estate Settings port from 1.23: second pass at getting windlight ported to V2.
Lots of cleanup in the floater classes. Not sure every decision was correct
but it compiles now. Doesn't link yet.

(resubmitted by Vadim ProductEngine)
2010-09-30 23:21:23 -04:00
Nyx (Neal Orman) e045d212d3 STORM-1126 WIP Windlight Estate Settings port from 1.23: first pass at merging in windlight estate settings to viewer-dev codebase.
not built, not tested. Probably needs a bunch of fixes to be able
to be integrated.

(resubmitted by Vadim ProductEngine)
2010-09-27 22:56:08 -04:00
Oz Linden 06b0d72efa Change license from GPL to LGPL (version 2.1) 2010-08-13 07:24:57 -04:00
brad kittenbrink cb9b874b17 Merge of my old precompiled headers dependency cleanup with tip of viewer-2-0. 2009-12-14 11:07:29 -08:00
brad kittenbrink 47c68ba226 Added better error handling to LLEventHost, so we no longer crash when shutting down.
Also cleaned up logging in llstartup, llwlparammanager, and llwaterparammanager.
reviewed by Mani.
2009-12-10 17:17:12 -08:00
brad kittenbrink 1ea60591a9 Refactoring of llviewerprecompiledheaders.h to hopefully increase stability
and reduce unnecessary dependencies and incredibuild wedging.  Hopefully in
the long run this will reduce build time.  Also cleaned up a lot of header
file usage to conform better to the coding standard.

reviewed by james and steve.
2009-11-13 20:33:59 -05:00