summaryrefslogtreecommitdiff
path: root/indra/newview/llpresetsmanager.cpp
AgeCommit message (Collapse)Author
2017-12-20MAINT-8087: Use env vars from VMP for AppData\Roaming and Local.Nat Goodspeed
On Windows, when logged in with a non-ASCII username, every one of the three documented APIs -- SHGetSpecialFolderPath(), SHGetFolderPath() and SHGetKnownFolderPath() -- fails to retrieve any pathname at all. We cannot account for the fact that the oldest of these continues to work with the release viewer and within a Python script (though not, curiously, from a Python interactive session). With a non-ASCII username, they consistently fail when called from an Alex Ivy viewer build: "The filename, directory name, or volume label syntax is incorrect." Empirically, with a non-ASCII username, the preset APPDATA and LOCALAPPDATA environment variables are also useless, e.g. c:\Users\??????\AppData\Roaming where those are, yup, actual question marks. Empirically, the VMP is able to successfully call SHGetFolderPath() to retrieve both AppData\Roaming and AppData\Local. Therefore, we make the VMP set the APPDATA and LOCALAPPDATA environment variables to the UTF-8 encoded correct pathnames. Instead of calling SHGetSomethingFolderPath() at all, make LLDir_Win32 retrieve those environment variables. Make LLFile::mkdir() treat "directory already exists" as a success case. Every single call fell into one of two categories: either it didn't check success at all, or it tested specially to exempt errno == EEXIST. Migrate that test into mkdir(); eliminate it from call sites. Make LLDir::append() and add() convenience functions accept variadic arguments. Replace add(add()...) constructs, as well as clumsy concatenations of directory names and getDirDelimiter(), with simple variadic add() calls.
2017-05-08DRTVWR-418: Fix vector assignment for C++03.Nat Goodspeed
For the time being we're still compiling for production with C++03. Although assigning an initializer list to a vector is valid C++11, in C++03 mode clang rejects it.
2017-02-23DRTVWR-418: Fix a round of compile errors surfaced by -std=c++11.Nat Goodspeed
These are mostly things that were in fact erroneous, but accepted by older compilers. This changeset has not yet been built with Visual Studio 2013 or Linux gcc, even with -std=c++11. This changeset has not been built *without* -std=c++11. It should be used in conjunction with a corresponding change to LL_BUILD_DARWIN_BASE_SWITCHES in viewer-build-variables/variables. This is a work in progress. We do not assert that this changeset completes the work needed to turn on -std=c++11, even on the Mac.
2016-10-12MAINT-6813 Opening Preferences floater takes too much time to open on login ↵Mnikolenko Productengine
screen on some machines
2016-07-05MAINT-6550 Graphic preset name including "\" causes preset to be unusable & ↵Mnikolenko Productengine
preset cannot be deleted.
2016-05-27MAINT-6435 Deafult preset should set the same settings as the "Reset to ↵AndreyL ProductEngine
recommended settings" button
2016-03-23improve settings error log, and make type conversion methods staticOz Linden
2016-02-19FIXED Graphics presets do not work properly when localized "Default" stringAnsariel
2015-09-28MAINT-5542: fix initialization of Default graphics preset so that it is ↵Oz Linden
selectable
2015-08-19STORM-2120 Make graphics presets account specificOz Linden
2015-06-19workarounds to get this building again; note: review mute list caching ↵Oz Linden
change before promoting
2015-02-19STORM-2082 Fix edge case bugJonathan Yap
2015-01-21STORM-2082 Put "Default" at the top of the non-Delete comboboxes.Jonathan Yap
2015-01-20STORM-2082 Finally(?) deal properly with dirty UI processing.Jonathan Yap
Code cleanup, some per bitbucket comments.
2015-01-20STORM-2082 Still trying to work out the dirtyChilds issue. Also made some ↵Jonathan Yap
small UI adjustments.
2015-01-20STORM-2082 Update to new UI design. Bugs are not worked out yet.Jonathan Yap
2015-01-14STORM-2082 Assorted UI tweaks, better MaximumARC formula, pulldowns ↵Jonathan Yap
disappear faster
2015-01-07STORM-2082 Display active preset as first choice in dropdown boxJonathan Yap
2014-12-14STORM-2082 Remove ugly list of control names. Instead, obtain the list from ↵Jonathan Yap
the View data Remove a few remants used by the old hardware floater
2014-12-12STORM-2082 Merge Hardware floater into main graphics preferences displayJonathan Yap
Change notifications so they are emitted only when an error occurs Put active preset at top of list Add Maximum ARC slider Merge two small methods into slider update code
2014-12-09STORM-2082 Improve file error handling, add help topic labels to new floaters.Jonathan Yap
2014-12-03STORM-2082 Send signal to pulldown panel to refresh itselfJonathan Yap
2014-12-03STORM-2082 Remove Apply button.Jonathan Yap
Add new control variable to track which preset is active. Save settings to active preset when clicking on Ok button. Initial work to make pulldown operational. Still to do: add pretty icon for current preset. Notifications do not appear when called from this panel.
2014-12-02STORM-2082 Add Recommended buttonJonathan Yap
2014-12-01STORM-2082 Better control on how (or if) to display Default presetJonathan Yap
Make sure default preset is created when flyout panel is activated Only display deleted notification upon successful deletion
2014-12-01STORM-2082 Implement save floater and some code cleanup.Jonathan Yap
2014-11-30STORM-2082 Make code more generic to handle the future camera presets.Jonathan Yap
2014-11-30STORM-2082 Implement delete floaterJonathan Yap
2014-11-28STORM-2082 Initial support for presets popup from status barJonathan Yap
2014-11-27STORM-2082 Get writing out and loading presets workingJonathan Yap
2014-11-26STORM-2082 Code now fills comboboxJonathan Yap
2014-11-26STORM-2082 Start to convert code to support xml file processingJonathan Yap