diff options
author | sr55 <[email protected]> | 2010-11-19 19:16:29 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2010-11-19 19:16:29 +0000 |
commit | 89de52135fb2fba816979e3971742f4e15d74090 (patch) | |
tree | 5cc68d3db47ead719819adef9ee64536f4b7877e | |
parent | b532bf3e365ecdd4ce30cb773b25670d4a050a67 (diff) |
WinGui:
- Added support for preset descriptions (currently disabled so as not to interfere with the release)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3682 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | win/C#/Presets/Preset.cs | 5 | ||||
-rw-r--r-- | win/C#/Presets/PresetsHandler.cs | 21 | ||||
-rw-r--r-- | win/C#/frmAddPreset.cs | 2 | ||||
-rw-r--r-- | win/C#/frmMain.Designer.cs | 301 | ||||
-rw-r--r-- | win/C#/frmMain.cs | 29 | ||||
-rw-r--r-- | win/C#/frmMain.resx | 20 |
6 files changed, 206 insertions, 172 deletions
diff --git a/win/C#/Presets/Preset.cs b/win/C#/Presets/Preset.cs index 024d31667..b6151a3b0 100644 --- a/win/C#/Presets/Preset.cs +++ b/win/C#/Presets/Preset.cs @@ -34,5 +34,10 @@ namespace Handbrake.Presets /// Gets or sets The version number which associates this preset with a HB build
/// </summary>
public string Version { get; set; }
+
+ /// <summary>
+ /// Gets or sets the Description for the preset
+ /// </summary>
+ public string Description { get; set; }
}
}
\ No newline at end of file diff --git a/win/C#/Presets/PresetsHandler.cs b/win/C#/Presets/PresetsHandler.cs index d53a64ddd..456cdfd8a 100644 --- a/win/C#/Presets/PresetsHandler.cs +++ b/win/C#/Presets/PresetsHandler.cs @@ -62,10 +62,13 @@ namespace Handbrake.Presets /// <param name="pictureSettings">
/// Bool, store crop/picture sizes in the Presets
/// </param>
+ /// <param name="description">
+ /// The description.
+ /// </param>
/// <returns>
/// The add.
/// </returns>
- public bool Add(string presetName, string query, bool pictureSettings)
+ public bool Add(string presetName, string query, bool pictureSettings, string description)
{
if (this.CheckIfPresetExists(presetName) == false)
{
@@ -113,8 +116,7 @@ namespace Handbrake.Presets }
this.userPresets = newUserPresets;
- // Rebuild the UserPresets.xml file
- this.UpdatePresetFiles();
+ // Rebuild the Preset XML files
this.UpdatePresetFiles();
}
@@ -222,7 +224,8 @@ namespace Handbrake.Presets Name = presetName[0].Replace("+", string.Empty).Trim(),
Query = presetName[2],
Version = Properties.Settings.Default.hb_version,
- CropSettings = pic
+ CropSettings = pic,
+ Description = string.Empty // Maybe one day we will populate this.
};
this.presets.Add(newPreset);
}
@@ -243,13 +246,15 @@ namespace Handbrake.Presets {
this.LoadPresetData();
presetPanel.Nodes.Clear();
- string category = string.Empty;
+ string category = string.Empty; // The category we are currnetly processing
TreeNode rootNode = null;
if (this.presets.Count != 0) // Built In Presets
{
foreach (Preset preset in this.presets)
{
+ // If the category of this preset doesn't match the current category we are processing
+ // Then we need to create a new root node.
if (preset.Category != category)
{
rootNode = new TreeNode(preset.Category);
@@ -258,7 +263,7 @@ namespace Handbrake.Presets }
if (preset.Category == category && rootNode != null)
- rootNode.Nodes.Add(preset.Name);
+ rootNode.Nodes.Add(new TreeNode(preset.Name) { ToolTipText = preset.Description });
}
}
@@ -274,9 +279,9 @@ namespace Handbrake.Presets }
if (preset.Category == category && rootNode != null)
- rootNode.Nodes.Add(new TreeNode(preset.Name) {ForeColor = Color.Black});
+ rootNode.Nodes.Add(new TreeNode(preset.Name) {ForeColor = Color.Black, ToolTipText = preset.Description});
else
- presetPanel.Nodes.Add(new TreeNode(preset.Name) {ForeColor = Color.Black});
+ presetPanel.Nodes.Add(new TreeNode(preset.Name) { ForeColor = Color.Black, ToolTipText = preset.Description });
}
}
diff --git a/win/C#/frmAddPreset.cs b/win/C#/frmAddPreset.cs index 8a497d7ac..208dd1cc3 100644 --- a/win/C#/frmAddPreset.cs +++ b/win/C#/frmAddPreset.cs @@ -78,7 +78,7 @@ namespace Handbrake string query = QueryGenerator.GenerateQueryForPreset(mainWindow, pictureSettingsMode, check_useFilters.Checked, 0, 0);
- if (presetCode.Add(txt_preset_name.Text.Trim(), query, pictureSettingsMode != QueryPictureSettingsMode.None))
+ if (presetCode.Add(txt_preset_name.Text.Trim(), query, pictureSettingsMode != QueryPictureSettingsMode.None, string.Empty))
{
this.DialogResult = DialogResult.OK;
this.Close();
diff --git a/win/C#/frmMain.Designer.cs b/win/C#/frmMain.Designer.cs index 3e2399a78..122ee638d 100644 --- a/win/C#/frmMain.Designer.cs +++ b/win/C#/frmMain.Designer.cs @@ -71,6 +71,15 @@ namespace Handbrake this.btn_export = new System.Windows.Forms.Button();
this.drop_mode = new System.Windows.Forms.ComboBox();
this.btn_generate_Query = new System.Windows.Forms.Button();
+ this.treeView_presets = new System.Windows.Forms.TreeView();
+ this.presets_menu = new System.Windows.Forms.ContextMenuStrip(this.components);
+ this.pmnu_expandAll = new System.Windows.Forms.ToolStripMenuItem();
+ this.pmnu_collapse = new System.Windows.Forms.ToolStripMenuItem();
+ this.sep1 = new System.Windows.Forms.ToolStripSeparator();
+ this.pmnu_import = new System.Windows.Forms.ToolStripMenuItem();
+ this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
+ this.pmnu_saveChanges = new System.Windows.Forms.ToolStripMenuItem();
+ this.pmnu_delete = new System.Windows.Forms.ToolStripMenuItem();
this.DVD_Open = new System.Windows.Forms.FolderBrowserDialog();
this.File_Open = new System.Windows.Forms.OpenFileDialog();
this.ISO_Open = new System.Windows.Forms.OpenFileDialog();
@@ -102,7 +111,6 @@ namespace Handbrake this.Label47 = new System.Windows.Forms.Label();
this.Label3 = new System.Windows.Forms.Label();
this.tab_audio = new System.Windows.Forms.TabPage();
- this.AudioSettings = new Handbrake.Controls.AudioPanel();
this.AudioMenuRowHeightHack = new System.Windows.Forms.ImageList(this.components);
this.tab_video = new System.Windows.Forms.TabPage();
this.checkMaximumFramerate = new System.Windows.Forms.CheckBox();
@@ -115,17 +123,13 @@ namespace Handbrake this.lbl_SliderValue = new System.Windows.Forms.Label();
this.lbl_framerate = new System.Windows.Forms.Label();
this.tab_picture = new System.Windows.Forms.TabPage();
- this.PictureSettings = new Handbrake.Controls.PictureSettings();
this.Check_ChapterMarkers = new System.Windows.Forms.CheckBox();
this.tabs_panel = new System.Windows.Forms.TabControl();
this.tab_filters = new System.Windows.Forms.TabPage();
- this.Filters = new Handbrake.Controls.Filters();
this.tab_subtitles = new System.Windows.Forms.TabPage();
- this.Subtitles = new Handbrake.Controls.Subtitles();
this.tab_chapters = new System.Windows.Forms.TabPage();
this.label31 = new System.Windows.Forms.Label();
this.tab_advanced = new System.Windows.Forms.TabPage();
- this.x264Panel = new Handbrake.Controls.x264Panel();
this.tab_query = new System.Windows.Forms.TabPage();
this.btn_clear = new System.Windows.Forms.Button();
this.label34 = new System.Windows.Forms.Label();
@@ -133,15 +137,6 @@ namespace Handbrake this.rtf_query = new System.Windows.Forms.RichTextBox();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
- this.treeView_presets = new System.Windows.Forms.TreeView();
- this.presets_menu = new System.Windows.Forms.ContextMenuStrip(this.components);
- this.pmnu_expandAll = new System.Windows.Forms.ToolStripMenuItem();
- this.pmnu_collapse = new System.Windows.Forms.ToolStripMenuItem();
- this.sep1 = new System.Windows.Forms.ToolStripSeparator();
- this.pmnu_import = new System.Windows.Forms.ToolStripMenuItem();
- this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
- this.pmnu_saveChanges = new System.Windows.Forms.ToolStripMenuItem();
- this.pmnu_delete = new System.Windows.Forms.ToolStripMenuItem();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.btn_source = new System.Windows.Forms.ToolStripDropDownButton();
this.btn_dvd_source = new System.Windows.Forms.ToolStripMenuItem();
@@ -179,11 +174,17 @@ namespace Handbrake this.SourceLayoutPanel = new System.Windows.Forms.FlowLayoutPanel();
this.openPreset = new System.Windows.Forms.OpenFileDialog();
this.File_ChapterImport = new System.Windows.Forms.OpenFileDialog();
+ this.PictureSettings = new Handbrake.Controls.PictureSettings();
+ this.Filters = new Handbrake.Controls.Filters();
+ this.AudioSettings = new Handbrake.Controls.AudioPanel();
+ this.Subtitles = new Handbrake.Controls.Subtitles();
+ this.x264Panel = new Handbrake.Controls.x264Panel();
notifyIconMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
notifyIconMenu.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.slider_videoQuality)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.data_chpt)).BeginInit();
this.ChaptersMenu.SuspendLayout();
+ this.presets_menu.SuspendLayout();
this.frmMainMenu.SuspendLayout();
this.tab_audio.SuspendLayout();
this.tab_video.SuspendLayout();
@@ -198,7 +199,6 @@ namespace Handbrake this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
- this.presets_menu.SuspendLayout();
this.toolStrip1.SuspendLayout();
this.StatusStrip.SuspendLayout();
this.tableLayoutPanel2.SuspendLayout();
@@ -282,7 +282,7 @@ namespace Handbrake this.check_turbo.Enabled = false;
this.check_turbo.Location = new System.Drawing.Point(146, 143);
this.check_turbo.Name = "check_turbo";
- this.check_turbo.Size = new System.Drawing.Size(99, 17);
+ this.check_turbo.Size = new System.Drawing.Size(101, 17);
this.check_turbo.TabIndex = 7;
this.check_turbo.Text = "Turbo first Pass";
this.ToolTip.SetToolTip(this.check_turbo, "Makes the first pass of a 2 pass encode faster.");
@@ -600,6 +600,85 @@ namespace Handbrake this.btn_generate_Query.UseVisualStyleBackColor = true;
this.btn_generate_Query.Click += new System.EventHandler(this.btn_generate_Query_Click);
//
+ // treeView_presets
+ //
+ this.treeView_presets.ContextMenuStrip = this.presets_menu;
+ this.treeView_presets.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.treeView_presets.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.treeView_presets.ForeColor = System.Drawing.Color.DarkBlue;
+ this.treeView_presets.FullRowSelect = true;
+ this.treeView_presets.HideSelection = false;
+ this.treeView_presets.ItemHeight = 21;
+ this.treeView_presets.Location = new System.Drawing.Point(0, 0);
+ this.treeView_presets.Name = "treeView_presets";
+ this.treeView_presets.ShowLines = false;
+ this.treeView_presets.Size = new System.Drawing.Size(240, 424);
+ this.treeView_presets.TabIndex = 0;
+ this.treeView_presets.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView_presets_AfterSelect);
+ this.treeView_presets.KeyUp += new System.Windows.Forms.KeyEventHandler(this.treeView_presets_deleteKey);
+ this.treeView_presets.MouseMove += new System.Windows.Forms.MouseEventHandler(this.TreeViewPresetsMouseMove);
+ this.treeView_presets.MouseUp += new System.Windows.Forms.MouseEventHandler(this.treeview_presets_mouseUp);
+ //
+ // presets_menu
+ //
+ this.presets_menu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.pmnu_expandAll,
+ this.pmnu_collapse,
+ this.sep1,
+ this.pmnu_import,
+ this.toolStripSeparator2,
+ this.pmnu_saveChanges,
+ this.pmnu_delete});
+ this.presets_menu.Name = "presets_menu";
+ this.presets_menu.Size = new System.Drawing.Size(148, 126);
+ this.presets_menu.Text = ";";
+ this.presets_menu.Opening += new System.ComponentModel.CancelEventHandler(this.presets_menu_Opening);
+ //
+ // pmnu_expandAll
+ //
+ this.pmnu_expandAll.Name = "pmnu_expandAll";
+ this.pmnu_expandAll.Size = new System.Drawing.Size(147, 22);
+ this.pmnu_expandAll.Text = "Expand All";
+ this.pmnu_expandAll.Click += new System.EventHandler(this.pmnu_expandAll_Click);
+ //
+ // pmnu_collapse
+ //
+ this.pmnu_collapse.Name = "pmnu_collapse";
+ this.pmnu_collapse.Size = new System.Drawing.Size(147, 22);
+ this.pmnu_collapse.Text = "Collapse All";
+ this.pmnu_collapse.Click += new System.EventHandler(this.pmnu_collapse_Click);
+ //
+ // sep1
+ //
+ this.sep1.Name = "sep1";
+ this.sep1.Size = new System.Drawing.Size(144, 6);
+ //
+ // pmnu_import
+ //
+ this.pmnu_import.Name = "pmnu_import";
+ this.pmnu_import.Size = new System.Drawing.Size(147, 22);
+ this.pmnu_import.Text = "Import";
+ this.pmnu_import.Click += new System.EventHandler(this.pmnu_import_Click);
+ //
+ // toolStripSeparator2
+ //
+ this.toolStripSeparator2.Name = "toolStripSeparator2";
+ this.toolStripSeparator2.Size = new System.Drawing.Size(144, 6);
+ //
+ // pmnu_saveChanges
+ //
+ this.pmnu_saveChanges.Name = "pmnu_saveChanges";
+ this.pmnu_saveChanges.Size = new System.Drawing.Size(147, 22);
+ this.pmnu_saveChanges.Text = "Save Changes";
+ this.pmnu_saveChanges.Click += new System.EventHandler(this.pmnu_saveChanges_Click);
+ //
+ // pmnu_delete
+ //
+ this.pmnu_delete.Name = "pmnu_delete";
+ this.pmnu_delete.Size = new System.Drawing.Size(147, 22);
+ this.pmnu_delete.Text = "Delete";
+ this.pmnu_delete.Click += new System.EventHandler(this.pmnu_delete_click);
+ //
// DVD_Open
//
this.DVD_Open.Description = "Select the \"VIDEO_TS\" folder from your DVD Drive.";
@@ -859,15 +938,6 @@ namespace Handbrake this.tab_audio.Text = "Audio";
this.tab_audio.UseVisualStyleBackColor = true;
//
- // AudioSettings
- //
- this.AudioSettings.BackColor = System.Drawing.Color.Transparent;
- this.AudioSettings.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.AudioSettings.Location = new System.Drawing.Point(0, 0);
- this.AudioSettings.Name = "AudioSettings";
- this.AudioSettings.Size = new System.Drawing.Size(715, 310);
- this.AudioSettings.TabIndex = 0;
- //
// AudioMenuRowHeightHack
//
this.AudioMenuRowHeightHack.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
@@ -907,7 +977,7 @@ namespace Handbrake this.checkMaximumFramerate.BackColor = System.Drawing.Color.Transparent;
this.checkMaximumFramerate.Location = new System.Drawing.Point(125, 89);
this.checkMaximumFramerate.Name = "checkMaximumFramerate";
- this.checkMaximumFramerate.Size = new System.Drawing.Size(131, 17);
+ this.checkMaximumFramerate.Size = new System.Drawing.Size(132, 17);
this.checkMaximumFramerate.TabIndex = 19;
this.checkMaximumFramerate.Text = "Peak Framerate (VFR)";
this.checkMaximumFramerate.UseVisualStyleBackColor = false;
@@ -918,7 +988,7 @@ namespace Handbrake this.radio_cq.BackColor = System.Drawing.Color.Transparent;
this.radio_cq.Location = new System.Drawing.Point(365, 97);
this.radio_cq.Name = "radio_cq";
- this.radio_cq.Size = new System.Drawing.Size(105, 17);
+ this.radio_cq.Size = new System.Drawing.Size(110, 17);
this.radio_cq.TabIndex = 18;
this.radio_cq.Text = "Constant Quality:";
this.radio_cq.UseVisualStyleBackColor = false;
@@ -931,7 +1001,7 @@ namespace Handbrake this.radio_avgBitrate.Checked = true;
this.radio_avgBitrate.Location = new System.Drawing.Point(365, 64);
this.radio_avgBitrate.Name = "radio_avgBitrate";
- this.radio_avgBitrate.Size = new System.Drawing.Size(112, 17);
+ this.radio_avgBitrate.Size = new System.Drawing.Size(116, 17);
this.radio_avgBitrate.TabIndex = 17;
this.radio_avgBitrate.TabStop = true;
this.radio_avgBitrate.Text = "Avg Bitrate (kbps):";
@@ -944,7 +1014,7 @@ namespace Handbrake this.radio_targetFilesize.BackColor = System.Drawing.Color.Transparent;
this.radio_targetFilesize.Location = new System.Drawing.Point(365, 37);
this.radio_targetFilesize.Name = "radio_targetFilesize";
- this.radio_targetFilesize.Size = new System.Drawing.Size(107, 17);
+ this.radio_targetFilesize.Size = new System.Drawing.Size(108, 17);
this.radio_targetFilesize.TabIndex = 16;
this.radio_targetFilesize.Text = "Target Size (MB):";
this.radio_targetFilesize.UseVisualStyleBackColor = false;
@@ -967,7 +1037,7 @@ namespace Handbrake this.check_2PassEncode.BackColor = System.Drawing.Color.Transparent;
this.check_2PassEncode.Location = new System.Drawing.Point(125, 120);
this.check_2PassEncode.Name = "check_2PassEncode";
- this.check_2PassEncode.Size = new System.Drawing.Size(106, 17);
+ this.check_2PassEncode.Size = new System.Drawing.Size(104, 17);
this.check_2PassEncode.TabIndex = 6;
this.check_2PassEncode.Text = "2-Pass Encoding";
this.check_2PassEncode.UseVisualStyleBackColor = false;
@@ -1017,25 +1087,13 @@ namespace Handbrake this.tab_picture.Text = "Picture";
this.tab_picture.UseVisualStyleBackColor = true;
//
- // PictureSettings
- //
- this.PictureSettings.BackColor = System.Drawing.Color.Transparent;
- this.PictureSettings.CurrentlySelectedPreset = null;
- this.PictureSettings.Enabled = false;
- this.PictureSettings.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.PictureSettings.Location = new System.Drawing.Point(0, 0);
- this.PictureSettings.Name = "PictureSettings";
- this.PictureSettings.PresetMaximumResolution = new System.Drawing.Size(0, 0);
- this.PictureSettings.Size = new System.Drawing.Size(666, 279);
- this.PictureSettings.TabIndex = 0;
- //
// Check_ChapterMarkers
//
this.Check_ChapterMarkers.AutoSize = true;
this.Check_ChapterMarkers.BackColor = System.Drawing.Color.Transparent;
this.Check_ChapterMarkers.Location = new System.Drawing.Point(16, 32);
this.Check_ChapterMarkers.Name = "Check_ChapterMarkers";
- this.Check_ChapterMarkers.Size = new System.Drawing.Size(136, 17);
+ this.Check_ChapterMarkers.Size = new System.Drawing.Size(140, 17);
this.Check_ChapterMarkers.TabIndex = 1;
this.Check_ChapterMarkers.Text = "Create chapter markers";
this.Check_ChapterMarkers.UseVisualStyleBackColor = false;
@@ -1068,15 +1126,6 @@ namespace Handbrake this.tab_filters.Text = "Video Filters";
this.tab_filters.UseVisualStyleBackColor = true;
//
- // Filters
- //
- this.Filters.BackColor = System.Drawing.Color.Transparent;
- this.Filters.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.Filters.Location = new System.Drawing.Point(0, 0);
- this.Filters.Name = "Filters";
- this.Filters.Size = new System.Drawing.Size(713, 310);
- this.Filters.TabIndex = 0;
- //
// tab_subtitles
//
this.tab_subtitles.Controls.Add(this.Subtitles);
@@ -1088,15 +1137,6 @@ namespace Handbrake this.tab_subtitles.Text = "Subtitles";
this.tab_subtitles.UseVisualStyleBackColor = true;
//
- // Subtitles
- //
- this.Subtitles.BackColor = System.Drawing.Color.Transparent;
- this.Subtitles.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.Subtitles.Location = new System.Drawing.Point(0, 0);
- this.Subtitles.Name = "Subtitles";
- this.Subtitles.Size = new System.Drawing.Size(722, 310);
- this.Subtitles.TabIndex = 0;
- //
// tab_chapters
//
this.tab_chapters.BackColor = System.Drawing.Color.Transparent;
@@ -1135,16 +1175,6 @@ namespace Handbrake this.tab_advanced.Text = "Advanced";
this.tab_advanced.UseVisualStyleBackColor = true;
//
- // x264Panel
- //
- this.x264Panel.BackColor = System.Drawing.Color.Transparent;
- this.x264Panel.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.x264Panel.Location = new System.Drawing.Point(0, 0);
- this.x264Panel.Name = "x264Panel";
- this.x264Panel.Size = new System.Drawing.Size(720, 306);
- this.x264Panel.TabIndex = 0;
- this.x264Panel.X264Query = "";
- //
// tab_query
//
this.tab_query.Controls.Add(this.btn_clear);
@@ -1232,84 +1262,6 @@ namespace Handbrake this.splitContainer1.SplitterDistance = 424;
this.splitContainer1.TabIndex = 1;
//
- // treeView_presets
- //
- this.treeView_presets.ContextMenuStrip = this.presets_menu;
- this.treeView_presets.Dock = System.Windows.Forms.DockStyle.Fill;
- this.treeView_presets.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.treeView_presets.ForeColor = System.Drawing.Color.DarkBlue;
- this.treeView_presets.FullRowSelect = true;
- this.treeView_presets.HideSelection = false;
- this.treeView_presets.ItemHeight = 21;
- this.treeView_presets.Location = new System.Drawing.Point(0, 0);
- this.treeView_presets.Name = "treeView_presets";
- this.treeView_presets.ShowLines = false;
- this.treeView_presets.Size = new System.Drawing.Size(240, 424);
- this.treeView_presets.TabIndex = 0;
- this.treeView_presets.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView_presets_AfterSelect);
- this.treeView_presets.KeyUp += new System.Windows.Forms.KeyEventHandler(this.treeView_presets_deleteKey);
- this.treeView_presets.MouseUp += new System.Windows.Forms.MouseEventHandler(this.treeview_presets_mouseUp);
- //
- // presets_menu
- //
- this.presets_menu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.pmnu_expandAll,
- this.pmnu_collapse,
- this.sep1,
- this.pmnu_import,
- this.toolStripSeparator2,
- this.pmnu_saveChanges,
- this.pmnu_delete});
- this.presets_menu.Name = "presets_menu";
- this.presets_menu.Size = new System.Drawing.Size(148, 126);
- this.presets_menu.Text = ";";
- this.presets_menu.Opening += new System.ComponentModel.CancelEventHandler(this.presets_menu_Opening);
- //
- // pmnu_expandAll
- //
- this.pmnu_expandAll.Name = "pmnu_expandAll";
- this.pmnu_expandAll.Size = new System.Drawing.Size(147, 22);
- this.pmnu_expandAll.Text = "Expand All";
- this.pmnu_expandAll.Click += new System.EventHandler(this.pmnu_expandAll_Click);
- //
- // pmnu_collapse
- //
- this.pmnu_collapse.Name = "pmnu_collapse";
- this.pmnu_collapse.Size = new System.Drawing.Size(147, 22);
- this.pmnu_collapse.Text = "Collapse All";
- this.pmnu_collapse.Click += new System.EventHandler(this.pmnu_collapse_Click);
- //
- // sep1
- //
- this.sep1.Name = "sep1";
- this.sep1.Size = new System.Drawing.Size(144, 6);
- //
- // pmnu_import
- //
- this.pmnu_import.Name = "pmnu_import";
- this.pmnu_import.Size = new System.Drawing.Size(147, 22);
- this.pmnu_import.Text = "Import";
- this.pmnu_import.Click += new System.EventHandler(this.pmnu_import_Click);
- //
- // toolStripSeparator2
- //
- this.toolStripSeparator2.Name = "toolStripSeparator2";
- this.toolStripSeparator2.Size = new System.Drawing.Size(144, 6);
- //
- // pmnu_saveChanges
- //
- this.pmnu_saveChanges.Name = "pmnu_saveChanges";
- this.pmnu_saveChanges.Size = new System.Drawing.Size(147, 22);
- this.pmnu_saveChanges.Text = "Save Changes";
- this.pmnu_saveChanges.Click += new System.EventHandler(this.pmnu_saveChanges_Click);
- //
- // pmnu_delete
- //
- this.pmnu_delete.Name = "pmnu_delete";
- this.pmnu_delete.Size = new System.Drawing.Size(147, 22);
- this.pmnu_delete.Text = "Delete";
- this.pmnu_delete.Click += new System.EventHandler(this.pmnu_delete_click);
- //
// toolStrip1
//
this.toolStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
@@ -1714,6 +1666,55 @@ namespace Handbrake //
this.File_ChapterImport.Filter = "CSV Files|*.csv";
//
+ // PictureSettings
+ //
+ this.PictureSettings.BackColor = System.Drawing.Color.Transparent;
+ this.PictureSettings.CurrentlySelectedPreset = null;
+ this.PictureSettings.Enabled = false;
+ this.PictureSettings.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.PictureSettings.Location = new System.Drawing.Point(0, 0);
+ this.PictureSettings.Name = "PictureSettings";
+ this.PictureSettings.PresetMaximumResolution = new System.Drawing.Size(0, 0);
+ this.PictureSettings.Size = new System.Drawing.Size(666, 279);
+ this.PictureSettings.TabIndex = 0;
+ //
+ // Filters
+ //
+ this.Filters.BackColor = System.Drawing.Color.Transparent;
+ this.Filters.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Filters.Location = new System.Drawing.Point(0, 0);
+ this.Filters.Name = "Filters";
+ this.Filters.Size = new System.Drawing.Size(713, 310);
+ this.Filters.TabIndex = 0;
+ //
+ // AudioSettings
+ //
+ this.AudioSettings.BackColor = System.Drawing.Color.Transparent;
+ this.AudioSettings.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.AudioSettings.Location = new System.Drawing.Point(0, 0);
+ this.AudioSettings.Name = "AudioSettings";
+ this.AudioSettings.Size = new System.Drawing.Size(715, 310);
+ this.AudioSettings.TabIndex = 0;
+ //
+ // Subtitles
+ //
+ this.Subtitles.BackColor = System.Drawing.Color.Transparent;
+ this.Subtitles.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Subtitles.Location = new System.Drawing.Point(0, 0);
+ this.Subtitles.Name = "Subtitles";
+ this.Subtitles.Size = new System.Drawing.Size(722, 310);
+ this.Subtitles.TabIndex = 0;
+ //
+ // x264Panel
+ //
+ this.x264Panel.BackColor = System.Drawing.Color.Transparent;
+ this.x264Panel.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.x264Panel.Location = new System.Drawing.Point(0, 0);
+ this.x264Panel.Name = "x264Panel";
+ this.x264Panel.Size = new System.Drawing.Size(720, 306);
+ this.x264Panel.TabIndex = 0;
+ this.x264Panel.X264Query = "";
+ //
// frmMain
//
this.AllowDrop = true;
@@ -1744,6 +1745,7 @@ namespace Handbrake ((System.ComponentModel.ISupportInitialize)(this.slider_videoQuality)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.data_chpt)).EndInit();
this.ChaptersMenu.ResumeLayout(false);
+ this.presets_menu.ResumeLayout(false);
this.frmMainMenu.ResumeLayout(false);
this.frmMainMenu.PerformLayout();
this.tab_audio.ResumeLayout(false);
@@ -1762,7 +1764,6 @@ namespace Handbrake this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel2.ResumeLayout(false);
this.splitContainer1.ResumeLayout(false);
- this.presets_menu.ResumeLayout(false);
this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout();
this.StatusStrip.ResumeLayout(false);
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index af5895727..3b6474bdb 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -793,6 +793,29 @@ namespace Handbrake }
/// <summary>
+ /// When the mouse moves, display a preset
+ /// </summary>
+ /// <param name="sender">The Sender</param>
+ /// <param name="e">the MouseEventArgs</param>
+ private void TreeViewPresetsMouseMove(object sender, MouseEventArgs e)
+ {
+ TreeNode theNode = this.treeView_presets.GetNodeAt(e.X, e.Y);
+
+ if ((theNode != null))
+ {
+ // Change the ToolTip only if the pointer moved to a new node.
+ if (theNode.ToolTipText != this.ToolTip.GetToolTip(this.treeView_presets))
+ {
+ this.ToolTip.SetToolTip(this.treeView_presets, theNode.ToolTipText);
+ }
+ }
+ else // Pointer is not over a node so clear the ToolTip.
+ {
+ this.ToolTip.SetToolTip(this.treeView_presets, string.Empty);
+ }
+ }
+
+ /// <summary>
/// Preset Bar - Handle the Delete Key
/// </summary>
/// <param name="sender">
@@ -912,7 +935,7 @@ namespace Handbrake PresetLoader.LoadPreset(this, parsed, parsed.PresetName);
if (presetHandler.Add(parsed.PresetName + " (Imported)",
QueryGenerator.GenerateFullQuery(this),
- parsed.UsesPictureSettings))
+ parsed.UsesPictureSettings, string.Empty))
{
TreeNode preset_treeview = new TreeNode(parsed.PresetName + " (Imported)")
{
@@ -1202,13 +1225,13 @@ namespace Handbrake MessageBoxIcon.Warning);
if (result != DialogResult.Yes) return false;
- }
+ }
else
{
return false;
}
}
-
+
// Add the job.
encodeQueue.Add(query, this.GetTitle(), jobSourcePath, jobDestination, (rtf_query.Text != string.Empty));
diff --git a/win/C#/frmMain.resx b/win/C#/frmMain.resx index c173c6991..bb2f6f7f3 100644 --- a/win/C#/frmMain.resx +++ b/win/C#/frmMain.resx @@ -121,7 +121,7 @@ <value>False</value>
</metadata>
<metadata name="notifyIconMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
- <value>17, 54</value>
+ <value>1106, 15</value>
</metadata>
<metadata name="DVD_Save.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>556, 15</value>
@@ -136,7 +136,7 @@ <value>True</value>
</metadata>
<metadata name="ChaptersMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
- <value>935, 54</value>
+ <value>578, 54</value>
</metadata>
<data name="data_chpt.ToolTip" xml:space="preserve">
<value>Here you can name each chapter that the encoded video will contain.
@@ -173,6 +173,9 @@ The Following options are not 100% accurate: - Encode video between a start and end time, measured in seconds
- Encode video between a start and end frame.</value>
</data>
+ <metadata name="presets_menu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>1354, 15</value>
+ </metadata>
<metadata name="DVD_Open.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>232, 15</value>
</metadata>
@@ -186,7 +189,7 @@ The Following options are not 100% accurate: <value>106, 15</value>
</metadata>
<metadata name="AudioMenuRowHeightHack.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
- <value>392, 54</value>
+ <value>17, 54</value>
</metadata>
<data name="label34.Text" xml:space="preserve">
<value>Here you can alter the query generated by this program. This feature is for one job overriding of the automatic query generation.
@@ -194,9 +197,6 @@ Don't forget to re-generate this query if you change any GUI options. Note that this will also override the "Add to Queue" query as well.
Clear the text box below to return to the internal query generation.</value>
</data>
- <metadata name="presets_menu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
- <value>265, 54</value>
- </metadata>
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>767, 15</value>
</metadata>
@@ -584,10 +584,10 @@ Clear the text box below to return to the internal query generation.</value> </value>
</data>
<metadata name="StatusStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
- <value>155, 54</value>
+ <value>1244, 15</value>
</metadata>
<metadata name="hbproc.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
- <value>595, 54</value>
+ <value>220, 54</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>98</value>
@@ -975,9 +975,9 @@ Clear the text box below to return to the internal query generation.</value> <value>664, 15</value>
</metadata>
<metadata name="openPreset.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
- <value>680, 54</value>
+ <value>310, 54</value>
</metadata>
<metadata name="File_ChapterImport.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
- <value>787, 54</value>
+ <value>423, 54</value>
</metadata>
</root>
\ No newline at end of file |