| 40 |
#include "lltexteditor.h" |
#include "lltexteditor.h" |
| 41 |
#include "llavatarconstants.h" |
#include "llavatarconstants.h" |
| 42 |
#include "llagent.h" |
#include "llagent.h" |
| 43 |
|
#include "llversionviewer.h" |
| 44 |
#include "llviewercontrol.h" |
#include "llviewercontrol.h" |
| 45 |
#include "llviewernetwork.h" |
#include "llviewernetwork.h" |
| 46 |
#include "lluictrlfactory.h" |
#include "lluictrlfactory.h" |
| 172 |
gSavedSettings.setBOOL("IMShowTimestamps", childGetValue("show_timestamps_check").asBoolean()); |
gSavedSettings.setBOOL("IMShowTimestamps", childGetValue("show_timestamps_check").asBoolean()); |
| 173 |
gSavedSettings.setBOOL("ChatOnlineNotification", childGetValue("friends_online_notify_checkbox").asBoolean()); |
gSavedSettings.setBOOL("ChatOnlineNotification", childGetValue("friends_online_notify_checkbox").asBoolean()); |
| 174 |
|
|
| 175 |
gSavedPerAccountSettings.setString("InstantMessageLogPath", childGetText("log_path_string")); |
#if !FORCE_LOG_CHAT_IM |
| 176 |
gSavedPerAccountSettings.setBOOL("LogInstantMessages",childGetValue("log_instant_messages").asBoolean()); |
gSavedPerAccountSettings.setBOOL("LogInstantMessages",childGetValue("log_instant_messages").asBoolean()); |
| 177 |
gSavedPerAccountSettings.setBOOL("LogChat",childGetValue("log_chat").asBoolean()); |
gSavedPerAccountSettings.setBOOL("LogChat",childGetValue("log_chat").asBoolean()); |
| 178 |
gSavedPerAccountSettings.setBOOL("LogShowHistory",childGetValue("log_show_history").asBoolean()); |
gSavedPerAccountSettings.setBOOL("LogShowHistory",childGetValue("log_show_history").asBoolean()); |
| 179 |
gSavedPerAccountSettings.setBOOL("IMLogTimestamp",childGetValue("log_instant_messages_timestamp").asBoolean()); |
gSavedPerAccountSettings.setBOOL("IMLogTimestamp",childGetValue("log_instant_messages_timestamp").asBoolean()); |
| 180 |
gSavedPerAccountSettings.setBOOL("LogChatTimestamp",childGetValue("log_chat_timestamp").asBoolean()); |
gSavedPerAccountSettings.setBOOL("LogChatTimestamp",childGetValue("log_chat_timestamp").asBoolean()); |
|
gSavedPerAccountSettings.setBOOL("LogChatIM",childGetValue("log_chat_IM").asBoolean()); |
|
| 181 |
gSavedPerAccountSettings.setBOOL("LogTimestampDate",childGetValue("log_date_timestamp").asBoolean()); |
gSavedPerAccountSettings.setBOOL("LogTimestampDate",childGetValue("log_date_timestamp").asBoolean()); |
| 182 |
|
#endif |
| 183 |
|
gSavedPerAccountSettings.setBOOL("LogChatIM",childGetValue("log_chat_IM").asBoolean()); |
| 184 |
|
|
| 185 |
|
gSavedPerAccountSettings.setString("InstantMessageLogPath", childGetText("log_path_string")); |
| 186 |
gDirUtilp->setChatLogsDir(gSavedPerAccountSettings.getString("InstantMessageLogPath")); |
gDirUtilp->setChatLogsDir(gSavedPerAccountSettings.getString("InstantMessageLogPath")); |
| 187 |
|
|
| 188 |
gDirUtilp->setPerAccountChatLogsDir(gSavedSettings.getString("FirstName"), |
gDirUtilp->setPerAccountChatLogsDir(gSavedSettings.getString("FirstName"), |
| 249 |
childSetLabelArg("online_visibility", "[DIR_VIS]", mDirectoryVisibility); |
childSetLabelArg("online_visibility", "[DIR_VIS]", mDirectoryVisibility); |
| 250 |
childEnable("send_im_to_email"); |
childEnable("send_im_to_email"); |
| 251 |
childSetValue("send_im_to_email", im_via_email); |
childSetValue("send_im_to_email", im_via_email); |
|
childEnable("log_instant_messages"); |
|
|
childEnable("log_chat"); |
|
| 252 |
childEnable("busy_response"); |
childEnable("busy_response"); |
| 253 |
//MK |
//MK |
| 254 |
if (RRenabled && gAgent.mRRInterface.contains ("sendim")) |
if (RRenabled && gAgent.mRRInterface.contains ("sendim")) |
| 256 |
childDisable("busy_response"); |
childDisable("busy_response"); |
| 257 |
} |
} |
| 258 |
//mk |
//mk |
| 259 |
|
|
| 260 |
|
#if !FORCE_LOG_CHAT_IM |
| 261 |
|
childEnable("log_instant_messages"); |
| 262 |
|
childEnable("log_chat"); |
| 263 |
childEnable("log_instant_messages_timestamp"); |
childEnable("log_instant_messages_timestamp"); |
| 264 |
childEnable("log_chat_timestamp"); |
childEnable("log_chat_timestamp"); |
|
childEnable("log_chat_IM"); |
|
| 265 |
childEnable("log_date_timestamp"); |
childEnable("log_date_timestamp"); |
| 266 |
|
#endif |
| 267 |
|
childEnable("log_chat_IM"); |
| 268 |
|
|
| 269 |
//RN: get wide string so replace char can work (requires fixed-width encoding) |
//RN: get wide string so replace char can work (requires fixed-width encoding) |
| 270 |
LLWString busy_response = utf8str_to_wstring( gSavedPerAccountSettings.getString("BusyModeResponse") ); |
LLWString busy_response = utf8str_to_wstring( gSavedPerAccountSettings.getString("BusyModeResponse") ); |