Commit Graph

87 Commits (d392b97aa71ca06589bb1bc850c19c6855f3fa79)

Author SHA1 Message Date
maxim_productengine 6f1e08f22d SL-10505 FIXED Right clicking on any name in Friends list accesses every chat .txt file stored 2019-02-12 11:24:37 +02:00
andreykproductengine 26fae750ba SL-10291 Replace apr_mutex with standard C++11 functionality 2019-01-14 22:04:44 +02:00
Nat Goodspeed fe64db61d6 Automated merge with ssh://bitbucket.org/lindenlab/viewer-release 2017-05-22 21:30:26 -04:00
andreykproductengine 9e426f5340 MAINT-6283 Fixing line enfings 2017-04-10 16:10:59 +03:00
andreykproductengine 10213f994f MAINT-6283 Names that contain 'http:' or 'https:' were causing new line in chat history 2017-04-07 20:29:24 +03:00
Nat Goodspeed 434f0e161a Automated merge with ssh://bitbucket.org/lindenlab/viewer-release 2017-02-03 09:54:52 -05:00
Nat Goodspeed c992a6df9f DRTVWR-418: std::string::find() returns std::string::size_type.
Storing it in a U32 and then comparing it to std::string::npos isn't going to
work in 64 bit land.
2016-12-20 09:20:38 -05:00
AndreyL ProductEngine 7fceb3a63f Merged in lindenlab/viewer-cleanup 2016-11-14 22:04:37 +02:00
Nat Goodspeed d2c3c2f9fe MAINT-5232: Normalize LLSingleton subclasses.
A shocking number of LLSingleton subclasses had public constructors -- and in
several instances, were being explicitly instantiated independently of the
LLSingleton machinery. This breaks the new LLSingleton dependency-tracking
machinery. It seems only fair that if you say you want an LLSingleton, there
should only be ONE INSTANCE!

Introduce LLSINGLETON() and LLSINGLETON_EMPTY_CTOR() macros. These handle the
friend class LLSingleton<whatevah>;
and explicitly declare a private nullary constructor.

To try to enforce the LLSINGLETON() convention, introduce a new pure virtual
LLSingleton method you_must_use_LLSINGLETON_macro() which is, as you might
suspect, defined by the macro. If you declare an LLSingleton subclass without
using LLSINGLETON() or LLSINGLETON_EMPTY_CTOR() in the class body, you can't
instantiate the subclass for lack of a you_must_use_LLSINGLETON_macro()
implementation -- which will hopefully remind the coder.

Trawl through ALL LLSingleton subclass definitions, sprinkling in
LLSINGLETON() or LLSINGLETON_EMPTY_CTOR() as appropriate. Remove all explicit
constructor declarations, public or private, along with relevant 'friend class
LLSingleton<myself>' declarations. Where destructors are declared, move them
into private section as well. Where the constructor was inline but nontrivial,
move out of class body.

Fix several LLSingleton abuses revealed by making ctors/dtors private:

LLGlobalEconomy was both an LLSingleton and the base class for
LLRegionEconomy, a non-LLSingleton. (Therefore every LLRegionEconomy instance
contained another instance of the LLGlobalEconomy "singleton.") Extract
LLBaseEconomy; LLGlobalEconomy is now a trivial subclass of that.
LLRegionEconomy, as you might suspect, now derives from LLBaseEconomy.

LLToolGrab, an LLSingleton, was also explicitly instantiated by
LLToolCompGun's constructor. Extract LLToolGrabBase, explicitly instantiated,
with trivial subclass LLToolGrab, the LLSingleton instance.

(WARNING: LLToolGrabBase methods have an unnerving tendency to go after
LLToolGrab::getInstance(). I DO NOT KNOW what should be the relationship
between the instance in LLToolCompGun and the LLToolGrab singleton instance.)

LLGridManager declared a variant constructor accepting (const std::string&),
with the comment:
// initialize with an explicity grid file for testing.
As there is no evidence of this being called from anywhere, delete it.

LLChicletBar's constructor accepted an optional (const LLSD&). As the LLSD
parameter wasn't used, and as there is no evidence of it being passed from
anywhere, delete the parameter.

LLViewerWindow::shutdownViews() was checking LLNavigationBar::
instanceExists(), then deleting its getInstance() pointer -- leaving a
dangling LLSingleton instance pointer, a land mine if any subsequent code
should attempt to reference it. Use deleteSingleton() instead.

~LLAppViewer() was calling LLViewerEventRecorder::instance() and then
explicitly calling ~LLViewerEventRecorder() on that instance -- leaving the
LLSingleton instance pointer pointing to an allocated-but-destroyed instance.
Use deleteSingleton() instead.
2016-09-15 20:18:12 -04:00
andreykproductengine 4b29e9869c MAINT-5388 File "conversation.log" created in users' root directory on Windows 2016-07-05 17:52:01 +03:00
AndreyL ProductEngine b25a22a2c1 Merged in lindenlab/viewer-release 2016-05-19 23:02:37 +03:00
Mnikolenko Productengine 772f0db14e MAINT-6283 reverted 2016-04-25 13:05:35 +03:00
Mnikolenko Productengine 8f52908994 MAINT-6283 Names that contain 'http:' or 'https:' are transferred to the new line in chat history 2016-04-12 12:35:04 +03:00
Oz Linden c8726aba30 remove execute permission from many files that should not have it 2015-11-10 09:48:56 -05:00
Mnikolenko ProductEngine 193a298266 MAINT-5201 FIXED 'Chat history' option in context menu does not works for multiperson chat. 2015-05-19 12:01:32 +03:00
Oz Linden 5c6cf3e7fb restore the ll[io]fstream because we need them as wrappers on Windows for wide char paths; on other platforms they are now just typedefs to the std classes 2015-04-10 11:02:37 -04:00
Oz Linden 8b42c7898e replace llifstream and llofstream with std::ifstream and std::ofstream respectively 2015-04-07 17:59:28 -04:00
Oz Linden 3a57b18896 convert llifstream and llofstream to std::ifstream and std::ofstream respectively 2015-04-07 17:28:05 -04:00
Graham Linden a882d7a02b Fix for gpu_bench crash without parallels knock-on 2014-11-18 12:54:13 -08:00
simon 250db74bf9 Pull and merge viewer-release as version 3.7.8 2014-05-07 10:56:41 -07:00
Mnikolenko ProductEngine 99de75c225 MAINT-3522 FIXED Continue loop after adding Nearby chat history to the list. 2013-12-13 16:48:28 +02:00
Richard Linden 5e55cfd49e SH-4653 FIX Interesting: Viewer crashes while reading chat history
fixed code that was causing abnormal thread termination in the first place
2013-12-10 16:43:23 -08:00
PavelK ProductEngine 443c502ccc MAINT-3476 FIX Opening large chat histories from conversation log eats up huge amounts of memory, leading to viewer crash. 2013-12-03 19:32:56 +02: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
Mnikolenko ProductEngine 170e01e7eb CHUI-978 FIXED Add Nearby chat history to the list of transcriptions if it exists(to enable "Chat history" menu item for Nearby chat) 2013-07-16 14:56:25 +03:00
Mnikolenko ProductEngine 13361137d0 CHUI-978 FIXED Load data from chat log file in separate thread to prevent viewer freeze 2013-07-09 15:13:38 +03:00
Merov Linden 2113bb8159 Pull merge from viewer-release 2013-05-22 11:23:51 -07:00
Mnikolenko ProductEngine 25c222e317 CHUI-943 FIXED "Chat history" menu item is added to context menu for Nearby chat. 2013-04-23 15:09:41 +03:00
Mnikolenko ProductEngine 7b0c364a6b CHUI-838 FIXED (Opening chat history for groups only works once per session, if at all) 2013-04-03 15:07:26 +03:00
Graham Madarasz bf6182daa8 Update Mac and Windows breakpad builds to latest 2013-03-29 07:50:08 -07:00
Gilbert Gonzales 95cea4aa71 CHUI-778: Adjusted deletion of transcripts/logs to be more clean code-wise. 2013-03-05 13:20:24 -08:00
Gilbert Gonzales 49319a90ef CHUI-778: Now when delete transcripts is pressed the backup files will be deleted as well. Also if clear logs is pressed then backup logs will be cleared. 2013-03-04 19:35:31 -08:00
Gilbert Gonzales 9f965be297 CHUI-778: Now when changing paths for chat logs and transcripts any empty conversations will be reloaded with data from the new location. Use case for this is if the users nearby chat is empty and they switch to a location that has a nearby chat file, then the nearby chat file be loaded. 2013-03-04 10:11:51 -08:00
Gilbert Gonzales 084ea74d43 CHUI-778: Now when conversation log and trascript files are moved they will not overwrite prior files with the same name. Instead the prior files will be stored as *.backup. 2013-02-25 16:48:09 -08:00
Gilbert Gonzales e5d6b29260 merge 2013-02-25 12:57:39 -08:00
Gilbert Gonzales c6929e4248 CHUI-788 (Saving preferences updates text in all open message panels in conversation floater to show as old messages) Fixed build error for mac/linux 2013-02-25 04:20:08 -08:00
Gilbert Gonzales 05f4e8a105 CHUI-778 (Saving preferences updates text in all open message panels in conversation floater to show as old messages) Now changing the log/transcripts file location actually moves the files to the new location. Prior behavior just started a new history at that location. Also a fix was made so that if the user changed the log/transcripts path then after pressing the Preferences 'OK' button the new location will be saved to the corresponding .xml file. 2013-02-22 18:53:40 -08:00
maksymsproductengine 4b6e1c26f0 CHUI-633 FIXED User is not able to open chat history by 'View chat history' menu item from pop-up menu of People floater 2013-02-22 17:08:33 +02:00
maksymsproductengine ec0ac12eba CHUI-712 FIXED IM log files renamed with ll.txt will create double files for users 2013-02-06 20:51:14 +02:00
maksymsproductengine 2ac99f55f9 CHUI-578 FIXED Move preferences for conversation logs/transcripts to chat tab 2013-01-24 19:56:13 +02:00
Paul ProductEngine a6370cf4a7 CHUI-334 FIXED (Date not shown in the chat log for current date entries)
Before the "%Y/%m/%d" was always cutted from timestamp string for today's date. Now I added flag whether we should cut off timestamp or not.
2012-09-13 18:49:57 +03:00
Paul ProductEngine d4ee17e533 CHUI-275 FIXED (Chat history viewer does not show entire user.txt IM log file)
- Renamed LLLogChat::loadAllHistory to LLLogChat::loadChatHistory because it doesn't actually loads all history. Also added parameter to the function which is a flag whether to load all file's content or not.
- Implemented displaying history by pages (as was decided on meeting page): Added showHistory() method to the LLFloaterConversationPreview which shows the chat history page by page starting from the last conversation (or may say starting from the last page). One page contains 100 entries. Added "More history..." button to display next page of history.
2012-08-28 14:48:32 +03:00
Squire f86a488231 CHOP-662 - initial fix to problems with regex characters in Group names
causing the LLDirIterator to crash the viewer when opening chat logs
2011-06-17 11:05:31 -07:00
Seth ProductEngine e213a36f70 STORM-477 Restored the backed out changeset: b62b260aa04d 2011-05-11 18:12:23 +03:00
jenn c2d1f9215a Merge in changes from mani_linden/viewer-vs2010 2011-01-25 10:36:14 -08:00
Mark Palange (Mani) 9775b80fef Code fixes for VS2010 compatibility 2011-01-21 14:25:33 -08:00
Seth ProductEngine 4af9db7b79 STORM-477 FIXED Re-implemented LLDir::getNextFileInDir() as an iterator object.
- Replaced all existing usages of LLDir::getNextFileInDir() with the new directory iterator object.
- Removed platform specific LLDir::getNextFileInDir() implementation.
2011-01-11 19:50:58 +02:00
Oz Linden a4d5e38535 STORM-826 (workaround): correct mixed and dos-style line endings 2011-01-06 11:06:20 -05:00