Commit Graph

14778 Commits (4ef02bc1b6cf5e044d2cf57725eac1a4ccd7580d)

Author SHA1 Message Date
Nat Goodspeed 4ef02bc1b6 Introduce and use new sendReply() function for LLEventAPI methods.
Each LLEventAPI method that generates a reply needs to extract the name of the
reply LLEventPump from the request, typically from a ["reply"] key, copy the
["reqid"] value from request to reply, locate the reply LLEventPump and send
the enriched reply object. Encapsulate in sendReply() function before we
proliferate doing all that by hand too many more times.
2011-02-18 10:56:26 -05:00
Nat Goodspeed 89258376ff Automated merge with http://pdp47.lindenlab.com/cgi-bin/hgwebdir.cgi/brad/viewer-development/ 2011-02-17 19:28:34 -05:00
brad kittenbrink 930710ceec Added an EventAPI listener to LLWindow for hooking into key and mouse inputs. 2011-02-17 15:50:44 -08:00
Oz Linden eacd9d5d59 merge changes for storm-981 2011-02-16 15:52:05 -05:00
Nat Goodspeed 5946d84eef SWAT-484, SWAT-485: add LLSideTrayListener, a new LLEventAPI.
Expand XUI-visible LLUICtrl::CommitCallbackRegistry operations to include
"SideTray.Toggle" and "SideTray.Collapse".
Give LLSideTrayListener friend access to LLSideTray so it can query the
attached and detached tabs. Introduce tab_cast template to deal with the
unavailability of the LLSideTrayTab class outside of llsidetray.cpp.
2011-02-16 12:49:35 -05:00
Andrew Meadows c28fe65252 debug_console is now resizable
Reviewed with Callum Linden.
2011-02-14 14:15:12 -08:00
Oz Linden 3555849644 bump version number to 2.7.0 2011-02-14 16:58:46 -05:00
Oz Linden 068253b2fb Added tag 2.6.0-start for changeset 92e58e51776a 2011-02-14 16:57:10 -05:00
Nat Goodspeed 34ba85dd59 Automated merge with http://hg.secondlife.com/viewer-development 2011-02-14 14:45:47 -05:00
Merov Linden e15b543dd6 STORM-975 : pull into viewer-development 2011-02-11 17:42:37 -08:00
Merov Linden 58d8b666c2 STORM-833 : pull into viewer-development 2011-02-11 17:40:48 -08:00
Oz Linden 924be3f25c pull back release tag from viewer-beta 2011-02-11 11:38:27 -05:00
Dessie Linden 40abc0fe1e Added tag 2.5.0-release, DRTVWR-31_2.5.0-release for changeset b723921b5c71 2011-02-11 08:08:00 -08:00
Merov Linden 547b40bfc8 STORM-986 : Fix for Linux build 2011-02-10 11:56:06 -08:00
callum 6a5d194526 STORM-986 FIX (build error/Linux) media_plugin_webkit errors on some Windows systems 2011-02-10 11:51:53 -08:00
Merov Linden 9aaf4b3ba7 STORM-981 : Fix Linux link issues when LL_TESTS is ON 2011-02-09 22:08:43 -08:00
Nat Goodspeed dad558250f Add test to call map-style functions with full map/array params.
Test also passes overlong arrays and maps with extraneous keys; in all cases
we expect the same set of values to be passed to the registered functions.
2011-02-09 23:28:10 -05:00
Merov Linden 76cb9a7796 STORM-986 : pull into viewer-development 2011-02-09 20:18:26 -08:00
Merov Linden b82f2c4e4d pull from viewer-development 2011-02-09 15:10:26 -08:00
Seth ProductEngine 65e88ce61d STORM-833 FIXED "i" button overlapping text in name list controls like Group Members list. 2011-02-10 00:34:54 +02:00
Xiaohong Bao b6571ee127 Automated merge with http://hg.secondlife.com/viewer-development 2011-02-09 12:16:00 -07:00
Xiaohong Bao 8d43cb2701 trivial: remove some redundant code. 2011-02-09 12:15:21 -07:00
callum 0ea1b472c6 Additional fix for llmediaplugintest compilation failure after fix for VWR-21275 2011-02-09 10:12:20 -08:00
Xiaohong Bao 54cced2356 debug code for SH-924: [PUBLIC-JIRA-USERS] Viewer crash in LLSurface::getWaterHeight 2011-02-09 10:33:07 -07:00
Merov Linden e58cbfa53e STORM-601 : pull into viewer-development 2011-02-08 22:26:03 -08:00
Merov Linden 300c79e7af STORM-433 : pull into viewer-development 2011-02-08 22:25:10 -08:00
Merov Linden 1c47a23d6b STORM-507 : pull into viewer-development 2011-02-08 22:24:26 -08:00
Merov Linden 47642e96f9 STORM-953 : pull into viewer-development 2011-02-08 22:23:32 -08:00
Merov Linden 6ba900073f STORM-955 : pull into viewer-development 2011-02-08 22:22:25 -08:00
Merov Linden 2a13dc7930 STORM-960 : pull into viewer-development 2011-02-08 22:21:15 -08:00
Nat Goodspeed c994d7937e SWAT-481: add event wrapper for LLFloaterReg::instanceVisible() 2011-02-08 19:44:21 -05:00
callum 7e6ce12a17 VWR-21275 FIX // *SOME* Windows systems fail to load the Qt plugins if the current working
Reviewed by Richard - http://codereview.lindenlab.com/6011001/
2011-02-08 15:37:12 -08:00
Jonathan Yap 979cd0300f STORM-975 forgot to update contributions.txt 2011-02-07 11:55:17 -05:00
Nat Goodspeed a4d0a29c49 For test purposes, capture at registration each function's Vars*.
We'd introduced FunctionsTriple to associate a pair of registered function
names with the Vars* on which those functions should operate. But with more
different tests coming up, it became clear that restating the Vars* every time
a given function name appeared in any such context was redundant.
Instead, extended addf() to accept and store the relevant Vars* for each
registered function, be it the global Vars for the free functions and static
methods or the stack Vars for the non-static methods.
Added varsfor() function to retrieve and validate the Vars* for a given
function name.
Eliminated array_funcs() function, restating aggregates of names to test as
LLSD collections. Where before these were coerced into a separate LLSD map
with ["a"] and ["b"] keys, that map can now be part of the original structure.
2011-02-07 11:53:58 -05:00
Nat Goodspeed 1a1563bb15 Untested support for passing array to map-registered function.
An array-registered function has no param names, so you can only pass an
array: a map would be meaningless. Initial implementation of map-registered
functions assumed that since you CAN pass a map, you MUST pass a map. But in
fact it's meaningful to pass an array as well -- for whatever reason -- and
easy to implement, so there you are. Tests to follow.
2011-02-06 21:32:25 -05:00
Jonathan Yap 3b246d3182 STORM-975 Duplicated menu entry Develop/Ui/Region Debug Console 2011-02-06 18:26:47 -05:00
Nat Goodspeed f4f3791a5f Add test verifying passing LLSD() to const char* parameter.
LLSDParam<const char*> is coded to pass NULL for an isUndefined() LLSD value,
so event-based caller can choose whether to pass NULL, "" or whatever string
value to such a parameter. Ensure this behavior.
2011-02-06 11:57:19 -05:00
Nat Goodspeed e51ccdac0e Introduce zipmap() function and use it in place of frequent loops.
One operation we often use is to take an LLSD array of param names, a
corresponding LLSD array of values, and create from them a name=value LLSD
map. Instead of doing that "by hand" every time, use a function.
2011-02-05 23:31:11 -05:00
Nat Goodspeed 934e8c3976 Make array-funcs success test exercise args-array-too-long case too.
Streamline a bit more redundancy from the code in that test.
2011-02-05 22:49:53 -05:00
Nat Goodspeed 54b1db2f65 Consolidate paramsa, paramsb, et al., into ["a"], ["b"] arrays.
Following the C++ convention of having two distinct somethigna, somethingb
names, initially we introduced paramsa, paramsb LLSD arrays, following that
convention all the way down the line. This led to two distinct loops every
time we wanted to walk both arrays, since we didn't want to assume that they
were both the same size. But leveraging the fact that distinct LLSD arrays
stored in the same LLSD container can in fact be of different lengths,
refactored all the pairs of vars into top-level LLSD maps keyed by ["a"] and
["b"]. That lets us perform nested loops rather than duplicating the logic,
making test code much less messy.
2011-02-05 22:29:43 -05:00
Nat Goodspeed 230d22ceb2 Fix Vars::cp dangling-pointer problem.
Naively storing a const char* param in a const char* data member ignores the
fact that once the caller's done, the string data referenced by that pointer
will probably be freed. Store the referenced string in a std::string instead.
2011-02-05 11:30:52 -05:00
Nat Goodspeed 950cac24cc Add successful calls to array-style functions. 2011-02-05 11:11:20 -05:00
Merov Linden 09b009fc23 STORM-610 : Backing out that change (test fail) 2011-02-04 16:38:26 -08:00
Merov Linden 6371ce7727 Clean up license headers in a handfull of files 2011-02-04 15:38:15 -08:00
Merov Linden a8952915e3 STORM-655 : Pull into viewer-development 2011-02-04 15:26:14 -08:00
Merov Linden 422174a804 STORM-610 : Pull into viewer-development 2011-02-04 15:25:10 -08:00
Seth ProductEngine 2c911fce8a STORM-601 FIXED Color swatch now receives focus on mouse click. 2011-02-04 23:22:42 +02:00
Nat Goodspeed f18885e55d Change FunctionsTriple refs to pointers to facilitate passing.
A certain popular-but-dumb compiler seems to think that initializing a
std::vector from a pair of iterators requires assignment. A struct containing
a reference cannot be assigned. Pointers get us past this issue.
2011-02-04 14:54:20 -05:00
Seth ProductEngine 287c3fcffc STORM-433 FIXED Fixed reshaping notification panel with friendship offer when it is inserted into IM chat. 2011-02-04 21:01:01 +02:00
Nat Goodspeed f0c1c4f5b0 Move FunctionsTriple data to function returning vector<same>.
We want to break out a couple different test methods that both need the same
data. While we could define a std::vector<FunctionsTriple> in the
lleventdispatcher_data class and initialize it using a classic {} initializer
as in array_funcs(), using a separate function puts it closer to the tests
consuming that data, and helps reduce clutter in the central data class.
Either way, it's cool that BOOST_FOREACH() handles the gory details of
iterating over a std::vector vs. a classic-C array.
2011-02-04 10:57:48 -05:00