Commit Graph

157 Commits (8863d9beaf89eac9d72a9b8c326c92ab709a8438)

Author SHA1 Message Date
Tank_Master 8863d9beaf Compile fixes 2014-06-09 23:27:05 -07:00
Tank_Master 6babf8abd2 Merge LL 3.7.7 2014-06-09 11:29:57 -07:00
Ansariel ae633cac85 FIRE-10616: Backed out e95b398e732a - has too many unwanted side effects 2014-03-14 11:01:13 +01:00
Ansariel 2d8ec87d94 FIRE-10616: Disable editing of scripts in preprocessed tab; Patch contributed by Sei Lisa 2014-01-28 11:28:31 +01:00
Richard Linden 52da9f5f49 merge with viewer-release 2013-09-09 18:58:41 -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
Oz Linden 9f393c1d99 merge up to latest snowstorm integration branch 2013-07-24 14:40:23 -04:00
Richard Linden 0a96b47663 merge with viewer-release 2013-06-05 19:05:43 -07:00
Graham Madarasz bf6182daa8 Update Mac and Windows breakpad builds to latest 2013-03-29 07:50:08 -07:00
Oz Linden 6f2fef886e merge changes for storm-1911 2013-03-25 10:53:37 -04:00
Richard Linden f07b9c2c69 renamed LLTrace stat gathering classes/methods to make the structure of LLTrace clearer
Count becomes CountStatHandle
Count.sum becomes sum(Count, value), etc.
2013-03-06 11:08:25 -08:00
Cinders bafb68ec67 Change some ifs to ifdefs just because. 2013-09-19 21:13:31 -06:00
Tank_Master 5a8d94c50f Merge LL 3.6.4 pass 1 2013-08-28 00:10:39 -07:00
Cinders acbf4e4e54 Clean up some log spamming 2013-08-02 18:53:14 -06:00
Tank_Master 478de75a95 Merge 2013-07-09 16:48:18 -07:00
Tank_Master d4640277d0 Merge LL 3.5.3 release. 2013-07-09 16:24:58 -07:00
Cinders e756c774ff FIRE-10792: Customize function syntax highlighting 2013-07-08 15:45:55 -06:00
Cinders efe708ef12 One more time, a new format for script library xml:
*Do not use llsd-xml, use our new format
*Include constants and keywords in the script library, deprecate keywords.ini and remove parsing it
*Readd energy and sleep time values
*Minor bug fixes in llpreviewscript.cpp
2013-07-08 15:01:25 -06:00
Tank_Master 688cca8a73 Merge 2013-07-06 21:19:49 -07:00
ziree c0c7944272 Bring back Save and Edit buttons in the script editor, make Vintage skin look more vintage. FIRE-10333 2013-07-04 15:54:25 +02:00
Tank_Master c61db3d380 Merge LGPL tip 2013-06-26 12:59:37 -07:00
Tank_Master 14001c54df Gastly CHUI merge pass 1, don't count on anything to work. 2013-06-26 12:14:54 -07:00
Cinders 785e9d65f9 Move script function tooltips to scriptlibrary*.xml so they can be dynamically updated too. 2013-06-22 18:34:44 -06:00
Cinders 62f04088f0 Dynamically loaded script library
*Script libraries for different platforms are loaded dynamically at startup via xml
*Remove unused LSO byte code compiler
2013-06-20 11:24:34 -06:00
Cinders bcc9e7a3a1 Fixed loading OSSL keywords twice to the script editor, add to the editor and post editor 2013-06-12 21:07:24 -06:00
Cinders 155724d44c FIRE-10611 & FIRE-10606 with contributions from Sei Lisa 2013-06-12 21:01:19 -06:00
Cinders 705c3078cf More various script editor improvements 2013-05-20 21:52:24 -06:00
Cinders 5b716795ab More changes to keywords.ini:
* Don't read colors from the ini, use LLUIColorTable and let the users and skin artists choose colors
* Define more specific sections in the ini
* Standardize sections to only contain the section name, no readColor() hack!
* Expose color settings for syntax highlighting to the user
2013-05-16 13:28:12 -06:00
Cinders 3ba61041c7 Move OSSL keywords to their own .ini Don't hardcode the preprocessor directives, give them their own .ini to load too. 2013-05-15 20:43:38 -06:00
Cinders ee4118a35b Advanced Scripting IDE 2013-05-15 13:52:01 -06:00
Kitty Barnett a9ffc0120a Merged with default tip (Revision 13149a524874)
--HG--
branch : RLVa
2013-05-06 23:54:58 +02:00
Kitty Barnett e1b955226d Merged with viewer-sunshine tip (Revision bd1162cb6fbe)
--HG--
branch : RLVa
2013-02-11 23:04:05 +01:00
William Todd Stinson 67bc42a80a Pull and merge from ssh://hg@bitbucket.org/lindenlab/viewer-beta. 2012-11-20 16:20:40 -08:00
Richard Linden c0224cc47a merge with viewer-development 2012-11-19 19:06:36 -08:00
Richard Linden a52d203a4f SH-3405 WIP convert existing stats to lltrace system
started conversion of llviewerassetstats
removed old, dead LLViewerStats code
made units tracing require units declaration
clean up of units handling
2012-10-17 20:00:07 -07:00
Richard Linden 8d2f7a5265 SH-3405 WIP convert existing stats to lltrace system
converted all remaining LLViewerStats to lltrace
2012-10-15 19:43:35 -07:00
MartinRJ Fayray 005cd40247 STORM-1911: Go-to line function for the internal LSL script editor 2012-09-19 00:49:34 +02: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
Ansariel 9ce7c25711 FIRE-8486: Restoring scripts after a viewer crash turns into dialogue spamming 2013-02-08 15:17:19 +01:00
Tank_Master cc44316aed Merge LL 3.4.3,
Note: aligned some of our code with LL's, spcifically feature table, gpu table, texture fetching, and some rendering defaults behavior.
2012-12-18 00:36:35 -08:00
Kitty Barnett 40df5014c8 FIRE-6094 Save the unprocessed script for recovery purposes 2012-11-28 15:50:55 +01:00
Kitty Barnett f168b2db27 FIRE-6094 Import 'script recovery' (through changeset 26dd79c2b49d) 2012-11-26 23:04:24 +01:00
Nicky ffad1a505f Crashfix: Make sure self->mPostEditor exists before using it. 2012-07-11 23:53:08 +02:00
Tonya Souther ff88285622 Fix script contents clobbered when Edit button clicked with preprocessor active (FIRE-6122). From Chalice Yao/NaCl. 2012-05-14 14:27:10 -05:00
Richard Linden 23f7db3cee allow nested modifier tags (e.g. Lazy, Atomic) in param block entries 2012-04-20 13:52:49 -07:00
Ima Mechanique ce6bd89ca4 Changes per Oz's suggestion on RB. 2012-01-04 15:16:35 +00:00
Kitty Barnett 75718fbfd9 Merged with default tip (Revision 286d73ff5c19)
--HG--
branch : RLVa
2012-01-13 14:18:19 +01:00
Ima Mechanique 04d5ba4ab9 General cleanup of new code (removing commented lines, experimetal stuff), adding some comments per RB feedback. 2011-12-09 09:51:25 +00:00
Ima Mechanique 468543c944 Reverting the changes to default script which leaked in from another project ;-) 2011-12-08 10:33:23 +00:00