summaryrefslogtreecommitdiffstats
path: root/win/C#/frmMain.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-05-18 19:58:43 +0000
committersr55 <[email protected]>2010-05-18 19:58:43 +0000
commitc80ba825d496edc98e2c4129896598e96b56a0d9 (patch)
tree13c7ffe5b4c254383bb60bc4f28909fa8e25e144 /win/C#/frmMain.cs
parent0235181e86018ab9938602ebf24e45e4244ba3a2 (diff)
WinGui:
- Some more work done on the Plist Mac preset Export feature. Can now export a plist but not all key value pairs are populated. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3305 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r--win/C#/frmMain.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs
index 229c25516..61efc879c 100644
--- a/win/C#/frmMain.cs
+++ b/win/C#/frmMain.cs
@@ -437,6 +437,12 @@ namespace Handbrake
ImportPreset();
}
+ private void mnu_exportMacPreset_Click(object sender, EventArgs e)
+ {
+ ExportPreset();
+ }
+
+
private void btn_new_preset_Click(object sender, EventArgs e)
{
Form preset = new frmAddPreset(this, QueryGenerator.GenerateCliQuery(this, drop_mode.SelectedIndex, 0, null),
@@ -739,6 +745,21 @@ namespace Handbrake
}
}
+ private void ExportPreset()
+ {
+ MessageBox.Show("This feature has not been implimented yet.", "Not Implimented", MessageBoxButtons.OK, MessageBoxIcon.Warning);
+ return;
+
+ SaveFileDialog savefiledialog = new SaveFileDialog();
+ savefiledialog.Filter = "plist|*.plist";
+
+ if (savefiledialog.ShowDialog() == DialogResult.OK)
+ {
+ QueryParser parsed = QueryParser.Parse(QueryGenerator.GenerateCliQuery(this, drop_mode.SelectedIndex, 0, null));
+ PlistPresetHandler.Export(savefiledialog.FileName, parsed);
+ }
+ }
+
#endregion
#region ToolStrip