OSDN Git Service

WinGui:
authorsr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sun, 28 Dec 2008 17:25:07 +0000 (17:25 +0000)
committersr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sun, 28 Dec 2008 17:25:07 +0000 (17:25 +0000)
- Option to hide the Query Editor tab.
- Fixed small issue with remove button on the new audio tab. Would error if no track was selected.
- Fixed an issue with the preset bar where selecting an already selected preset wouldn't reset the GUI settings for that preset.

git-svn-id: svn://localhost/HandBrake/trunk@2047 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/C#/Properties/Settings.Designer.cs
win/C#/Properties/Settings.settings
win/C#/app.config
win/C#/frmMain.Designer.cs
win/C#/frmMain.cs
win/C#/frmOptions.Designer.cs
win/C#/frmOptions.cs

index 1739156..c18b31d 100644 (file)
@@ -1,7 +1,7 @@
 //------------------------------------------------------------------------------\r
 // <auto-generated>\r
 //     This code was generated by a tool.\r
-//     Runtime Version:2.0.50727.3053\r
+//     Runtime Version:2.0.50727.1433\r
 //\r
 //     Changes to this file may cause incorrect behavior and will be lost if\r
 //     the code is regenerated.\r
@@ -322,5 +322,17 @@ namespace Handbrake.Properties {
                 this["MainWindowMinimize"] = value;\r
             }\r
         }\r
+        \r
+        [global::System.Configuration.UserScopedSettingAttribute()]\r
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]\r
+        [global::System.Configuration.DefaultSettingValueAttribute("")]\r
+        public string QueryEditorTab {\r
+            get {\r
+                return ((string)(this["QueryEditorTab"]));\r
+            }\r
+            set {\r
+                this["QueryEditorTab"] = value;\r
+            }\r
+        }\r
     }\r
 }\r
index 42af294..2b8b4f2 100644 (file)
@@ -77,5 +77,8 @@
     <Setting Name="MainWindowMinimize" Type="System.String" Scope="User">\r
       <Value Profile="(Default)">Checked</Value>\r
     </Setting>\r
+    <Setting Name="QueryEditorTab" Type="System.String" Scope="User">\r
+      <Value Profile="(Default)" />\r
+    </Setting>\r
   </Settings>\r
 </SettingsFile>
\ No newline at end of file
index dcaf46f..433cbf1 100644 (file)
@@ -82,6 +82,9 @@
             <setting name="MainWindowMinimize" serializeAs="String">\r
                 <value>Checked</value>\r
             </setting>\r
+            <setting name="QueryEditorTab" serializeAs="String">\r
+                <value />\r
+            </setting>\r
         </Handbrake.Properties.Settings>\r
     </userSettings>\r
 <startup><supportedRuntime version="v2.0.50727"/></startup></configuration>\r
index fd5ebbe..b742b85 100644 (file)
@@ -192,7 +192,7 @@ namespace Handbrake
             this.Label51 = new System.Windows.Forms.Label();\r
             this.Label15 = new System.Windows.Forms.Label();\r
             this.Check_ChapterMarkers = new System.Windows.Forms.CheckBox();\r
-            this.advancedOptions = new System.Windows.Forms.TabControl();\r
+            this.tabs_panel = new System.Windows.Forms.TabControl();\r
             this.tab_chapters = new System.Windows.Forms.TabPage();\r
             this.label31 = new System.Windows.Forms.Label();\r
             this.h264Tab = new System.Windows.Forms.TabPage();\r
@@ -211,7 +211,7 @@ namespace Handbrake
             this.lbl_direct_prediction = new System.Windows.Forms.Label();\r
             this.label62 = new System.Windows.Forms.Label();\r
             this.label64 = new System.Windows.Forms.Label();\r
-            this.tabPage4 = new System.Windows.Forms.TabPage();\r
+            this.tab_query = new System.Windows.Forms.TabPage();\r
             this.btn_clear = new System.Windows.Forms.Button();\r
             this.label34 = new System.Windows.Forms.Label();\r
             this.btn_generate_Query = new System.Windows.Forms.Button();\r
@@ -260,10 +260,10 @@ namespace Handbrake
             ((System.ComponentModel.ISupportInitialize)(this.text_top)).BeginInit();\r
             ((System.ComponentModel.ISupportInitialize)(this.text_left)).BeginInit();\r
             ((System.ComponentModel.ISupportInitialize)(this.text_right)).BeginInit();\r
-            this.advancedOptions.SuspendLayout();\r
+            this.tabs_panel.SuspendLayout();\r
             this.tab_chapters.SuspendLayout();\r
             this.h264Tab.SuspendLayout();\r
-            this.tabPage4.SuspendLayout();\r
+            this.tab_query.SuspendLayout();\r
             this.groupBox_dest.SuspendLayout();\r
             this.groupBox2.SuspendLayout();\r
             this.splitContainer1.Panel1.SuspendLayout();\r
@@ -2270,21 +2270,21 @@ namespace Handbrake
             this.Check_ChapterMarkers.UseVisualStyleBackColor = false;\r
             this.Check_ChapterMarkers.CheckedChanged += new System.EventHandler(this.Check_ChapterMarkers_CheckedChanged);\r
             // \r
-            // advancedOptions\r
-            // \r
-            this.advancedOptions.Controls.Add(this.TabPage1);\r
-            this.advancedOptions.Controls.Add(this.TabPage3);\r
-            this.advancedOptions.Controls.Add(this.TabPage2);\r
-            this.advancedOptions.Controls.Add(this.tab_chapters);\r
-            this.advancedOptions.Controls.Add(this.h264Tab);\r
-            this.advancedOptions.Controls.Add(this.tabPage4);\r
-            this.advancedOptions.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
-            this.advancedOptions.Location = new System.Drawing.Point(9, 274);\r
-            this.advancedOptions.Name = "advancedOptions";\r
-            this.advancedOptions.SelectedIndex = 0;\r
-            this.advancedOptions.Size = new System.Drawing.Size(721, 342);\r
-            this.advancedOptions.TabIndex = 5;\r
-            this.advancedOptions.TabStop = false;\r
+            // tabs_panel\r
+            // \r
+            this.tabs_panel.Controls.Add(this.TabPage1);\r
+            this.tabs_panel.Controls.Add(this.TabPage3);\r
+            this.tabs_panel.Controls.Add(this.TabPage2);\r
+            this.tabs_panel.Controls.Add(this.tab_chapters);\r
+            this.tabs_panel.Controls.Add(this.h264Tab);\r
+            this.tabs_panel.Controls.Add(this.tab_query);\r
+            this.tabs_panel.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+            this.tabs_panel.Location = new System.Drawing.Point(9, 274);\r
+            this.tabs_panel.Name = "tabs_panel";\r
+            this.tabs_panel.SelectedIndex = 0;\r
+            this.tabs_panel.Size = new System.Drawing.Size(721, 342);\r
+            this.tabs_panel.TabIndex = 5;\r
+            this.tabs_panel.TabStop = false;\r
             // \r
             // tab_chapters\r
             // \r
@@ -2501,18 +2501,18 @@ namespace Handbrake
             this.label64.TabIndex = 1;\r
             this.label64.Text = "Reference Frames:";\r
             // \r
-            // tabPage4\r
+            // tab_query\r
             // \r
-            this.tabPage4.Controls.Add(this.btn_clear);\r
-            this.tabPage4.Controls.Add(this.label34);\r
-            this.tabPage4.Controls.Add(this.btn_generate_Query);\r
-            this.tabPage4.Controls.Add(this.label33);\r
-            this.tabPage4.Controls.Add(this.rtf_query);\r
-            this.tabPage4.Location = new System.Drawing.Point(4, 22);\r
-            this.tabPage4.Name = "tabPage4";\r
-            this.tabPage4.Size = new System.Drawing.Size(713, 316);\r
-            this.tabPage4.TabIndex = 7;\r
-            this.tabPage4.Text = "Query Editor";\r
+            this.tab_query.Controls.Add(this.btn_clear);\r
+            this.tab_query.Controls.Add(this.label34);\r
+            this.tab_query.Controls.Add(this.btn_generate_Query);\r
+            this.tab_query.Controls.Add(this.label33);\r
+            this.tab_query.Controls.Add(this.rtf_query);\r
+            this.tab_query.Location = new System.Drawing.Point(4, 22);\r
+            this.tab_query.Name = "tab_query";\r
+            this.tab_query.Size = new System.Drawing.Size(713, 316);\r
+            this.tab_query.TabIndex = 7;\r
+            this.tab_query.Text = "Query Editor";\r
             // \r
             // btn_clear\r
             // \r
@@ -2848,7 +2848,7 @@ namespace Handbrake
             this.Controls.Add(this.groupBox_output);\r
             this.Controls.Add(this.groupBox2);\r
             this.Controls.Add(this.toolStrip1);\r
-            this.Controls.Add(this.advancedOptions);\r
+            this.Controls.Add(this.tabs_panel);\r
             this.Controls.Add(this.frmMainMenu);\r
             this.Controls.Add(this.StatusStrip);\r
             this.DoubleBuffered = true;\r
@@ -2878,13 +2878,13 @@ namespace Handbrake
             ((System.ComponentModel.ISupportInitialize)(this.text_top)).EndInit();\r
             ((System.ComponentModel.ISupportInitialize)(this.text_left)).EndInit();\r
             ((System.ComponentModel.ISupportInitialize)(this.text_right)).EndInit();\r
-            this.advancedOptions.ResumeLayout(false);\r
+            this.tabs_panel.ResumeLayout(false);\r
             this.tab_chapters.ResumeLayout(false);\r
             this.tab_chapters.PerformLayout();\r
             this.h264Tab.ResumeLayout(false);\r
             this.h264Tab.PerformLayout();\r
-            this.tabPage4.ResumeLayout(false);\r
-            this.tabPage4.PerformLayout();\r
+            this.tab_query.ResumeLayout(false);\r
+            this.tab_query.PerformLayout();\r
             this.groupBox_dest.ResumeLayout(false);\r
             this.groupBox_dest.PerformLayout();\r
             this.groupBox2.ResumeLayout(false);\r
@@ -2957,7 +2957,7 @@ namespace Handbrake
         internal System.Windows.Forms.Label Label52;\r
         internal System.Windows.Forms.Label Label51;\r
         internal System.Windows.Forms.Label Label15;\r
-        internal System.Windows.Forms.TabControl advancedOptions;\r
+        internal System.Windows.Forms.TabControl tabs_panel;\r
         internal System.Windows.Forms.Label Label46;\r
         private System.Windows.Forms.GroupBox groupBox_dest;\r
         internal System.Windows.Forms.ComboBox drp_subtitle;\r
@@ -2995,7 +2995,7 @@ namespace Handbrake
         internal System.Windows.Forms.CheckBox check_optimiseMP4;\r
         internal System.Windows.Forms.CheckBox check_forced;\r
         internal System.Windows.Forms.DataGridView data_chpt;\r
-        private System.Windows.Forms.TabPage tabPage4;\r
+        private System.Windows.Forms.TabPage tab_query;\r
         private System.Windows.Forms.Label label34;\r
         internal System.Windows.Forms.Button btn_generate_Query;\r
         internal System.Windows.Forms.Label label33;\r
index 71ecbec..faaa58d 100644 (file)
@@ -87,6 +87,8 @@ namespace Handbrake
             treeView_presets.ExpandAll();\r
             lbl_encode.Text = "";\r
             queueWindow = new frmQueue(this);        // Prepare the Queue\r
+            if (Properties.Settings.Default.QueryEditorTab != "Checked")\r
+                tabs_panel.TabPages.RemoveAt(5); // Remove the query editor tab if the user does not want it enabled.\r
 \r
             // Load the user's default settings or Normal Preset\r
             if (Properties.Settings.Default.defaultSettings == "Checked" && Properties.Settings.Default.defaultUserSettings != "")\r
@@ -284,12 +286,6 @@ namespace Handbrake
         {\r
             treeView_presets.CollapseAll();\r
         }\r
-        private void treeview_presets_mouseUp(object sender, MouseEventArgs e)\r
-        {\r
-            if (e.Button == MouseButtons.Right)\r
-                treeView_presets.SelectedNode = treeView_presets.GetNodeAt(e.Location);\r
-            treeView_presets.Select();\r
-        }\r
         private void pmnu_delete_click(object sender, EventArgs e)\r
         {\r
             if (treeView_presets.SelectedNode != null)\r
@@ -349,26 +345,42 @@ namespace Handbrake
             Properties.Settings.Default.Save();\r
             MessageBox.Show("New default settings saved.", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);\r
         }\r
-        private void treeView_presets_AfterSelect(object sender, TreeViewEventArgs e)\r
+        private void treeview_presets_mouseUp(object sender, MouseEventArgs e)\r
         {\r
-            // Ok, so, we've selected a preset. Now we want to load it.\r
-            string presetName = treeView_presets.SelectedNode.Text;\r
-            string query = presetHandler.getCliForPreset(presetName);\r
+            if (e.Button == MouseButtons.Right)\r
+                treeView_presets.SelectedNode = treeView_presets.GetNodeAt(e.Location);\r
+            else if (e.Button == MouseButtons.Left)\r
+                selectPreset();\r
 \r
-            if (query != null)\r
+            treeView_presets.Select();\r
+        }\r
+        private void treeView_presets_AfterSelect(object sender, TreeViewEventArgs e)\r
+        {\r
+            selectPreset();\r
+        }\r
+        private void selectPreset()\r
+        {\r
+            if (treeView_presets.SelectedNode != null)\r
             {\r
-                //Ok, Reset all the H264 widgets before changing the preset\r
-                x264PanelFunctions.reset2Defaults(this);\r
+                // Ok, so, we've selected a preset. Now we want to load it.\r
+                string presetName = treeView_presets.SelectedNode.Text;\r
+                string query = presetHandler.getCliForPreset(presetName);\r
 \r
-                // Send the query from the file to the Query Parser class\r
-                Functions.QueryParser presetQuery = Functions.QueryParser.Parse(query);\r
+                if (query != null)\r
+                {\r
+                    //Ok, Reset all the H264 widgets before changing the preset\r
+                    x264PanelFunctions.reset2Defaults(this);\r
 \r
-                // Now load the preset\r
-                presetLoader.presetLoader(this, presetQuery, presetName);\r
+                    // Send the query from the file to the Query Parser class\r
+                    Functions.QueryParser presetQuery = Functions.QueryParser.Parse(query);\r
 \r
-                // The x264 widgets will need updated, so do this now:\r
-                x264PanelFunctions.X264_StandardizeOptString(this);\r
-                x264PanelFunctions.X264_SetCurrentSettingsInPanel(this);\r
+                    // Now load the preset\r
+                    presetLoader.presetLoader(this, presetQuery, presetName);\r
+\r
+                    // The x264 widgets will need updated, so do this now:\r
+                    x264PanelFunctions.X264_StandardizeOptString(this);\r
+                    x264PanelFunctions.X264_SetCurrentSettingsInPanel(this);\r
+                }\r
             }\r
         }\r
         private void treeView_presets_deleteKey(object sender, KeyEventArgs e)\r
@@ -1203,12 +1215,12 @@ namespace Handbrake
         }\r
         private void btn_RemoveAudioTrack_Click(object sender, EventArgs e)\r
         {\r
-            // Record the current selected index.\r
-            int currentPosition = lv_audioList.SelectedIndices[0];\r
-\r
             // Remove the Item and reselect the control if the following conditions are met.\r
             if (lv_audioList.SelectedItems.Count != 0)\r
             {\r
+                // Record the current selected index.\r
+                int currentPosition = lv_audioList.SelectedIndices[0];\r
+\r
                 lv_audioList.Items.RemoveAt(lv_audioList.SelectedIndices[0]);\r
 \r
                 // Now reslect the correct item and give focus to the audio list.\r
index 044b7ab..9090511 100644 (file)
@@ -74,6 +74,8 @@ namespace Handbrake
             this.drp_processors = new System.Windows.Forms.ComboBox();\r
             this.Label4 = new System.Windows.Forms.Label();\r
             this.tab_advanced = new System.Windows.Forms.TabPage();\r
+            this.lbl_appcastUnstable = new System.Windows.Forms.Label();\r
+            this.check_mainMinimize = new System.Windows.Forms.CheckBox();\r
             this.check_snapshot = new System.Windows.Forms.CheckBox();\r
             this.btn_drive_detect = new System.Windows.Forms.CheckBox();\r
             this.label6 = new System.Windows.Forms.Label();\r
@@ -110,8 +112,7 @@ namespace Handbrake
             this.label26 = new System.Windows.Forms.Label();\r
             this.label27 = new System.Windows.Forms.Label();\r
             this.openFile_vlc = new System.Windows.Forms.OpenFileDialog();\r
-            this.check_mainMinimize = new System.Windows.Forms.CheckBox();\r
-            this.lbl_appcastUnstable = new System.Windows.Forms.Label();\r
+            this.check_queryEditorTab = new System.Windows.Forms.CheckBox();\r
             this.tab_options.SuspendLayout();\r
             this.tab_general.SuspendLayout();\r
             this.tab_picture.SuspendLayout();\r
@@ -594,6 +595,7 @@ namespace Handbrake
             // \r
             // tab_advanced\r
             // \r
+            this.tab_advanced.Controls.Add(this.check_queryEditorTab);\r
             this.tab_advanced.Controls.Add(this.lbl_appcastUnstable);\r
             this.tab_advanced.Controls.Add(this.check_mainMinimize);\r
             this.tab_advanced.Controls.Add(this.check_snapshot);\r
@@ -607,12 +609,38 @@ namespace Handbrake
             this.tab_advanced.Text = "Advanced / Other";\r
             this.tab_advanced.UseVisualStyleBackColor = true;\r
             // \r
+            // lbl_appcastUnstable\r
+            // \r
+            this.lbl_appcastUnstable.AutoSize = true;\r
+            this.lbl_appcastUnstable.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+            this.lbl_appcastUnstable.Location = new System.Drawing.Point(6, 105);\r
+            this.lbl_appcastUnstable.Name = "lbl_appcastUnstable";\r
+            this.lbl_appcastUnstable.Size = new System.Drawing.Size(64, 13);\r
+            this.lbl_appcastUnstable.TabIndex = 83;\r
+            this.lbl_appcastUnstable.Text = "Updates:";\r
+            // \r
+            // check_mainMinimize\r
+            // \r
+            this.check_mainMinimize.AutoSize = true;\r
+            this.check_mainMinimize.BackColor = System.Drawing.Color.Transparent;\r
+            this.check_mainMinimize.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+            this.check_mainMinimize.Location = new System.Drawing.Point(76, 41);\r
+            this.check_mainMinimize.Name = "check_mainMinimize";\r
+            this.check_mainMinimize.Size = new System.Drawing.Size(286, 17);\r
+            this.check_mainMinimize.TabIndex = 82;\r
+            this.check_mainMinimize.Text = "Minimize to System Tray rather than task bar";\r
+            this.ToolTip.SetToolTip(this.check_mainMinimize, "Minimize the window to the system tray rather than the task bar.\r\nThe system tray" +\r
+                    " icon has encode status notifications.\r\nNote: requires restart to take effect!\r\n" +\r
+                    "");\r
+            this.check_mainMinimize.UseVisualStyleBackColor = false;\r
+            this.check_mainMinimize.CheckedChanged += new System.EventHandler(this.check_mainMinimize_CheckedChanged);\r
+            // \r
             // check_snapshot\r
             // \r
             this.check_snapshot.AutoSize = true;\r
             this.check_snapshot.BackColor = System.Drawing.Color.Transparent;\r
             this.check_snapshot.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
-            this.check_snapshot.Location = new System.Drawing.Point(76, 81);\r
+            this.check_snapshot.Location = new System.Drawing.Point(76, 104);\r
             this.check_snapshot.Name = "check_snapshot";\r
             this.check_snapshot.Size = new System.Drawing.Size(273, 17);\r
             this.check_snapshot.TabIndex = 80;\r
@@ -1001,31 +1029,20 @@ namespace Handbrake
             this.openFile_vlc.DefaultExt = "exe";\r
             this.openFile_vlc.Filter = "exe|*.exe";\r
             // \r
-            // check_mainMinimize\r
-            // \r
-            this.check_mainMinimize.AutoSize = true;\r
-            this.check_mainMinimize.BackColor = System.Drawing.Color.Transparent;\r
-            this.check_mainMinimize.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
-            this.check_mainMinimize.Location = new System.Drawing.Point(76, 41);\r
-            this.check_mainMinimize.Name = "check_mainMinimize";\r
-            this.check_mainMinimize.Size = new System.Drawing.Size(286, 17);\r
-            this.check_mainMinimize.TabIndex = 82;\r
-            this.check_mainMinimize.Text = "Minimize to System Tray rather than task bar";\r
-            this.ToolTip.SetToolTip(this.check_mainMinimize, "Minimize the window to the system tray rather than the task bar.\r\nThe system tray" +\r
-                    " icon has encode status notifications.\r\nNote: requires restart to take effect!\r\n" +\r
-                    "");\r
-            this.check_mainMinimize.UseVisualStyleBackColor = false;\r
-            this.check_mainMinimize.CheckedChanged += new System.EventHandler(this.check_mainMinimize_CheckedChanged);\r
-            // \r
-            // lbl_appcastUnstable\r
-            // \r
-            this.lbl_appcastUnstable.AutoSize = true;\r
-            this.lbl_appcastUnstable.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
-            this.lbl_appcastUnstable.Location = new System.Drawing.Point(6, 82);\r
-            this.lbl_appcastUnstable.Name = "lbl_appcastUnstable";\r
-            this.lbl_appcastUnstable.Size = new System.Drawing.Size(64, 13);\r
-            this.lbl_appcastUnstable.TabIndex = 83;\r
-            this.lbl_appcastUnstable.Text = "Updates:";\r
+            // check_queryEditorTab\r
+            // \r
+            this.check_queryEditorTab.AutoSize = true;\r
+            this.check_queryEditorTab.BackColor = System.Drawing.Color.Transparent;\r
+            this.check_queryEditorTab.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+            this.check_queryEditorTab.Location = new System.Drawing.Point(76, 64);\r
+            this.check_queryEditorTab.Name = "check_queryEditorTab";\r
+            this.check_queryEditorTab.Size = new System.Drawing.Size(175, 17);\r
+            this.check_queryEditorTab.TabIndex = 84;\r
+            this.check_queryEditorTab.Text = "Enable \"Query Editor\" Tab";\r
+            this.ToolTip.SetToolTip(this.check_queryEditorTab, "Enables the Query Editor tab on the main window. Requires program restart to take" +\r
+                    " effect.");\r
+            this.check_queryEditorTab.UseVisualStyleBackColor = false;\r
+            this.check_queryEditorTab.CheckedChanged += new System.EventHandler(this.check_queryEditorTab_CheckedChanged);\r
             // \r
             // frmOptions\r
             // \r
@@ -1135,5 +1152,6 @@ namespace Handbrake
         private System.Windows.Forms.OpenFileDialog openFile_vlc;\r
         private System.Windows.Forms.Label lbl_appcastUnstable;\r
         internal System.Windows.Forms.CheckBox check_mainMinimize;\r
+        internal System.Windows.Forms.CheckBox check_queryEditorTab;\r
     }\r
 }
\ No newline at end of file
index 32c63b2..e31e41a 100644 (file)
@@ -114,6 +114,9 @@ namespace Handbrake
             if (Properties.Settings.Default.drive_detection == "Checked")\r
                 btn_drive_detect.CheckState = CheckState.Checked;\r
 \r
+            if (Properties.Settings.Default.QueryEditorTab == "Checked")\r
+                check_queryEditorTab.CheckState = CheckState.Checked;\r
+\r
             // Enable snapshot updating\r
             if (Properties.Settings.Default.MainWindowMinimize == "Checked")\r
                 check_mainMinimize.CheckState = CheckState.Checked;\r
@@ -251,6 +254,11 @@ namespace Handbrake
             Properties.Settings.Default.MainWindowMinimize = check_mainMinimize.CheckState.ToString();\r
         }\r
 \r
+        private void check_queryEditorTab_CheckedChanged(object sender, EventArgs e)\r
+        {\r
+            Properties.Settings.Default.QueryEditorTab = check_queryEditorTab.CheckState.ToString();\r
+        }\r
+\r
         private void check_snapshot_CheckedChanged(object sender, EventArgs e)\r
         {\r
             Properties.Settings.Default.checkSnapshot = check_snapshot.CheckState.ToString();\r