OSDN Git Service

merge 0.9.4 to jp
[handbrake-jp/handbrake-jp.git] / win / C# / frmActivityWindow.cs
index 9f9f411..b2655f9 100644 (file)
@@ -35,6 +35,12 @@ namespace Handbrake
 \r
             fileNotFoundQuickFix = false;\r
 \r
+/*\r
+            if (file == "dvdinfo.dat")\r
+                txt_log.Text = "\83X\83L\83\83\83\93\83\8d\83O";\r
+            else if (file == "hb_encode_log.dat")\r
+                txt_log.Text = "\83G\83\93\83R\81[\83h\83\8d\83O";\r
+*/\r
             if (file == "last_scan_log.txt")\r
                 SetLogView(true);\r
             else\r
@@ -96,6 +102,62 @@ namespace Handbrake
             _lastUpdate = false;\r
         }\r
 \r
+/*\r
+        /// <summary>\r
+        /// Change the log file to be displayed to hb_encode_log.dat\r
+        /// </summary>\r
+        /// <param name="sender"></param>\r
+        /// <param name="e"></param>\r
+        private void btn_scan_log_Click(object sender, EventArgs e)\r
+        {\r
+            if (monitor != null)\r
+                monitor.Abort();\r
+\r
+            rtf_actLog.Clear();\r
+            read_file = "dvdinfo.dat";\r
+            displayLogHeader();\r
+            startLogThread(read_file);\r
+            txt_log.Text = "\83X\83L\83\83\83\93\83\8d\83O";\r
+        }\r
+\r
+        /// <summary>\r
+        /// Change the log file to be displayed to dvdinfo.dat\r
+        /// </summary>\r
+        /// <param name="sender"></param>\r
+        /// <param name="e"></param>\r
+        private void btn_encode_log_Click(object sender, EventArgs e)\r
+        {\r
+            if (monitor != null)\r
+                monitor.Abort();\r
+\r
+            rtf_actLog.Clear();\r
+            read_file = "hb_encode_log.dat";\r
+            position = 0;\r
+            displayLogHeader();\r
+            startLogThread(read_file);\r
+            txt_log.Text = "\83G\83\93\83R\81[\83h\83\8d\83O";\r
+        }\r
+\r
+        /// <summary>\r
+        /// Copy to Clipboard\r
+        /// </summary>\r
+        /// <param name="sender"></param>\r
+        /// <param name="e"></param>\r
+        private void btn_copy_Click(object sender, EventArgs e)\r
+        {\r
+            if (rtf_actLog.SelectedText != "")\r
+                Clipboard.SetDataObject(rtf_actLog.SelectedText, true);\r
+            else\r
+                Clipboard.SetDataObject(rtf_actLog.Text, true);\r
+        }\r
+\r
+        /// <summary>\r
+        /// Updates the log window with any new data which is in the log file.\r
+        /// This is done every 5 seconds.\r
+        /// </summary>\r
+        /// <param name="state"></param>\r
+        private void autoUpdate(object state)\r
+*/\r
         private void AutoUpdate(object state)\r
         {\r
             try\r