# -*- coding: utf-8 -*- 

###########################################################################
## Python code generated with wxFormBuilder (version Sep 12 2010)
## http://www.wxformbuilder.org/
##
## PLEASE DO "NOT" EDIT THIS FILE!
###########################################################################

import wx

###########################################################################
## Class MainFrameBase
###########################################################################

class MainFrameBase ( wx.Frame ):
	
	def __init__( self, parent ):
		wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = u"Video Converter", pos = wx.DefaultPosition, size = wx.Size( 1200,850 ), style = wx.DEFAULT_FRAME_STYLE|wx.TAB_TRAVERSAL )
		
		self.SetSizeHintsSz( wx.DefaultSize, wx.DefaultSize )
		
		self.m_statusBar = self.CreateStatusBar( 1, wx.ST_SIZEGRIP, wx.ID_ANY )
		self.m_menubar = wx.MenuBar( 0 )
		self.m_mnFile = wx.Menu()
		self.m_mniOpenInput = wx.MenuItem( self.m_mnFile, wx.ID_ANY, u"Open &Input Folder..."+ u"\t" + u"CTRL+I", wx.EmptyString, wx.ITEM_NORMAL )
		self.m_mnFile.AppendItem( self.m_mniOpenInput )
		
		self.m_mniOpenDestination = wx.MenuItem( self.m_mnFile, wx.ID_ANY, u"Open &Destination Folder..."+ u"\t" + u"CTRL+D", wx.EmptyString, wx.ITEM_NORMAL )
		self.m_mnFile.AppendItem( self.m_mniOpenDestination )
		
		self.m_mniPreferences = wx.MenuItem( self.m_mnFile, wx.ID_PREFERENCES, u"P&references"+ u"\t" + u"CTRL+,", wx.EmptyString, wx.ITEM_NORMAL )
		self.m_mnFile.AppendItem( self.m_mniPreferences )
		
		self.m_mnFile.AppendSeparator()
		
		self.m_mniExit = wx.MenuItem( self.m_mnFile, wx.ID_EXIT, u"&Quit", wx.EmptyString, wx.ITEM_NORMAL )
		self.m_mnFile.AppendItem( self.m_mniExit )
		
		self.m_menubar.Append( self.m_mnFile, u"&File" ) 
		
		self.m_mnHelp = wx.Menu()
		self.m_mniAbout = wx.MenuItem( self.m_mnHelp, wx.ID_ABOUT, u"&About", wx.EmptyString, wx.ITEM_NORMAL )
		self.m_mnHelp.AppendItem( self.m_mniAbout )
		
		self.m_menubar.Append( self.m_mnHelp, u"&Help" ) 
		
		self.SetMenuBar( self.m_menubar )
		
		bSizer5 = wx.BoxSizer( wx.HORIZONTAL )
		
		bSizer2 = wx.BoxSizer( wx.VERTICAL )
		
		self.m_panel = wx.Panel( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )
		bSizer3 = wx.BoxSizer( wx.VERTICAL )
		
		self.m_staticText2 = wx.StaticText( self.m_panel, wx.ID_ANY, u"Input Folder", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText2.Wrap( -1 )
		bSizer3.Add( self.m_staticText2, 0, wx.ALL, 5 )
		
		bSizer51 = wx.BoxSizer( wx.HORIZONTAL )
		
		self.m_tbxInputFolder = wx.TextCtrl( self.m_panel, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer51.Add( self.m_tbxInputFolder, 1, wx.ALL|wx.EXPAND, 5 )
		
		self.m_btnBrowseInput = wx.Button( self.m_panel, wx.ID_ANY, u"...", wx.DefaultPosition, wx.Size( 30,-1 ), 0 )
		bSizer51.Add( self.m_btnBrowseInput, 0, wx.ALL, 5 )
		
		bSizer3.Add( bSizer51, 0, wx.EXPAND, 5 )
		
		self.m_staticline1 = wx.StaticLine( self.m_panel, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LI_HORIZONTAL )
		bSizer3.Add( self.m_staticline1, 0, wx.EXPAND |wx.ALL, 5 )
		
		self.m_staticText4 = wx.StaticText( self.m_panel, wx.ID_ANY, u"Video List", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText4.Wrap( -1 )
		bSizer3.Add( self.m_staticText4, 0, wx.ALL, 5 )
		
		m_lstVideosChoices = []
		self.m_lstVideos = wx.ListBox( self.m_panel, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, m_lstVideosChoices, wx.LB_EXTENDED )
		self.m_lstVideos.SetFont( wx.Font( 10, 70, 90, 90, False, wx.EmptyString ) )
		
		bSizer3.Add( self.m_lstVideos, 1, wx.ALL|wx.EXPAND, 5 )
		
		self.m_staticText41 = wx.StaticText( self.m_panel, wx.ID_ANY, u"Video Encode Options", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText41.Wrap( -1 )
		bSizer3.Add( self.m_staticText41, 0, wx.ALL, 5 )
		
		m_choEncodeOptionsChoices = []
		self.m_choEncodeOptions = wx.Choice( self.m_panel, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, m_choEncodeOptionsChoices, 0 )
		self.m_choEncodeOptions.SetSelection( 0 )
		bSizer3.Add( self.m_choEncodeOptions, 0, wx.ALL|wx.EXPAND, 5 )
		
		self.m_staticText5 = wx.StaticText( self.m_panel, wx.ID_ANY, u"Destination Root Folder (date folders will be added below...)", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText5.Wrap( -1 )
		bSizer3.Add( self.m_staticText5, 0, wx.ALL, 5 )
		
		bSizer4 = wx.BoxSizer( wx.HORIZONTAL )
		
		self.m_tbxDestFolder = wx.TextCtrl( self.m_panel, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer4.Add( self.m_tbxDestFolder, 1, wx.ALL, 5 )
		
		self.m_btnBrowseDest = wx.Button( self.m_panel, wx.ID_ANY, u"...", wx.DefaultPosition, wx.Size( 30,-1 ), 0 )
		bSizer4.Add( self.m_btnBrowseDest, 0, wx.ALL, 5 )
		
		bSizer3.Add( bSizer4, 0, wx.EXPAND, 5 )
		
		bSizer6 = wx.BoxSizer( wx.HORIZONTAL )
		
		self.m_btnProcess = wx.Button( self.m_panel, wx.ID_ANY, u"Process Selected Video(s)", wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer6.Add( self.m_btnProcess, 0, wx.ALL, 5 )
		
		self.m_chkWriteFileOnly = wx.CheckBox( self.m_panel, wx.ID_ANY, u"Write Encode Batch File Only", wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer6.Add( self.m_chkWriteFileOnly, 0, wx.ALL, 5 )
		
		bSizer3.Add( bSizer6, 0, wx.EXPAND, 5 )
		
		self.m_panel.SetSizer( bSizer3 )
		self.m_panel.Layout()
		bSizer3.Fit( self.m_panel )
		bSizer2.Add( self.m_panel, 1, wx.EXPAND |wx.ALL, 0 )
		
		bSizer5.Add( bSizer2, 1, wx.EXPAND, 5 )
		
		self.m_tbxOutput = wx.TextCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, wx.TE_MULTILINE )
		bSizer5.Add( self.m_tbxOutput, 1, wx.ALL|wx.EXPAND, 5 )
		
		self.SetSizer( bSizer5 )
		self.Layout()
		
		# Connect Events
		self.Bind( wx.EVT_MENU, self.m_mniOpenInputFolderClick, id = self.m_mniOpenInput.GetId() )
		self.Bind( wx.EVT_MENU, self.m_mniOpenDestinationFolderClick, id = self.m_mniOpenDestination.GetId() )
		self.Bind( wx.EVT_MENU, self.m_mniPreferencesClick, id = self.m_mniPreferences.GetId() )
		self.Bind( wx.EVT_MENU, self.m_mniExitClick, id = self.m_mniExit.GetId() )
		self.Bind( wx.EVT_MENU, self.m_mniAboutClick, id = self.m_mniAbout.GetId() )
		self.m_tbxInputFolder.Bind( wx.EVT_KILL_FOCUS, self.m_txtInputFolderBlur )
		self.m_btnBrowseInput.Bind( wx.EVT_BUTTON, self.m_btnBrowseInputClick )
		self.m_btnBrowseDest.Bind( wx.EVT_BUTTON, self.m_btnBrowseDestClick )
		self.m_btnProcess.Bind( wx.EVT_BUTTON, self.m_btnProcessClick )
	
	def __del__( self ):
		pass
	
	
	# Virtual event handlers, overide them in your derived class
	def m_mniOpenInputFolderClick( self, event ):
		event.Skip()
	
	def m_mniOpenDestinationFolderClick( self, event ):
		event.Skip()
	
	def m_mniPreferencesClick( self, event ):
		event.Skip()
	
	def m_mniExitClick( self, event ):
		event.Skip()
	
	def m_mniAboutClick( self, event ):
		event.Skip()
	
	def m_txtInputFolderBlur( self, event ):
		event.Skip()
	
	def m_btnBrowseInputClick( self, event ):
		event.Skip()
	
	def m_btnBrowseDestClick( self, event ):
		event.Skip()
	
	def m_btnProcessClick( self, event ):
		event.Skip()
	

