VERSION 5.00
Begin VB.Form Form4 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Editor de filtros"
   ClientHeight    =   5160
   ClientLeft      =   150
   ClientTop       =   510
   ClientWidth     =   5265
   BeginProperty Font 
      Name            =   "Arial"
      Size            =   8.25
      Charset         =   0
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   Icon            =   "Form4.frx":0000
   LinkTopic       =   "Form4"
   MaxButton       =   0   'False
   ScaleHeight     =   5160
   ScaleWidth      =   5265
   StartUpPosition =   2  'CenterScreen
   Begin VB.Frame Frame3 
      Caption         =   "Espere..."
      Height          =   5055
      Left            =   5280
      TabIndex        =   7
      Top             =   0
      Visible         =   0   'False
      Width           =   5055
      Begin VB.TextBox Text2 
         Height          =   4215
         Left            =   120
         Locked          =   -1  'True
         MultiLine       =   -1  'True
         ScrollBars      =   2  'Vertical
         TabIndex        =   8
         Top             =   720
         Width           =   4815
      End
      Begin VB.PictureBox Picture2 
         BorderStyle     =   0  'None
         Height          =   375
         Left            =   2400
         ScaleHeight     =   375
         ScaleWidth      =   2535
         TabIndex        =   14
         Top             =   240
         Width           =   2535
         Begin VB.CommandButton Command3 
            Caption         =   "Detener / Atrás"
            Height          =   375
            Left            =   0
            TabIndex        =   15
            Top             =   0
            Width           =   2535
         End
      End
   End
   Begin VB.Frame Frame2 
      Caption         =   "Probar configuración"
      Height          =   3015
      Left            =   120
      TabIndex        =   5
      Top             =   2040
      Width           =   5055
      Begin VB.PictureBox Picture3 
         BorderStyle     =   0  'None
         Height          =   2655
         Left            =   120
         ScaleHeight     =   2655
         ScaleWidth      =   4815
         TabIndex        =   9
         Top             =   240
         Width           =   4815
         Begin VB.ListBox List1 
            Height          =   1020
            IntegralHeight  =   0   'False
            Left            =   0
            Style           =   1  'Checkbox
            TabIndex        =   20
            Top             =   600
            Width           =   4815
         End
         Begin VB.CheckBox Check2 
            Caption         =   "Solo ejecutar el convertidor (no abre el reproductor)"
            Height          =   255
            Left            =   0
            TabIndex        =   18
            Top             =   1800
            Width           =   4695
         End
         Begin VB.CheckBox Check3 
            Caption         =   "Silenciar audio"
            Height          =   210
            Left            =   0
            TabIndex        =   17
            Top             =   2160
            Width           =   3135
         End
         Begin VB.CommandButton Command2 
            Caption         =   "Probar"
            Height          =   375
            Left            =   3600
            TabIndex        =   10
            Top             =   2280
            Width           =   1215
         End
         Begin LibreAVC.IconoCtrl IconoCtrl1 
            Height          =   240
            Left            =   4440
            TabIndex        =   16
            Top             =   120
            Width           =   240
            _ExtentX        =   423
            _ExtentY        =   423
            Picture         =   "Form4.frx":058A
         End
         Begin VB.CommandButton Command1 
            Height          =   495
            Left            =   4320
            TabIndex        =   11
            Top             =   0
            Width           =   495
         End
         Begin VB.Label Label3 
            Caption         =   "Usar el/los archivos:"
            Height          =   255
            Left            =   120
            TabIndex        =   19
            Top             =   120
            Width           =   4095
         End
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "Configuración del filtro"
      Height          =   1935
      Left            =   120
      TabIndex        =   0
      Top             =   0
      Width           =   5055
      Begin VB.PictureBox Picture1 
         BorderStyle     =   0  'None
         Height          =   375
         Left            =   120
         ScaleHeight     =   375
         ScaleWidth      =   4815
         TabIndex        =   6
         Top             =   1440
         Width           =   4815
         Begin VB.PictureBox Picture4 
            BorderStyle     =   0  'None
            Height          =   375
            Left            =   0
            ScaleHeight     =   375
            ScaleWidth      =   4815
            TabIndex        =   12
            Top             =   0
            Width           =   4815
            Begin VB.CheckBox Check1 
               Caption         =   "Requiere varios archivos de entrada"
               Height          =   495
               Left            =   0
               TabIndex        =   13
               Top             =   0
               Width           =   4815
            End
         End
      End
      Begin VB.TextBox Text1 
         Height          =   315
         Left            =   120
         TabIndex        =   4
         Top             =   1080
         Width           =   4815
      End
      Begin VB.ComboBox Combo1 
         Height          =   330
         ItemData        =   "Form4.frx":08DC
         Left            =   120
         List            =   "Form4.frx":08E9
         Style           =   2  'Dropdown List
         TabIndex        =   2
         Top             =   480
         Width           =   2535
      End
      Begin VB.Label Label2 
         Caption         =   "Parámetros:"
         Height          =   255
         Left            =   120
         TabIndex        =   3
         Top             =   840
         Width           =   4815
      End
      Begin VB.Label Label1 
         Caption         =   "Tipo:"
         Height          =   255
         Left            =   120
         TabIndex        =   1
         Top             =   240
         Width           =   4815
      End
   End
   Begin VB.Menu Menu_File 
      Caption         =   "Archivo"
      Begin VB.Menu File_Open 
         Caption         =   "Abrir"
      End
      Begin VB.Menu File_Save 
         Caption         =   "Guardar"
      End
      Begin VB.Menu File_SaveAs 
         Caption         =   "Guardar como"
      End
      Begin VB.Menu File_UndoChanges 
         Caption         =   "Descartar cambios"
      End
      Begin VB.Menu File_Close 
         Caption         =   "Cerrar"
      End
      Begin VB.Menu File_Exit 
         Caption         =   "Salir"
      End
   End
   Begin VB.Menu Menu_Help 
      Caption         =   "Ayuda"
      Begin VB.Menu Help_ffmpeg 
         Caption         =   "Ayuda de ffmpeg"
      End
      Begin VB.Menu Help_Doc 
         Caption         =   "Ayuda de este programa"
      End
   End
End
Attribute VB_Name = "Form4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Check1_Click()
Call FilterEditor.FERefreshBuffer
End Sub

Private Sub Combo1_Click()
Call FilterEditor.FERefreshBuffer
End Sub

Private Sub Command1_Click()
Call FilterEditor.FEAgregarRutasDePrueba
End Sub

Private Sub Command2_Click()
Call FilterEditor.ProbarFiltro
End Sub

Private Sub Command3_Click()
Dim TagB As String
If FilterEditor.EnProceso = 1 Then
    If Check2.Value = 0 Then
        If ffmpeg.TerminarFFPlay = False Then Lang.FilterEditMsgStopProc
    Else
        Call CaptureConsole.StopProcess
    End If
Else
    Me.Frame3.Visible = False
    TagB = Me.Frame3.Tag
    Me.Frame3.Tag = Me.Frame3.Caption
    Me.Frame3.Caption = TagB
    Me.Menu_File.Enabled = True
    Me.Menu_Help.Enabled = True
End If
End Sub

Private Sub File_Close_Click()
Call FilterEditor.FECerrarArchivo
End Sub

Private Sub File_Exit_Click()
Call FilterEditor.FESalir(True)
End Sub

Private Sub File_Open_Click()
Call FilterEditor.FEAbrirArchivo
End Sub

Private Sub File_Save_Click()
Call FilterEditor.FEGuardarArchivo(0)
End Sub

Private Sub File_SaveAs_Click()
Call FilterEditor.FEGuardarArchivo(1)
End Sub

Private Sub File_UndoChanges_Click()
Call FilterEditor.FEDescartarCambios
End Sub

Private Sub Form_Load()
Call Lang.Form4Captions
Me.Frame3.Left = Me.Frame1.Left
Me.Frame3.Top = Me.Frame1.Top
Combo1.ListIndex = 0
Me.Menu_Help.Caption = Form1.Menu_Help.Caption
Me.Help_ffmpeg.Caption = Form1.Help_ffhelp.Caption
Me.Help_Doc.Caption = Form1.Help_ProgramHelp.Caption
End Sub

Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
If FilterEditor.EnProceso = 1 Then
Lang.MsgStopProcessAntesSalir
Cancel = 1
Exit Sub
End If
If Me.Frame3.Visible = True Then
Me.Frame3.Visible = False
TagB = Me.Frame3.Tag
Me.Frame3.Tag = Me.Frame3.Caption
Me.Frame3.Caption = TagB
Me.Menu_File.Enabled = True
Me.Menu_Help.Enabled = True
Cancel = 1
Exit Sub
End If
If FilterEditor.FESalir(False) = False Then Cancel = 1
End Sub

Private Sub Form_Unload(Cancel As Integer)
Set Form4 = Nothing
End Sub

Private Sub Help_Doc_Click()
Call Aplicacion.VerAyudaDelPrograma
End Sub

Private Sub Help_ffmpeg_Click()
Dim Comandos As String
If ffmpeg.ComprobarExistenciaFFmpeg = False Then Exit Sub
Comandos = Chr(34) & ffmpeg.ffmpegPath & Chr(34) & " -filters"
Call IntDocView.IniciarDocVisor(Comandos, Form4)
End Sub

Private Sub Text1_Change()
Call FilterEditor.FERefreshBuffer
End Sub
