Commit Graph

97 Commits (c52b4e27f2fbeb558eec3ea587fe88f8e5b947dd)

Author SHA1 Message Date
Oz Linden ddd5659f81 merge changes for DRTVWR-294 2013-04-19 10:11:29 -04:00
Graham Madarasz bf6182daa8 Update Mac and Windows breakpad builds to latest 2013-03-29 07:50:08 -07:00
Nyx Linden 1586107e87 SH-3944 WIP CHUI merge fixing
re-introduced don's refactor of low-level openGL calls pulling out of llui
and putting them into llrender. Took the new code from their updated versions
from the CHUI merge, but put them in a place accessible to appearance utility.
2013-03-12 22:34:15 +00: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
Richard Linden 40a74eb5b7 EXP-1711 FIX LLWindowShade doesn't stack multiple notifications 2011-12-12 12:32:22 -08:00
Richard Linden a507fc259b finished removing remnants of media browser 2011-11-07 15:04:53 -08:00
callum b94f45db81 Merge with head 2011-10-28 11:01:11 -07:00
Richard Linden 40dcdac27a remove ignore_ui_scale flags and use web content scaling for all web_browser widgets 2011-10-27 13:37:47 -07:00
callum 343562889e EXP-1471 WIP Add support for zooming web pages by a scale facxtor 2011-10-25 19:34:05 -07:00
Richard Nelson ec23ec68ea EXP-1310 FIX Profile button should open Web Profile floater
removed unused LLWeb functions for opening non-web media
moved logic inside floaters and away from auxiliary functions
2011-10-10 19:17:38 -07:00
Richard Linden b183b6f141 EXP-1196 FIX Fix param block template ordering
changed ordering of template loading relative to constructor setting of params
moved a lot of constructor-set params to template files
reviewed by Leslie
2011-09-06 14:45:11 -07:00
callum d341c400fc EXP-1122 FIX (Viewer) LLQtWebKit should support a JavaScript/content debugger to help content creators
Viewer side changes to enable Web debugger.
2011-08-29 17:13:29 -07:00
callum 0bf3ee7fa7 EXP-1111 FIX LLQtWebKit (and related media system) should log events, progress etc. to make debugging problems easier 2011-08-26 17:27:15 -07:00
Richard Linden 38ba526cc5 EXP-1009 WIP Teleport links from Search floater and destination guide in viewer fail with intrusted browser error in viewer 2011-07-13 17:59:53 -07:00
callum cf31723a1a EXP-844 INITIAL CHECKIN - FUNCTION DISABLED - As a first time user I would like to see a video after I log in that highlights the best features of Second Life 2011-06-06 17:12:17 -07:00
callum a53043e8e2 EXP-738 FIX Login screen background image takes too long to load
Misc improvements to make the login page load properly.
2011-04-22 12:05:30 -07:00
Richard Linden 08846c3f72 SOCIAL-509 FIX There is no way to copy a user name from web profile with the mouse
fixed spawning location of context menu
removed keyboard shortcuts from context menus (where they don't belong)
2011-03-25 13:06:28 -07:00
callum e9eff2b009 SOCIAL-808 FIX Crash on exit in LLMediaCtrl 2011-03-25 10:51:06 -07:00
Richard Linden a5572505d8 SOCIAL-509 FIX There is no way to copy a user name from web profile with the mouse 2011-03-24 19:37:00 -07:00
callum a57729b926 SOCIAL-634 FIX Error condition content for Destination Guide, Avatar Picker,
and Help if S3 content or web content is not available
2011-03-22 13:58:27 -07:00
callum efc57ea349 Fix for Mac specific compiler error. All enumerants of an enum have to be present in a switch statement if there is no default. 2011-03-17 18:50:44 -07:00
callum b3e444c74e SOCIAL-634 FIX Error condition content for Destination Guide, Avatar Picker,
and Help if S3 content or web content is not available.
(Included refs to new LLQtWebKit that supports functionality)
2011-03-17 17:18:58 -07:00
Monroe Linden d275251138 SOCIAL-399 FIX Viewer crash when canceling http auth on a media prim
Reviewed by Callum at http://codereview.lindenlab.com/5636001
2010-12-20 16:33:25 -08:00
Monroe Linden dee57bea25 Merge from viewer-development. 2010-12-20 11:21:17 -08:00
callum 0af2c1a482 SOCIAL-371 (PARTIAL) HTTP Auth sites do not load / allow login on Media on a Prim faces in Webkit 4.7
Fixes broken text substituition of realm/host only.
2010-12-17 15:54:20 -08:00
callum 836bbd8395 SOCIAL-370 FIX (2) Links to External Web Pages not working in Floaters such as Search in Webkit 4.7 branch 2010-12-16 15:40:02 -08:00
callum 95a4a2d387 SOCIAL-387 FIX Clicking on links in TOS during account activation in the viewer do not launch browser in Webkit 4.7
Mis-assumption about floaters that spawn web-content
2010-12-15 16:36:41 -08:00
callum d0c7ecb103 SOCIAL-366 FIX UI Issues with HTTP Dialogs in Webkit 4.7 2010-12-14 12:57:04 -08:00
callum f32f26a1e1 SOCIAL-364 FIX(2) Viewer Crash when selecting Browse Linden Homes button from side panel
Changed default floater that opens if no parent found as per comments in task
2010-12-13 14:23:36 -08:00
callum 4bf715c512 SOCIAL-367 FIX HTTP Auth dialog does not indicate what server a user is entering a user name and password for in Webkit 4.7 2010-12-13 14:21:30 -08:00
Richard Linden 524fd399bb merge 2010-12-10 14:48:24 -08:00
callum 5f01d6a686 SOCIAL-364 FIX Viewer Crash when selecting Browse Linden Homes button from side panel 2010-12-10 12:42:21 -08:00
Richard Linden 8044661bd5 WIP XUI HTTP Auth dialog
refactored LLWindowShade into seperate file
improved layout of dialog
improved dialog resizing logic
Tab and Enter keys now work as expected in windowshade form
added "modal" capability to window shade
added HTTP Auth notifications to MOAP
2010-12-10 10:11:03 -08:00
callum 84a50386be SOCIAL-317 FIX LLWebContentFloater opens popups in the media browser 2010-12-02 18:46:26 -08:00
Monroe Linden 880110eb93 OCIAL-231 FIX Enable tooltips (for links and images)
Added the necessary plumbing to get link_hovered events from the webkit plugin through to the viewer UI.

This requires a llqtwebkit library built from revision 1799a899e06d or later in http://hg.secondlife.com/llqtwebkit to function.  The viewer source changes are backwards-compatible with earlier versions of llqtwebkit, it just won't see any link_hovered events with previous revisions.

Reviewed by Callum.
2010-12-01 18:15:59 -08:00
Richard Linden f8d08af9f1 SOCIAL-266 WIP HTTP AUTH dialogs no longer work in LLQtWebKit 4.7.1
converted LLLayoutStack orientation param to use named enums
2010-11-23 16:25:10 -08:00
Richard Linden ab34a63280 SOCIAL-266 WIP HTTP AUTH dialogs no longer work in LLQtWebKit 4.7.1
llwindowshade no longer blocks mouse events
2010-11-22 17:51:48 -08:00
Richard Linden ecd8290b3f SOCIAL-266 WIP HTTP AUTH dialogs no longer work in LLQtWebKit 4.7.1
factored out llwindowshade control for slide-in notifications
2010-11-19 19:18:17 -08:00
Richard Linden a927b1cb0e SOCIAL-266 WIP HTTP AUTH dialogs no longer work in LLQtWebKit 4.7.1
initial support for XUI auth dialog
2010-11-18 22:34:54 -08:00
Monroe Linden df8b87435f SOCIAL-266 WIP HTTP AUTH dialogs no longer work in LLQtWebKit 4.7.1
Added support to the webkit media plugin and llpluginclassmedia for passing through the auth request/response.  We still need an updated build of llqtwebkit for all platforms, as well as some UI work in the viewer to actually display the auth dialog.
2010-11-16 17:01:44 -08:00
callum 68d2746761 EXP-417 FIX Tab keys in embedded Web form moves focus out of Web page back to container XUI
Reviewed by Richard.
2010-11-05 16:53:10 -07:00
Richard Linden 5085fbfbdd made focus_on_click a param for LLMediaCtrl 2010-11-02 16:57:55 -07:00
Richard Linden 325f16d0b4 fix for mac build and possible crash when responding to notification twice 2010-09-21 14:28:03 -07:00
Richard Nelson 71259fcccb EXP-77 FIX Pop-up warning flashes on and off even whan all popups are enabled in settings 2010-09-20 19:55:16 -07:00
Richard Linden 57c1845e2d clear popup notifications on navigate 2010-09-17 16:06:51 -07:00
Richard Linden 159fd0316a fix for enable all popups not working
also popup notification is no longer a singleton
2010-09-17 14:56:03 -07:00
Richard Linden 382877242a fixed build 2010-09-17 12:29:16 -07:00
Richard Linden f3cdc9b01d allow_popups is now driven by trusted content flag
trusted content is now a const attribute of LLMediaCtrl, set in constructor params
2010-09-17 12:16:07 -07:00
Richard Linden e66585aa4f EXP-74 FIX Pop-up warning given for links in Home Side Panel in Viewer
Reviewed by Callum
2010-09-17 11:47:13 -07:00
Richard Linden 2f233f3eb4 reverted mediaenablepopups to false by default (desired behavior)
always trigger popup notification and rely on ignore machinery to hide it
2010-09-16 17:59:12 -07:00