Commit Graph

252 Commits (5eef65e99476b716985eeccfbbcdafdfb664cb1a)

Author SHA1 Message Date
maxim@mnikolenko b0774ec914 CHUI-650 (Floaters not returning to active transparency after becoming inactive)
- Checking is added(comparing to previous fix) to avoid crash.
2013-01-16 17:37:13 +02:00
William Todd Stinson 67bc42a80a Pull and merge from ssh://hg@bitbucket.org/lindenlab/viewer-beta. 2012-11-20 16:20:40 -08:00
Gilbert Gonzales 987350fcb3 CHUI-489: Code review cleanup for both CHUI-489 and CHUI-486. This should be last commit for CHUI-489. 2012-11-15 19:24:45 -08:00
Gilbert Gonzales e775e95416 merging in latest changes 2012-11-15 15:45:02 -08:00
Gilbert Gonzales d3474c6eaf CHUI-489: Now sounds exist for teleport and inventory offers. The sound is specified in notifications.xml. Also changes for CHUI 486, which allow the user to set preferences for hearing sounds for a New Conversation, Incoming Voice Call, Teleport Offer and Inventory Offer. 2012-11-15 15:42:22 -08:00
maksymsproductengine 37d7f46905 CHUI-524: The root reason of crash was in the infinity recursion in the chain of calls LLFloater::setFocus->LLFloater::setFrontmost->LLFloaterView::bringToFront. And problem was not related to CHUI-362. Reviewed by Stinson. 2012-11-15 15:32:02 -08:00
William Todd Stinson c9044c03b3 Pull and merge from ssh://hg@bitbucket.org/lindenlab/viewer-beta. 2012-11-09 18:51:23 -08:00
maxim_productengine 5215bf6ede CHUI-415 FIXED Set focus to dependee floater before removing dependent floater from it 2012-10-30 18:38:59 +02:00
AlexanderP ProductEngine f9e0831ba0 CHUI-355 FIXED Nearby chat entries do not appear in torn off nearby chat window when opening from a toast:
moved setIsSingleInstance() from constructor to postBuild() for prevent of a resetting it in buildFromXML();
implemented correct set of mReuseInstance;
changed type of the key of LLIMConversation from LLUUID() to LLSD()
2012-09-24 18:57:04 +03:00
Nat Goodspeed 55a812ca77 Automated merge with http://hg.secondlife.com/viewer-development 2012-11-06 16:37:51 -05: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
AlexanderP ProductEngine ae2e611dfb CHUI-315 (Nearby chat messages do not appear in conversation floater): cancelled inheritance LLNearbyChat from LLSingleton; set mSingleInstance flag for it. 2012-08-31 16:52:50 +03:00
Gilbert Gonzales be61b5be2f CHUI-305: Problem: The 'resident picker' had multiple parents and due to the design of the resident picker it can have only one parent. Having multiple parents caused both parents to fight for depth ordering...which caused the flickering. Resolution: Now multiple 'resident pickers' can exist and they are coupled to the floater that spawned then. Meaning that when the parent floater closes, the 'resident picker' floater will also close. In addition, a shadow frustum eminates from the button that opened the 'resident picker'. 2012-08-29 19:18:25 -07:00
AlexanderP ProductEngine 0fa1e2b9ae CHUI-230, CHUI-232, CHUI-261 Forced resize of a conversation's floater in the IM-container; support of the rectControls for IM-conversations; fixed LLFloater and LLMultiFloater for the correct hosting of floaters with mSaveRect 2012-08-02 18:43:44 +03:00
MartinRJ Fayray e35f3b7db4 STORM-1879: Inventory gear menu remains on screen after floater is closed 2012-06-25 05:09:22 +02:00
Merov Linden bc54f1bb89 Merge : pull from lindenlab/viewer-release 2012-06-07 22:30:54 -07:00
AlexanderP ProductEngine 47ec4faeb4 CHUI-119 WIP Prepare the nearby chat for hosting it by the IM-container 2012-05-30 19:58:20 +03:00
Richard Linden 93c68c7c12 MAINT-959 FIX [PUBLIC]Trouble resizing tabbed floaters
don't auto position other floater when it is hosted
2012-05-18 21:03:45 -07:00
Seth ProductEngine fac210075f CHUI-105 WIP Added tear-off and return behavior for IM floater.
XUI changed for Converstions multifloater and IM floater.
2012-05-07 22:40:56 +03:00
Oz Linden 74d199c1dd merge changes for vmrg-233 2012-03-30 15:56:38 -04:00
Richard Linden 8ff4c75637 CHUI-70 FIX Build floater and other floaters opened in default position become centered in viewer when object is built or viewer resized
always initialize mPosition
2012-03-23 12:03:06 -07:00
Richard Linden eec1ce27cb Automated merge with ssh://hg.lindenlab.com/richard/viewer-experience 2012-03-23 09:50:49 -07:00
Richard Linden 71db6d1b91 CHUI-61 FIX Relative floater positions not written to settings file if previous settings exist from old viewer 2012-03-21 14:01:54 -07:00
Richard Linden 2fe364dfaf CHUI-61 FIX Relative floater positions not written to settings file if previous settings exist from old viewer 2012-03-21 11:08:04 -07:00
Richard Linden 3033ca8474 CHUI-61 FIX Relative floater positions not written to settings file if previous settings exist from old viewer
only write back floater positioning information generated from legacy saved rect after reading any new
floater positioning info
2012-03-20 10:52:41 -07:00
Richard Linden 7893cc2ed9 CHUI-61 FIX Relative floater positions not written to settings file if previous settings exist from old viewer
apply relative positioning to floaters that are loaded with rects specified from earlier viewer
2012-03-16 17:36:05 -07:00
Richard Linden 6c60f214fd CHUI-55 FIX Floaters that have set positions from old viewer versions can appear off screen until user repositions the floaters manually 2012-03-05 20:10:17 -08:00
Richard Linden 6b0f0a89fd CHUI-55 FIX Floaters that have set positions from old viewer versions can appear off screen until user repositions the floaters manually 2012-03-01 13:23:01 -08:00
Richard Linden 80f2548371 EXP-1918 FIX Floaters that are stacked are not offset
EXP-1919 FIX Resizing viewer window with minimized floaters can result in floaters appearing off screen when un-minimized
2012-02-28 13:45:36 -08:00
Richard Linden fbfad41587 EXP-1181 FIX As a designer, I would like to specify default floater positions using relative coordinates
store and load floater relative positions
2012-02-27 13:06:10 -08:00
Richard Linden 0c7e91205f EXP-1181 FIX As a designer, I would like to specify default floater positions using relative coordinates
fixed bug where resizing window would cause stacked floaters to move relative to each other
renamed positioning enums to reflect the fact that they apply all the time now, not just when opening floaters
2012-02-24 16:57:12 -08:00
Richard Linden 0fc6c5df96 EXP-1181 FIX As a designer, I would like to specify default floater positions using relative coordinates
floaters given specified positions will stay in that location
floaters that stack will treat that as a specified position
moving any floater will switch to relative positioning mode
cleaned up some XUI where widgets were relying on a default height of 10 pixels
2012-02-24 16:54:54 -08:00
Richard Linden 1b624f5ea6 potential fix for linux build 2012-02-24 11:43:44 -08:00
Seth ProductEngine 2babcb4af5 Linux build fix.
Moved type casts from protected base classes to derived LLCoord.
2012-02-23 21:02:46 +02:00
Seth ProductEngine a5e4b15b7d Linux build fix.
Moved type casts from protected base classes to derived LLCoord.
2012-02-23 21:02:46 +02:00
Richard Linden f27ea1aff7 EXP-1181 WIP as a designer I would like to specify default floater positions using realtive coordinates
fixed build
moved conversion funcs to llwindow.cpp as they work on all platforms
refactored translateintorect to take overlap as parameter
2012-02-07 22:50:49 -08:00
Richard Linden 4e08461f8a EXP-1181 WIP as a designer I would like to specify default floater positions using realtive coordinates
changed over to new convert() method
added LLCoordFloater
2012-02-07 19:29:10 -08:00
Richard Linden c47c31fdbf EXP-1513 FIX Underscore ( _ ) fails to show in first chat entry in Local Chat 2012-01-31 17:51:43 -08:00
Vadim ProductEngine f9a17df4d3 EXP-1806 FIXED CTRL-W no longer closes floaters.
Restoring accidentally removed code.
2012-01-17 23:17:52 +02:00
Richard Linden afc1914057 EXP-1652 FIX (Build tool floater size affected by viewer window size)
force all floaters to have follows flags = FOLLOWS_NONE and use llfloaterview::reshape logic instead
removed existing follows flags from any floater XUI and deprecated the follows parameter for floaters
2011-12-07 11:47:33 -08:00
Richard Linden acd047b6be Automated merge with ssh://hg.lindenlab.com/richard/viewer-experience 2011-11-28 23:15:03 -08:00
Richard Linden 30beda590a EXP-1588 FIX Floaters do not snap to edge
made non-movable floaters not use auto-follow logic
toasts will now use own layout logic
2011-11-15 16:40:31 -08:00
Leslie Linden 28db67c395 Removed unused variable to fix the mac build 2011-11-14 17:16:34 -08:00
Richard Linden 98755a62bb EXP-1588 WIP Floaters do not snap to edge 2011-11-14 15:39:32 -08:00
Richard Linden b6858df0dd LLHandle<Derived> is now implicitly convertable to LLHandle<Base> and LLHandle<Base>
can be downcast to LLHandle<Derived> using the LLHandleProvider mixin
2011-11-08 13:47:08 -08:00
Richard Linden e356f5c0dc EXP-1456 FIX NEARBY CHAT window sometimes opens at the top of the screen. 2011-10-24 17:30:27 -07:00
Richard Linden 399de4f345 EXP-1454 FIX People floater 'cascades' as if opening a new window while looking at group profiles 2011-10-24 14:28:09 -07:00
Richard Linden 03d0c6d35c EXP-1431 FIX Default positions for floaters follows additional open Inventory windows 2011-10-20 17:33:09 -07:00
Richard Linden c43681ca8f EXP-1440 FIX Floaters can offset from call dialog and show offscreen for default positions 2011-10-20 12:05:03 -07:00
Richard Nelson eedc8687b0 EXP-1364 FIX Debug console output covered by left toolbar buttons if present
EXP-1427 FIX Voice Settings dialog closes when selecting minimize option
2011-10-19 18:45:22 -07:00