aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llprefsim.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llprefsim.cpp')
-rw-r--r--linden/indra/newview/llprefsim.cpp31
1 files changed, 30 insertions, 1 deletions
diff --git a/linden/indra/newview/llprefsim.cpp b/linden/indra/newview/llprefsim.cpp
index 8575113..738c340 100644
--- a/linden/indra/newview/llprefsim.cpp
+++ b/linden/indra/newview/llprefsim.cpp
@@ -68,6 +68,11 @@ protected:
68 BOOL mLogChat; 68 BOOL mLogChat;
69 BOOL mLogShowHistory; 69 BOOL mLogShowHistory;
70 BOOL mShowTimestamps; 70 BOOL mShowTimestamps;
71 BOOL mIMLogTimestamp;
72 BOOL mLogChatTimestamp;
73 BOOL mLogIMChat;
74 BOOL mLogTimestampDate;
75
71 LLString mIMBusyResponse; 76 LLString mIMBusyResponse;
72 LLString mLogPath; 77 LLString mLogPath;
73 78
@@ -95,6 +100,10 @@ void LLPrefsIMImpl::refresh()
95 mLogInstantMessages= gSavedPerAccountSettings.getBOOL("LogInstantMessages"); 100 mLogInstantMessages= gSavedPerAccountSettings.getBOOL("LogInstantMessages");
96 mLogChat = gSavedPerAccountSettings.getBOOL("LogChat"); 101 mLogChat = gSavedPerAccountSettings.getBOOL("LogChat");
97 mLogShowHistory = gSavedPerAccountSettings.getBOOL("LogShowHistory"); 102 mLogShowHistory = gSavedPerAccountSettings.getBOOL("LogShowHistory");
103 mIMLogTimestamp = gSavedPerAccountSettings.getBOOL("IMLogTimestamp");
104 mLogChatTimestamp = gSavedPerAccountSettings.getBOOL("LogChatTimestamp");
105 mLogIMChat = gSavedPerAccountSettings.getBOOL("LogChatIM");
106 mLogTimestampDate = gSavedPerAccountSettings.getBOOL("LogTimestampDate");
98} 107}
99 108
100void LLPrefsIMImpl::cancel() 109void LLPrefsIMImpl::cancel()
@@ -106,6 +115,10 @@ void LLPrefsIMImpl::cancel()
106 gSavedPerAccountSettings.setBOOL("LogInstantMessages",mLogInstantMessages); 115 gSavedPerAccountSettings.setBOOL("LogInstantMessages",mLogInstantMessages);
107 gSavedPerAccountSettings.setBOOL("LogChat",mLogChat); 116 gSavedPerAccountSettings.setBOOL("LogChat",mLogChat);
108 gSavedPerAccountSettings.setBOOL("LogShowHistory",mLogShowHistory); 117 gSavedPerAccountSettings.setBOOL("LogShowHistory",mLogShowHistory);
118 gSavedPerAccountSettings.setBOOL("IMLogTimestamp",mIMLogTimestamp);
119 gSavedPerAccountSettings.setBOOL("LogChatTimestamp",mLogChatTimestamp);
120 gSavedPerAccountSettings.setBOOL("LogChatIM",mLogIMChat);
121 gSavedPerAccountSettings.setBOOL("LogTimestampDate",mLogTimestampDate);
109} 122}
110 123
111BOOL LLPrefsIMImpl::postBuild() 124BOOL LLPrefsIMImpl::postBuild()
@@ -130,6 +143,10 @@ BOOL LLPrefsIMImpl::postBuild()
130 childDisable("log_show_history"); 143 childDisable("log_show_history");
131 childDisable("log_path_button"); 144 childDisable("log_path_button");
132 childDisable("busy_response"); 145 childDisable("busy_response");
146 childDisable("log_instant_messages_timestamp");
147 childDisable("log_chat_timestamp");
148 childDisable("log_chat_IM");
149 childDisable("log_date_timestamp");
133 150
134 childSetText("busy_response", childGetText("log_in_to_change")); 151 childSetText("busy_response", childGetText("log_in_to_change"));
135 152
@@ -138,7 +155,11 @@ BOOL LLPrefsIMImpl::postBuild()
138 childSetText("log_path_string", mLogPath); 155 childSetText("log_path_string", mLogPath);
139 childSetValue("log_instant_messages", mLogInstantMessages); 156 childSetValue("log_instant_messages", mLogInstantMessages);
140 childSetValue("log_chat", mLogChat); 157 childSetValue("log_chat", mLogChat);
141 childSetValue("log_show_history", mLogShowHistory); 158 childSetValue("log_show_history", mIMLogTimestamp);
159 childSetValue("log_instant_messages_timestamp", mIMLogTimestamp);
160 childSetValue("log_chat_timestamp", mLogChatTimestamp);
161 childSetValue("log_chat_IM", mLogIMChat);
162 childSetValue("log_date_timestamp",mLogTimestampDate);
142 childSetAction("log_path_button", onClickLogPath, this); 163 childSetAction("log_path_button", onClickLogPath, this);
143 childSetCommitCallback("log_chat",onCommitLogging,this); 164 childSetCommitCallback("log_chat",onCommitLogging,this);
144 childSetCommitCallback("log_instant_messages",onCommitLogging,this); 165 childSetCommitCallback("log_instant_messages",onCommitLogging,this);
@@ -179,6 +200,10 @@ void LLPrefsIMImpl::apply()
179 gSavedPerAccountSettings.setBOOL("LogInstantMessages",childGetValue("log_instant_messages").asBoolean()); 200 gSavedPerAccountSettings.setBOOL("LogInstantMessages",childGetValue("log_instant_messages").asBoolean());
180 gSavedPerAccountSettings.setBOOL("LogChat",childGetValue("log_chat").asBoolean()); 201 gSavedPerAccountSettings.setBOOL("LogChat",childGetValue("log_chat").asBoolean());
181 gSavedPerAccountSettings.setBOOL("LogShowHistory",childGetValue("log_show_history").asBoolean()); 202 gSavedPerAccountSettings.setBOOL("LogShowHistory",childGetValue("log_show_history").asBoolean());
203 gSavedPerAccountSettings.setBOOL("IMLogTimestamp",childGetValue("log_instant_messages_timestamp").asBoolean());
204 gSavedPerAccountSettings.setBOOL("LogChatTimestamp",childGetValue("log_chat_timestamp").asBoolean());
205 gSavedPerAccountSettings.setBOOL("LogChatIM",childGetValue("log_chat_IM").asBoolean());
206 gSavedPerAccountSettings.setBOOL("LogTimestampDate",childGetValue("log_date_timestamp").asBoolean());
182 207
183 gDirUtilp->setChatLogsDir(gSavedPerAccountSettings.getString("InstantMessageLogPath")); 208 gDirUtilp->setChatLogsDir(gSavedPerAccountSettings.getString("InstantMessageLogPath"));
184 209
@@ -246,6 +271,10 @@ void LLPrefsIMImpl::setPersonalInfo(
246 childEnable("log_instant_messages"); 271 childEnable("log_instant_messages");
247 childEnable("log_chat"); 272 childEnable("log_chat");
248 childEnable("busy_response"); 273 childEnable("busy_response");
274 childEnable("log_instant_messages_timestamp");
275 childEnable("log_chat_timestamp");
276 childEnable("log_chat_IM");
277 childEnable("log_date_timestamp");
249 278
250 //RN: get wide string so replace char can work (requires fixed-width encoding) 279 //RN: get wide string so replace char can work (requires fixed-width encoding)
251 LLWString busy_response = utf8str_to_wstring( gSavedPerAccountSettings.getString("BusyModeResponse") ); 280 LLWString busy_response = utf8str_to_wstring( gSavedPerAccountSettings.getString("BusyModeResponse") );