diff options
author | sr55 <[email protected]> | 2007-07-02 16:31:09 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2007-07-02 16:31:09 +0000 |
commit | 7fec4627b8728cbb034de30c8d9f8634b6894a0c (patch) | |
tree | df8e36ed53f8e78fc862ad53b313d0db95c14b3b | |
parent | ae06dd90defa4838913845e9af21c959af4b4c74 (diff) |
WinGui:
- Changed shell() to System.Diagnostics.Process.Start()
Appears to work a bit better than shell()
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@645 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | win/Handbrake.suo | bin | 29184 -> 29184 bytes | |||
-rw-r--r-- | win/Handbrake/frmMain.Designer.vb | 27 | ||||
-rw-r--r-- | win/Handbrake/frmMain.resx | 9 | ||||
-rw-r--r-- | win/Handbrake/frmMain.vb | 46 |
4 files changed, 54 insertions, 28 deletions
diff --git a/win/Handbrake.suo b/win/Handbrake.suo Binary files differindex 33d942236..eef2f1fad 100644 --- a/win/Handbrake.suo +++ b/win/Handbrake.suo diff --git a/win/Handbrake/frmMain.Designer.vb b/win/Handbrake/frmMain.Designer.vb index 7ef6d2f5f..2fb8178cd 100644 --- a/win/Handbrake/frmMain.Designer.vb +++ b/win/Handbrake/frmMain.Designer.vb @@ -19,6 +19,7 @@ Partial Class frmMain 'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
+ Me.components = New System.ComponentModel.Container
Dim Label38 As System.Windows.Forms.Label
Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(frmMain))
Me.frmMainMenu = New System.Windows.Forms.MenuStrip
@@ -30,6 +31,7 @@ Partial Class frmMain Me.toolStripSeparator2 = New System.Windows.Forms.ToolStripSeparator
Me.mnu_exit = New System.Windows.Forms.ToolStripMenuItem
Me.ToolsToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem
+ Me.mnu_encode = New System.Windows.Forms.ToolStripMenuItem
Me.mnu_viewDVDdata = New System.Windows.Forms.ToolStripMenuItem
Me.ToolStripSeparator5 = New System.Windows.Forms.ToolStripSeparator
Me.mnu_options = New System.Windows.Forms.ToolStripMenuItem
@@ -229,7 +231,7 @@ Partial Class frmMain Me.DVD_Save = New System.Windows.Forms.SaveFileDialog
Me.File_Save = New System.Windows.Forms.SaveFileDialog
Me.lbl_update = New System.Windows.Forms.Label
- Me.mnu_encode = New System.Windows.Forms.ToolStripMenuItem
+ Me.ToolTip = New System.Windows.Forms.ToolTip(Me.components)
Label38 = New System.Windows.Forms.Label
Me.frmMainMenu.SuspendLayout()
Me.GroupBox4.SuspendLayout()
@@ -318,6 +320,12 @@ Partial Class frmMain Me.ToolsToolStripMenuItem.Size = New System.Drawing.Size(44, 20)
Me.ToolsToolStripMenuItem.Text = "&Tools"
'
+ 'mnu_encode
+ '
+ Me.mnu_encode.Name = "mnu_encode"
+ Me.mnu_encode.Size = New System.Drawing.Size(155, 22)
+ Me.mnu_encode.Text = "Encode Queue"
+ '
'mnu_viewDVDdata
'
Me.mnu_viewDVDdata.Name = "mnu_viewDVDdata"
@@ -587,6 +595,7 @@ Partial Class frmMain Me.text_destination.Name = "text_destination"
Me.text_destination.Size = New System.Drawing.Size(262, 21)
Me.text_destination.TabIndex = 4
+ Me.ToolTip.SetToolTip(Me.text_destination, "Where you wish to save your output file.")
'
'drp_audioCodec
'
@@ -654,6 +663,7 @@ Partial Class frmMain Me.drop_chapterFinish.Size = New System.Drawing.Size(69, 21)
Me.drop_chapterFinish.TabIndex = 41
Me.drop_chapterFinish.Text = "Auto"
+ Me.ToolTip.SetToolTip(Me.drop_chapterFinish, "Encode chapters to this number")
'
'drop_chapterStart
'
@@ -665,6 +675,7 @@ Partial Class frmMain Me.drop_chapterStart.Size = New System.Drawing.Size(69, 21)
Me.drop_chapterStart.TabIndex = 40
Me.drop_chapterStart.Text = "Auto"
+ Me.ToolTip.SetToolTip(Me.drop_chapterStart, "Encode chatpers from this number.")
'
'drp_dvdtitle
'
@@ -677,6 +688,7 @@ Partial Class frmMain Me.drp_dvdtitle.Size = New System.Drawing.Size(119, 21)
Me.drp_dvdtitle.TabIndex = 39
Me.drp_dvdtitle.Text = "Automatic"
+ Me.ToolTip.SetToolTip(Me.drp_dvdtitle, "The title number you wish to encode.")
'
'RadioDVD
'
@@ -735,6 +747,7 @@ Partial Class frmMain Me.text_source.Size = New System.Drawing.Size(253, 21)
Me.text_source.TabIndex = 1
Me.text_source.Text = "Click ""Browse"" to continue"
+ Me.ToolTip.SetToolTip(Me.text_source, "The input source location.")
'
'Label9
'
@@ -775,7 +788,7 @@ Partial Class frmMain Me.btn_encode.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.btn_encode.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.btn_encode.ForeColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(128, Byte), Integer), CType(CType(0, Byte), Integer))
- Me.btn_encode.Location = New System.Drawing.Point(534, 590)
+ Me.btn_encode.Location = New System.Drawing.Point(538, 590)
Me.btn_encode.Name = "btn_encode"
Me.btn_encode.Size = New System.Drawing.Size(124, 22)
Me.btn_encode.TabIndex = 19
@@ -790,7 +803,7 @@ Partial Class frmMain Me.btn_queue.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.btn_queue.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.btn_queue.ForeColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(128, Byte), Integer), CType(CType(0, Byte), Integer))
- Me.btn_queue.Location = New System.Drawing.Point(403, 590)
+ Me.btn_queue.Location = New System.Drawing.Point(407, 590)
Me.btn_queue.Name = "btn_queue"
Me.btn_queue.Size = New System.Drawing.Size(124, 22)
Me.btn_queue.TabIndex = 412
@@ -1394,6 +1407,7 @@ Partial Class frmMain Me.drp_subtitle.Size = New System.Drawing.Size(213, 21)
Me.drp_subtitle.TabIndex = 42
Me.drp_subtitle.Text = "None"
+ Me.ToolTip.SetToolTip(Me.drp_subtitle, "Select the subtitle language you require from this dropdown.")
'
'Label19
'
@@ -2342,12 +2356,6 @@ Partial Class frmMain Me.lbl_update.Text = "- A New Version is available!"
Me.lbl_update.Visible = False
'
- 'mnu_encode
- '
- Me.mnu_encode.Name = "mnu_encode"
- Me.mnu_encode.Size = New System.Drawing.Size(155, 22)
- Me.mnu_encode.Text = "Encode Queue"
- '
'frmMain
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
@@ -2600,5 +2608,6 @@ Partial Class frmMain Friend WithEvents Label37 As System.Windows.Forms.Label
Friend WithEvents Label41 As System.Windows.Forms.Label
Friend WithEvents mnu_encode As System.Windows.Forms.ToolStripMenuItem
+ Friend WithEvents ToolTip As System.Windows.Forms.ToolTip
End Class
diff --git a/win/Handbrake/frmMain.resx b/win/Handbrake/frmMain.resx index 59399005e..725344506 100644 --- a/win/Handbrake/frmMain.resx +++ b/win/Handbrake/frmMain.resx @@ -157,6 +157,15 @@ Cv71r/4OTrQ4xWMwWlcAAAAASUVORK5CYII=
</value>
</data>
+ <metadata name="ToolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>639, 17</value>
+ </metadata>
+ <metadata name="ToolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>639, 17</value>
+ </metadata>
+ <metadata name="ToolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>639, 17</value>
+ </metadata>
<metadata name="File_Open.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>136, 17</value>
</metadata>
diff --git a/win/Handbrake/frmMain.vb b/win/Handbrake/frmMain.vb index 5b4ec26f2..534c7fce6 100644 --- a/win/Handbrake/frmMain.vb +++ b/win/Handbrake/frmMain.vb @@ -503,30 +503,37 @@ Public Class frmMain , "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning)
End If
- Try
- If (QueryEditorText.Text = "") Then
- query = GenerateTheQuery()
- Shell("""" + ApplicationPath + "\hbcli.exe""" + query)
+ Try
+ If (QueryEditorText.Text = "") Then
+ query = GenerateTheQuery()
+
+ Dim params As String = query
+ Dim proc As New System.Diagnostics.Process
+ proc = System.Diagnostics.Process.Start("""" + ApplicationPath + "\hbcli.exe""", params)
+
MessageBox.Show("The Handbrake encoder (CLI) will now start and should be encoding your video.", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Asterisk)
- 'Lets start the process monitor to keep an eye on things.
- hbcliMonitor = New ProcessMonitor()
- Dim t = New Thread(AddressOf hbcliMonitor.tmrProcCheck)
- t.Start()
- Else
- query = QueryEditorText.Text
- Shell("""" + ApplicationPath + "\hbcli.exe""" + query)
+ 'Lets start the process monitor to keep an eye on things.
+ hbcliMonitor = New ProcessMonitor()
+ Dim t = New Thread(AddressOf hbcliMonitor.tmrProcCheck)
+ t.Start()
+ Else
+ query = QueryEditorText.Text
+
+ Dim params As String = query
+ Dim proc As New System.Diagnostics.Process
+ proc = System.Diagnostics.Process.Start("""" + ApplicationPath + "\hbcli.exe""", params)
MessageBox.Show("The Handbrake encoder (CLI) will now start and should be encoding your video.", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Asterisk)
- 'Lets start the process monitor to keep an eye on things.
- hbcliMonitor = New ProcessMonitor()
- Dim t = New Thread(AddressOf hbcliMonitor.tmrProcCheck)
- t.Start()
- End If
- Catch ex As Exception
+ 'Lets start the process monitor to keep an eye on things.
+ hbcliMonitor = New ProcessMonitor()
+ Dim t = New Thread(AddressOf hbcliMonitor.tmrProcCheck)
+ t.Start()
+ End If
+ Catch ex As Exception
MessageBox.Show("Unable to launch the HandBrake encoder.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
- MessageBox.Show(ex.ToString) ' Debug
- End Try
+ MessageBox.Show(ex.ToString) ' Debug
+ End Try
End Sub
@@ -1269,4 +1276,5 @@ Public Class frmMain End Sub
'-----------------------------------------------
+
End Class
\ No newline at end of file |