diff options
author | sr55 <[email protected]> | 2008-12-28 17:53:25 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2008-12-28 17:53:25 +0000 |
commit | 946e0938b2a07a8d065f71502cf0fa6cf77b2f1f (patch) | |
tree | 54ec4d0aef682cdd2d9b7315e42d26443ea809d2 /win/C#/frmMain.cs | |
parent | b67e367457cdb3aae4dedce90beeea6804b2aa32 (diff) |
WinGui:
- Right Click menu for the new audio tab.
- Made the list rows a tad thicker to make it easier to right click them.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2048 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r-- | win/C#/frmMain.cs | 49 |
1 files changed, 48 insertions, 1 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index faaa58d7b..aee2f2b5c 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -1198,6 +1198,7 @@ namespace Handbrake lv_audioList.Select();
}
}
+
private void btn_addAudioTrack_Click(object sender, EventArgs e)
{
// Create a new row for the Audio list based on the currently selected items in the dropdown.
@@ -1215,6 +1216,50 @@ namespace Handbrake }
private void btn_RemoveAudioTrack_Click(object sender, EventArgs e)
{
+ removeAudioTrack();
+ }
+ private void audioList_moveup_Click(object sender, EventArgs e)
+ {
+ if (lv_audioList.SelectedIndices.Count != 0)
+ {
+ ListViewItem item = lv_audioList.SelectedItems[0];
+ int index = item.Index;
+ index--;
+
+ if (lv_audioList.Items.Count > index && index >= 0)
+ {
+ lv_audioList.Items.Remove(item);
+ lv_audioList.Items.Insert(index, item);
+ item.Selected = true;
+ lv_audioList.Focus();
+ }
+ }
+ }
+ private void audioList_movedown_Click(object sender, EventArgs e)
+ {
+ if (lv_audioList.SelectedIndices.Count != 0)
+ {
+ ListViewItem item = lv_audioList.SelectedItems[0];
+ int index = item.Index;
+ index++;
+
+ if (index < lv_audioList.Items.Count)
+ {
+ lv_audioList.Items.Remove(item);
+ lv_audioList.Items.Insert(index, item);
+ item.Selected = true;
+ lv_audioList.Focus();
+ }
+ }
+
+ }
+
+ private void audioList_remove_Click(object sender, EventArgs e)
+ {
+ removeAudioTrack();
+ }
+ private void removeAudioTrack()
+ {
// Remove the Item and reselect the control if the following conditions are met.
if (lv_audioList.SelectedItems.Count != 0)
{
@@ -1235,6 +1280,7 @@ namespace Handbrake }
}
}
+
private void lv_audioList_SelectedIndexChanged(object sender, EventArgs e)
{
// Set the dropdown controls based on the selected item in the Audio List.
@@ -1252,6 +1298,7 @@ namespace Handbrake tb_drc.Value = drcCalculated;
}
}
+
private void drp_subtitle_SelectedIndexChanged(object sender, EventArgs e)
{
if (drp_subtitle.Text.Contains("None"))
@@ -1262,7 +1309,7 @@ namespace Handbrake else
check_forced.Enabled = true;
}
-
+
// Chapter Marker Tab
private void Check_ChapterMarkers_CheckedChanged(object sender, EventArgs e)
{
|