summaryrefslogtreecommitdiffstats
path: root/win/C#/frmMain.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2008-09-14 16:54:19 +0000
committersr55 <[email protected]>2008-09-14 16:54:19 +0000
commitb4e47744bb7cbcfcb3b14cc9b2fbffd1919861d7 (patch)
tree66998e2619aac4d49b2be0cae881faa49f36fd9c /win/C#/frmMain.cs
parente407a68f9e6c11f107760a36134aa8dff51a2fcb (diff)
WinGui:
- Delete key can now be used to delete presets & queue items. - Queued items now have job id's. this isn't used for anything yet, however will be useful for editing current queue items. - Moved batch script code to Queue.cs git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1696 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r--win/C#/frmMain.cs17
1 files changed, 15 insertions, 2 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs
index 5d8886746..3664b319e 100644
--- a/win/C#/frmMain.cs
+++ b/win/C#/frmMain.cs
@@ -173,8 +173,7 @@ namespace Handbrake
{
if (hb_common_func.check_queue_recovery() == true)
{
- DialogResult result;
- result = MessageBox.Show("HandBrake has detected unfinished items on the queue from the last time the application was launched. Would you like to recover these?", "Queue Recovery Possible", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
+ DialogResult result = MessageBox.Show("HandBrake has detected unfinished items on the queue from the last time the application was launched. Would you like to recover these?", "Queue Recovery Possible", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (result == DialogResult.Yes)
encodeQueue.recoverQueue("hb_queue_recovery.dat"); // Start Recovery
@@ -1395,6 +1394,20 @@ namespace Handbrake
x264PanelFunctions.X264_StandardizeOptString(this);
x264PanelFunctions.X264_SetCurrentSettingsInPanel(this);
}
+ private void treeView_presets_deleteKey(object sender, KeyEventArgs e)
+ {
+ if (e.KeyCode == Keys.Delete)
+ {
+ DialogResult result = MessageBox.Show("Are you sure you wish to delete the selected preset?", "Preset", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
+ if (result == DialogResult.Yes)
+ {
+ if (treeView_presets.SelectedNode != null)
+ presetHandler.remove(treeView_presets.SelectedNode.Text);
+ // Now reload the preset panel
+ loadPresetPanel();
+ }
+ }
+ }
#endregion