OSDN Git Service

RAD-318 RadegastLogger doesn't do filesize checks, leading to potentially huge log...
authorLatif Khalifa <latifer@streamgrid.net>
Tue, 6 Dec 2011 18:10:57 +0000 (18:10 +0000)
committerLatif Khalifa <latifer@streamgrid.net>
Tue, 6 Dec 2011 18:10:57 +0000 (18:10 +0000)
Patch by SignpostMarv Martin

git-svn-id: https://radegast.googlecode.com/svn/trunk@1184 f7a694da-4d33-11de-9ad6-1127a62b9fcd

Radegast/Core/RadegastLogger.cs
Radegast/GUI/Dialogs/Settings.Designer.cs
Radegast/GUI/Dialogs/Settings.cs

index 7207ab5..fec85b9 100644 (file)
@@ -86,7 +86,7 @@ namespace Radegast
                 }
                 Console.WriteLine();
 
-                if (RadegastInstance.GlobalInstance.GlobalLogFile != null)
+                if (RadegastInstance.GlobalInstance.GlobalLogFile != null && (!RadegastInstance.GlobalInstance.GlobalSettings.ContainsKey("log_to_file") || RadegastInstance.GlobalInstance.GlobalSettings["log_to_file"]))
                     File.AppendAllText(RadegastInstance.GlobalInstance.GlobalLogFile, RenderLoggingEvent(le) + Environment.NewLine);
             }
             catch (Exception) { }
index ab11811..d303eca 100644 (file)
@@ -61,6 +61,16 @@ namespace Radegast
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmSettings));
             this.tcGraphics = new System.Windows.Forms.TabControl();
             this.tbpGeneral = new System.Windows.Forms.TabPage();
+            this.cbRadegastLogToFile = new System.Windows.Forms.CheckBox();
+            this.Chat = new System.Windows.Forms.GroupBox();
+            this.cbChatTimestamps = new System.Windows.Forms.CheckBox();
+            this.cbIMTimeStamps = new System.Windows.Forms.CheckBox();
+            this.cbFriendsHighlight = new System.Windows.Forms.CheckBox();
+            this.cbMUEmotes = new System.Windows.Forms.CheckBox();
+            this.cbNoTyping = new System.Windows.Forms.CheckBox();
+            this.cbTaskBarHighLight = new System.Windows.Forms.CheckBox();
+            this.cbFontSize = new System.Windows.Forms.ComboBox();
+            this.label1 = new System.Windows.Forms.Label();
             this.txtReconnectTime = new System.Windows.Forms.TextBox();
             this.label2 = new System.Windows.Forms.Label();
             this.gbDisplayNames = new System.Windows.Forms.GroupBox();
@@ -69,22 +79,14 @@ namespace Radegast
             this.rbDNSmart = new System.Windows.Forms.RadioButton();
             this.rbDNOff = new System.Windows.Forms.RadioButton();
             this.cbRadegastClientTag = new System.Windows.Forms.CheckBox();
-            this.cbTaskBarHighLight = new System.Windows.Forms.CheckBox();
             this.cbSyntaxHighlight = new System.Windows.Forms.CheckBox();
-            this.label1 = new System.Windows.Forms.Label();
-            this.cbFontSize = new System.Windows.Forms.ComboBox();
-            this.cbNoTyping = new System.Windows.Forms.CheckBox();
             this.cbMinToTrey = new System.Windows.Forms.CheckBox();
-            this.cbMUEmotes = new System.Windows.Forms.CheckBox();
             this.cbRLV = new System.Windows.Forms.CheckBox();
             this.cbHideLoginGraphics = new System.Windows.Forms.CheckBox();
             this.cbAutoReconnect = new System.Windows.Forms.CheckBox();
-            this.cbFriendsHighlight = new System.Windows.Forms.CheckBox();
             this.cbFriendsNotifications = new System.Windows.Forms.CheckBox();
             this.cbTrasactChat = new System.Windows.Forms.CheckBox();
             this.cbTrasactDialog = new System.Windows.Forms.CheckBox();
-            this.cbIMTimeStamps = new System.Windows.Forms.CheckBox();
-            this.cbChatTimestamps = new System.Windows.Forms.CheckBox();
             this.tbpAutoResponse = new System.Windows.Forms.TabPage();
             this.gnAutoInventory = new System.Windows.Forms.GroupBox();
             this.cbOnInvOffer = new System.Windows.Forms.ComboBox();
@@ -96,6 +98,7 @@ namespace Radegast
             this.tbpGraphics = new System.Windows.Forms.TabPage();
             this.tcGraphics.SuspendLayout();
             this.tbpGeneral.SuspendLayout();
+            this.Chat.SuspendLayout();
             this.gbDisplayNames.SuspendLayout();
             this.tbpAutoResponse.SuspendLayout();
             this.gnAutoInventory.SuspendLayout();
@@ -117,26 +120,20 @@ namespace Radegast
             // 
             // tbpGeneral
             // 
+            this.tbpGeneral.Controls.Add(this.cbRadegastLogToFile);
+            this.tbpGeneral.Controls.Add(this.Chat);
             this.tbpGeneral.Controls.Add(this.txtReconnectTime);
             this.tbpGeneral.Controls.Add(this.label2);
             this.tbpGeneral.Controls.Add(this.gbDisplayNames);
             this.tbpGeneral.Controls.Add(this.cbRadegastClientTag);
-            this.tbpGeneral.Controls.Add(this.cbTaskBarHighLight);
             this.tbpGeneral.Controls.Add(this.cbSyntaxHighlight);
-            this.tbpGeneral.Controls.Add(this.label1);
-            this.tbpGeneral.Controls.Add(this.cbFontSize);
-            this.tbpGeneral.Controls.Add(this.cbNoTyping);
             this.tbpGeneral.Controls.Add(this.cbMinToTrey);
-            this.tbpGeneral.Controls.Add(this.cbMUEmotes);
             this.tbpGeneral.Controls.Add(this.cbRLV);
             this.tbpGeneral.Controls.Add(this.cbHideLoginGraphics);
             this.tbpGeneral.Controls.Add(this.cbAutoReconnect);
-            this.tbpGeneral.Controls.Add(this.cbFriendsHighlight);
             this.tbpGeneral.Controls.Add(this.cbFriendsNotifications);
             this.tbpGeneral.Controls.Add(this.cbTrasactChat);
             this.tbpGeneral.Controls.Add(this.cbTrasactDialog);
-            this.tbpGeneral.Controls.Add(this.cbIMTimeStamps);
-            this.tbpGeneral.Controls.Add(this.cbChatTimestamps);
             this.tbpGeneral.Location = new System.Drawing.Point(4, 22);
             this.tbpGeneral.Name = "tbpGeneral";
             this.tbpGeneral.Padding = new System.Windows.Forms.Padding(3);
@@ -145,23 +142,144 @@ namespace Radegast
             this.tbpGeneral.Text = "General";
             this.tbpGeneral.UseVisualStyleBackColor = true;
             // 
+            // cbRadegastLogToFile
+            // 
+            this.cbRadegastLogToFile.AutoSize = true;
+            this.cbRadegastLogToFile.Location = new System.Drawing.Point(275, 220);
+            this.cbRadegastLogToFile.Name = "cbRadegastLogToFile";
+            this.cbRadegastLogToFile.Size = new System.Drawing.Size(72, 17);
+            this.cbRadegastLogToFile.TabIndex = 14;
+            this.cbRadegastLogToFile.Text = "Log to file";
+            this.cbRadegastLogToFile.UseVisualStyleBackColor = true;
+            this.cbRadegastLogToFile.CheckedChanged += new System.EventHandler(this.cbRadegastLogToFile_CheckedChanged);
+            // 
+            // Chat
+            // 
+            this.Chat.Controls.Add(this.cbChatTimestamps);
+            this.Chat.Controls.Add(this.cbIMTimeStamps);
+            this.Chat.Controls.Add(this.cbFriendsHighlight);
+            this.Chat.Controls.Add(this.cbMUEmotes);
+            this.Chat.Controls.Add(this.cbNoTyping);
+            this.Chat.Controls.Add(this.cbTaskBarHighLight);
+            this.Chat.Controls.Add(this.cbFontSize);
+            this.Chat.Controls.Add(this.label1);
+            this.Chat.Location = new System.Drawing.Point(8, 5);
+            this.Chat.Name = "Chat";
+            this.Chat.Size = new System.Drawing.Size(256, 155);
+            this.Chat.TabIndex = 0;
+            this.Chat.TabStop = false;
+            this.Chat.Text = "Chat";
+            // 
+            // cbChatTimestamps
+            // 
+            this.cbChatTimestamps.AutoSize = true;
+            this.cbChatTimestamps.Location = new System.Drawing.Point(8, 12);
+            this.cbChatTimestamps.Name = "cbChatTimestamps";
+            this.cbChatTimestamps.Size = new System.Drawing.Size(143, 17);
+            this.cbChatTimestamps.TabIndex = 0;
+            this.cbChatTimestamps.Text = "Show timestamps in chat";
+            this.cbChatTimestamps.UseVisualStyleBackColor = true;
+            // 
+            // cbIMTimeStamps
+            // 
+            this.cbIMTimeStamps.AutoSize = true;
+            this.cbIMTimeStamps.Location = new System.Drawing.Point(8, 35);
+            this.cbIMTimeStamps.Name = "cbIMTimeStamps";
+            this.cbIMTimeStamps.Size = new System.Drawing.Size(137, 17);
+            this.cbIMTimeStamps.TabIndex = 1;
+            this.cbIMTimeStamps.Text = "Show timestamps in  IM";
+            this.cbIMTimeStamps.UseVisualStyleBackColor = true;
+            // 
+            // cbFriendsHighlight
+            // 
+            this.cbFriendsHighlight.AutoSize = true;
+            this.cbFriendsHighlight.Location = new System.Drawing.Point(8, 75);
+            this.cbFriendsHighlight.Name = "cbFriendsHighlight";
+            this.cbFriendsHighlight.Size = new System.Drawing.Size(248, 17);
+            this.cbFriendsHighlight.TabIndex = 4;
+            this.cbFriendsHighlight.Text = "Highlight chat tab on friends online notifications";
+            this.cbFriendsHighlight.UseVisualStyleBackColor = true;
+            this.cbFriendsHighlight.CheckedChanged += new System.EventHandler(this.cbTrasactChat_CheckedChanged);
+            // 
+            // cbMUEmotes
+            // 
+            this.cbMUEmotes.AutoSize = true;
+            this.cbMUEmotes.Location = new System.Drawing.Point(8, 95);
+            this.cbMUEmotes.Name = "cbMUEmotes";
+            this.cbMUEmotes.Size = new System.Drawing.Size(108, 17);
+            this.cbMUEmotes.TabIndex = 5;
+            this.cbMUEmotes.Text = "MU* style emotes";
+            this.cbMUEmotes.UseVisualStyleBackColor = true;
+            this.cbMUEmotes.CheckedChanged += new System.EventHandler(this.cbTrasactChat_CheckedChanged);
+            // 
+            // cbNoTyping
+            // 
+            this.cbNoTyping.AutoSize = true;
+            this.cbNoTyping.Location = new System.Drawing.Point(8, 115);
+            this.cbNoTyping.Name = "cbNoTyping";
+            this.cbNoTyping.Size = new System.Drawing.Size(150, 17);
+            this.cbNoTyping.TabIndex = 6;
+            this.cbNoTyping.Text = "Don\'t use typing animation";
+            this.cbNoTyping.UseVisualStyleBackColor = true;
+            this.cbNoTyping.CheckedChanged += new System.EventHandler(this.cbTrasactChat_CheckedChanged);
+            // 
+            // cbTaskBarHighLight
+            // 
+            this.cbTaskBarHighLight.AutoSize = true;
+            this.cbTaskBarHighLight.Location = new System.Drawing.Point(8, 135);
+            this.cbTaskBarHighLight.Name = "cbTaskBarHighLight";
+            this.cbTaskBarHighLight.Size = new System.Drawing.Size(155, 17);
+            this.cbTaskBarHighLight.TabIndex = 7;
+            this.cbTaskBarHighLight.Text = "Highlight in taskbar on chat";
+            this.cbTaskBarHighLight.UseVisualStyleBackColor = true;
+            // 
+            // cbFontSize
+            // 
+            this.cbFontSize.FormatString = "N2";
+            this.cbFontSize.FormattingEnabled = true;
+            this.cbFontSize.Items.AddRange(new object[] {
+            "8.25",
+            "9",
+            "10",
+            "12",
+            "14",
+            "16",
+            "20"});
+            this.cbFontSize.Location = new System.Drawing.Point(97, 51);
+            this.cbFontSize.Name = "cbFontSize";
+            this.cbFontSize.Size = new System.Drawing.Size(54, 21);
+            this.cbFontSize.TabIndex = 3;
+            this.cbFontSize.Text = "8.25";
+            this.cbFontSize.SelectedIndexChanged += new System.EventHandler(this.cbFontSize_SelectedIndexChanged);
+            this.cbFontSize.KeyDown += new System.Windows.Forms.KeyEventHandler(this.cbFontSize_KeyDown);
+            this.cbFontSize.Leave += new System.EventHandler(this.cbFontSize_Leave);
+            // 
+            // label1
+            // 
+            this.label1.AutoSize = true;
+            this.label1.Location = new System.Drawing.Point(24, 54);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(73, 13);
+            this.label1.TabIndex = 2;
+            this.label1.Text = "Chat text size:";
+            // 
             // txtReconnectTime
             // 
-            this.txtReconnectTime.Location = new System.Drawing.Point(139, 165);
+            this.txtReconnectTime.Location = new System.Drawing.Point(420, 97);
             this.txtReconnectTime.Name = "txtReconnectTime";
             this.txtReconnectTime.Size = new System.Drawing.Size(53, 20);
-            this.txtReconnectTime.TabIndex = 7;
+            this.txtReconnectTime.TabIndex = 8;
             this.txtReconnectTime.Text = "120";
             this.txtReconnectTime.TextChanged += new System.EventHandler(this.txtReconnectTime_TextChanged);
             // 
             // label2
             // 
             this.label2.AutoSize = true;
-            this.label2.Location = new System.Drawing.Point(8, 167);
+            this.label2.Location = new System.Drawing.Point(291, 100);
             this.label2.Name = "label2";
-            this.label2.Size = new System.Drawing.Size(125, 13);
-            this.label2.TabIndex = 16;
-            this.label2.Text = "Autoreconnect time (sec)";
+            this.label2.Size = new System.Drawing.Size(128, 13);
+            this.label2.TabIndex = 7;
+            this.label2.Text = "Auto reconnect time (sec)";
             // 
             // gbDisplayNames
             // 
@@ -169,17 +287,17 @@ namespace Radegast
             this.gbDisplayNames.Controls.Add(this.rbDNDandUsernme);
             this.gbDisplayNames.Controls.Add(this.rbDNSmart);
             this.gbDisplayNames.Controls.Add(this.rbDNOff);
-            this.gbDisplayNames.Location = new System.Drawing.Point(270, 75);
+            this.gbDisplayNames.Location = new System.Drawing.Point(8, 165);
             this.gbDisplayNames.Name = "gbDisplayNames";
-            this.gbDisplayNames.Size = new System.Drawing.Size(200, 109);
-            this.gbDisplayNames.TabIndex = 15;
+            this.gbDisplayNames.Size = new System.Drawing.Size(256, 100);
+            this.gbDisplayNames.TabIndex = 1;
             this.gbDisplayNames.TabStop = false;
             this.gbDisplayNames.Text = "Display names";
             // 
             // rbDNOnlyDN
             // 
             this.rbDNOnlyDN.AutoSize = true;
-            this.rbDNOnlyDN.Location = new System.Drawing.Point(6, 88);
+            this.rbDNOnlyDN.Location = new System.Drawing.Point(6, 75);
             this.rbDNOnlyDN.Name = "rbDNOnlyDN";
             this.rbDNOnlyDN.Size = new System.Drawing.Size(110, 17);
             this.rbDNOnlyDN.TabIndex = 3;
@@ -191,7 +309,7 @@ namespace Radegast
             // rbDNDandUsernme
             // 
             this.rbDNDandUsernme.AutoSize = true;
-            this.rbDNDandUsernme.Location = new System.Drawing.Point(6, 65);
+            this.rbDNDandUsernme.Location = new System.Drawing.Point(6, 55);
             this.rbDNDandUsernme.Name = "rbDNDandUsernme";
             this.rbDNDandUsernme.Size = new System.Drawing.Size(143, 17);
             this.rbDNDandUsernme.TabIndex = 2;
@@ -203,7 +321,7 @@ namespace Radegast
             // rbDNSmart
             // 
             this.rbDNSmart.AutoSize = true;
-            this.rbDNSmart.Location = new System.Drawing.Point(6, 42);
+            this.rbDNSmart.Location = new System.Drawing.Point(6, 35);
             this.rbDNSmart.Name = "rbDNSmart";
             this.rbDNSmart.Size = new System.Drawing.Size(52, 17);
             this.rbDNSmart.TabIndex = 1;
@@ -215,7 +333,7 @@ namespace Radegast
             // rbDNOff
             // 
             this.rbDNOff.AutoSize = true;
-            this.rbDNOff.Location = new System.Drawing.Point(6, 19);
+            this.rbDNOff.Location = new System.Drawing.Point(6, 15);
             this.rbDNOff.Name = "rbDNOff";
             this.rbDNOff.Size = new System.Drawing.Size(39, 17);
             this.rbDNOff.TabIndex = 0;
@@ -227,103 +345,41 @@ namespace Radegast
             // cbRadegastClientTag
             // 
             this.cbRadegastClientTag.AutoSize = true;
-            this.cbRadegastClientTag.Location = new System.Drawing.Point(270, 235);
+            this.cbRadegastClientTag.Location = new System.Drawing.Point(275, 200);
             this.cbRadegastClientTag.Name = "cbRadegastClientTag";
             this.cbRadegastClientTag.Size = new System.Drawing.Size(146, 17);
-            this.cbRadegastClientTag.TabIndex = 18;
+            this.cbRadegastClientTag.TabIndex = 13;
             this.cbRadegastClientTag.Text = "Send Radegast client tag";
             this.cbRadegastClientTag.UseVisualStyleBackColor = true;
             // 
-            // cbTaskBarHighLight
-            // 
-            this.cbTaskBarHighLight.AutoSize = true;
-            this.cbTaskBarHighLight.Location = new System.Drawing.Point(270, 212);
-            this.cbTaskBarHighLight.Name = "cbTaskBarHighLight";
-            this.cbTaskBarHighLight.Size = new System.Drawing.Size(155, 17);
-            this.cbTaskBarHighLight.TabIndex = 17;
-            this.cbTaskBarHighLight.Text = "Highlight in taskbar on chat";
-            this.cbTaskBarHighLight.UseVisualStyleBackColor = true;
-            // 
             // cbSyntaxHighlight
             // 
             this.cbSyntaxHighlight.AutoSize = true;
-            this.cbSyntaxHighlight.Location = new System.Drawing.Point(270, 52);
+            this.cbSyntaxHighlight.Location = new System.Drawing.Point(275, 60);
             this.cbSyntaxHighlight.Name = "cbSyntaxHighlight";
             this.cbSyntaxHighlight.Size = new System.Drawing.Size(134, 17);
-            this.cbSyntaxHighlight.TabIndex = 14;
+            this.cbSyntaxHighlight.TabIndex = 5;
             this.cbSyntaxHighlight.Text = "LSL syntax highlighting";
             this.cbSyntaxHighlight.UseVisualStyleBackColor = true;
             // 
-            // label1
-            // 
-            this.label1.AutoSize = true;
-            this.label1.Location = new System.Drawing.Point(267, 190);
-            this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(73, 13);
-            this.label1.TabIndex = 10;
-            this.label1.Text = "Chat text size:";
-            // 
-            // cbFontSize
-            // 
-            this.cbFontSize.FormatString = "N2";
-            this.cbFontSize.FormattingEnabled = true;
-            this.cbFontSize.Items.AddRange(new object[] {
-            "8.25",
-            "9",
-            "10",
-            "12",
-            "14",
-            "16",
-            "20"});
-            this.cbFontSize.Location = new System.Drawing.Point(346, 187);
-            this.cbFontSize.Name = "cbFontSize";
-            this.cbFontSize.Size = new System.Drawing.Size(54, 21);
-            this.cbFontSize.TabIndex = 16;
-            this.cbFontSize.Text = "8.25";
-            this.cbFontSize.SelectedIndexChanged += new System.EventHandler(this.cbFontSize_SelectedIndexChanged);
-            this.cbFontSize.Leave += new System.EventHandler(this.cbFontSize_Leave);
-            this.cbFontSize.KeyDown += new System.Windows.Forms.KeyEventHandler(this.cbFontSize_KeyDown);
-            // 
-            // cbNoTyping
-            // 
-            this.cbNoTyping.AutoSize = true;
-            this.cbNoTyping.Location = new System.Drawing.Point(270, 29);
-            this.cbNoTyping.Name = "cbNoTyping";
-            this.cbNoTyping.Size = new System.Drawing.Size(150, 17);
-            this.cbNoTyping.TabIndex = 13;
-            this.cbNoTyping.Text = "Don\'t use typing animation";
-            this.cbNoTyping.UseVisualStyleBackColor = true;
-            this.cbNoTyping.CheckedChanged += new System.EventHandler(this.cbTrasactChat_CheckedChanged);
-            // 
             // cbMinToTrey
             // 
             this.cbMinToTrey.AutoSize = true;
-            this.cbMinToTrey.Location = new System.Drawing.Point(270, 6);
+            this.cbMinToTrey.Location = new System.Drawing.Point(275, 40);
             this.cbMinToTrey.Name = "cbMinToTrey";
             this.cbMinToTrey.Size = new System.Drawing.Size(133, 17);
-            this.cbMinToTrey.TabIndex = 12;
+            this.cbMinToTrey.TabIndex = 4;
             this.cbMinToTrey.Text = "Minimize to system tray";
             this.cbMinToTrey.UseVisualStyleBackColor = true;
             this.cbMinToTrey.CheckedChanged += new System.EventHandler(this.cbTrasactChat_CheckedChanged);
             // 
-            // cbMUEmotes
-            // 
-            this.cbMUEmotes.AutoSize = true;
-            this.cbMUEmotes.Location = new System.Drawing.Point(8, 235);
-            this.cbMUEmotes.Name = "cbMUEmotes";
-            this.cbMUEmotes.Size = new System.Drawing.Size(108, 17);
-            this.cbMUEmotes.TabIndex = 10;
-            this.cbMUEmotes.Text = "MU* style emotes";
-            this.cbMUEmotes.UseVisualStyleBackColor = true;
-            this.cbMUEmotes.CheckedChanged += new System.EventHandler(this.cbTrasactChat_CheckedChanged);
-            // 
             // cbRLV
             // 
             this.cbRLV.AutoSize = true;
-            this.cbRLV.Location = new System.Drawing.Point(8, 212);
+            this.cbRLV.Location = new System.Drawing.Point(275, 180);
             this.cbRLV.Name = "cbRLV";
             this.cbRLV.Size = new System.Drawing.Size(85, 17);
-            this.cbRLV.TabIndex = 9;
+            this.cbRLV.TabIndex = 12;
             this.cbRLV.Text = "RLV support";
             this.cbRLV.UseVisualStyleBackColor = true;
             this.cbRLV.CheckedChanged += new System.EventHandler(this.cbTrasactChat_CheckedChanged);
@@ -331,10 +387,10 @@ namespace Radegast
             // cbHideLoginGraphics
             // 
             this.cbHideLoginGraphics.AutoSize = true;
-            this.cbHideLoginGraphics.Location = new System.Drawing.Point(8, 189);
+            this.cbHideLoginGraphics.Location = new System.Drawing.Point(275, 20);
             this.cbHideLoginGraphics.Name = "cbHideLoginGraphics";
             this.cbHideLoginGraphics.Size = new System.Drawing.Size(141, 17);
-            this.cbHideLoginGraphics.TabIndex = 8;
+            this.cbHideLoginGraphics.TabIndex = 3;
             this.cbHideLoginGraphics.Text = "Hide login slpash screen";
             this.cbHideLoginGraphics.UseVisualStyleBackColor = true;
             this.cbHideLoginGraphics.CheckedChanged += new System.EventHandler(this.cbTrasactChat_CheckedChanged);
@@ -342,7 +398,7 @@ namespace Radegast
             // cbAutoReconnect
             // 
             this.cbAutoReconnect.AutoSize = true;
-            this.cbAutoReconnect.Location = new System.Drawing.Point(8, 144);
+            this.cbAutoReconnect.Location = new System.Drawing.Point(275, 80);
             this.cbAutoReconnect.Name = "cbAutoReconnect";
             this.cbAutoReconnect.Size = new System.Drawing.Size(169, 17);
             this.cbAutoReconnect.TabIndex = 6;
@@ -350,24 +406,13 @@ namespace Radegast
             this.cbAutoReconnect.UseVisualStyleBackColor = true;
             this.cbAutoReconnect.CheckedChanged += new System.EventHandler(this.cbTrasactChat_CheckedChanged);
             // 
-            // cbFriendsHighlight
-            // 
-            this.cbFriendsHighlight.AutoSize = true;
-            this.cbFriendsHighlight.Location = new System.Drawing.Point(8, 121);
-            this.cbFriendsHighlight.Name = "cbFriendsHighlight";
-            this.cbFriendsHighlight.Size = new System.Drawing.Size(248, 17);
-            this.cbFriendsHighlight.TabIndex = 5;
-            this.cbFriendsHighlight.Text = "Highlight chat tab on friends online notifications";
-            this.cbFriendsHighlight.UseVisualStyleBackColor = true;
-            this.cbFriendsHighlight.CheckedChanged += new System.EventHandler(this.cbTrasactChat_CheckedChanged);
-            // 
             // cbFriendsNotifications
             // 
             this.cbFriendsNotifications.AutoSize = true;
-            this.cbFriendsNotifications.Location = new System.Drawing.Point(8, 98);
+            this.cbFriendsNotifications.Location = new System.Drawing.Point(275, 160);
             this.cbFriendsNotifications.Name = "cbFriendsNotifications";
             this.cbFriendsNotifications.Size = new System.Drawing.Size(184, 17);
-            this.cbFriendsNotifications.TabIndex = 4;
+            this.cbFriendsNotifications.TabIndex = 11;
             this.cbFriendsNotifications.Text = "Display friends online notifications";
             this.cbFriendsNotifications.UseVisualStyleBackColor = true;
             this.cbFriendsNotifications.CheckedChanged += new System.EventHandler(this.cbTrasactChat_CheckedChanged);
@@ -375,10 +420,10 @@ namespace Radegast
             // cbTrasactChat
             // 
             this.cbTrasactChat.AutoSize = true;
-            this.cbTrasactChat.Location = new System.Drawing.Point(8, 75);
+            this.cbTrasactChat.Location = new System.Drawing.Point(275, 140);
             this.cbTrasactChat.Name = "cbTrasactChat";
             this.cbTrasactChat.Size = new System.Drawing.Size(170, 17);
-            this.cbTrasactChat.TabIndex = 3;
+            this.cbTrasactChat.TabIndex = 10;
             this.cbTrasactChat.Text = "Display L$ transactions in chat";
             this.cbTrasactChat.UseVisualStyleBackColor = true;
             this.cbTrasactChat.CheckedChanged += new System.EventHandler(this.cbTrasactChat_CheckedChanged);
@@ -386,34 +431,14 @@ namespace Radegast
             // cbTrasactDialog
             // 
             this.cbTrasactDialog.AutoSize = true;
-            this.cbTrasactDialog.Location = new System.Drawing.Point(8, 52);
+            this.cbTrasactDialog.Location = new System.Drawing.Point(275, 120);
             this.cbTrasactDialog.Name = "cbTrasactDialog";
             this.cbTrasactDialog.Size = new System.Drawing.Size(176, 17);
-            this.cbTrasactDialog.TabIndex = 2;
+            this.cbTrasactDialog.TabIndex = 9;
             this.cbTrasactDialog.Text = "Display dialog on L$ transaction";
             this.cbTrasactDialog.UseVisualStyleBackColor = true;
             this.cbTrasactDialog.CheckedChanged += new System.EventHandler(this.cbTrasactDialog_CheckedChanged);
             // 
-            // cbIMTimeStamps
-            // 
-            this.cbIMTimeStamps.AutoSize = true;
-            this.cbIMTimeStamps.Location = new System.Drawing.Point(8, 29);
-            this.cbIMTimeStamps.Name = "cbIMTimeStamps";
-            this.cbIMTimeStamps.Size = new System.Drawing.Size(137, 17);
-            this.cbIMTimeStamps.TabIndex = 1;
-            this.cbIMTimeStamps.Text = "Show timestamps in  IM";
-            this.cbIMTimeStamps.UseVisualStyleBackColor = true;
-            // 
-            // cbChatTimestamps
-            // 
-            this.cbChatTimestamps.AutoSize = true;
-            this.cbChatTimestamps.Location = new System.Drawing.Point(8, 6);
-            this.cbChatTimestamps.Name = "cbChatTimestamps";
-            this.cbChatTimestamps.Size = new System.Drawing.Size(143, 17);
-            this.cbChatTimestamps.TabIndex = 0;
-            this.cbChatTimestamps.Text = "Show timestamps in chat";
-            this.cbChatTimestamps.UseVisualStyleBackColor = true;
-            // 
             // tbpAutoResponse
             // 
             this.tbpAutoResponse.Controls.Add(this.gnAutoInventory);
@@ -528,6 +553,8 @@ namespace Radegast
             this.tcGraphics.ResumeLayout(false);
             this.tbpGeneral.ResumeLayout(false);
             this.tbpGeneral.PerformLayout();
+            this.Chat.ResumeLayout(false);
+            this.Chat.PerformLayout();
             this.gbDisplayNames.ResumeLayout(false);
             this.gbDisplayNames.PerformLayout();
             this.tbpAutoResponse.ResumeLayout(false);
@@ -576,6 +603,8 @@ namespace Radegast
         public System.Windows.Forms.CheckBox cbRadegastClientTag;
         public System.Windows.Forms.GroupBox gnAutoInventory;
         public System.Windows.Forms.ComboBox cbOnInvOffer;
+        private System.Windows.Forms.GroupBox Chat;
+        private System.Windows.Forms.CheckBox cbRadegastLogToFile;
 
 
     }
index a4480a9..bcbd05d 100644 (file)
@@ -113,7 +113,7 @@ namespace Radegast
 
             if (!s.ContainsKey("send_rad_client_tag")) s["send_rad_client_tag"] = true;
 
-
+            if (!s.ContainsKey("log_to_file")) s["log_to_file"] = true;
         }
 
         public frmSettings(RadegastInstance instance)
@@ -232,6 +232,8 @@ namespace Radegast
             {
                 s["inv_auto_accept_mode"] = cbOnInvOffer.SelectedIndex;
             };
+
+            cbRadegastLogToFile.Checked = s["log_to_file"];
         }
 
         void cbHideLoginGraphics_CheckedChanged(object sender, EventArgs e)
@@ -357,5 +359,10 @@ namespace Radegast
             
             s["reconnect_time"] = t;
         }
+
+        private void cbRadegastLogToFile_CheckedChanged(object sender, EventArgs e)
+        {
+            s["log_to_file"] = OSD.FromBoolean(cbRadegastLogToFile.Checked);
+        }
     }
 }