using System;
using Gtk;
using System.Reflection;
using themonospot_Base_Main;

namespace themonospot_Gui_Main 
{

	public class tms4CC
	{
	
		[Glade.Widget] Gtk.Dialog 		FourCCWindow;
		[Glade.Widget] Gtk.Entry		txtFourCCdesc;
		[Glade.Widget] Gtk.Entry		txtFourCCcode;
		[Glade.Widget] Gtk.Label		lblInfo;
		[Glade.Widget] Gtk.Label		lblCode;
		[Glade.Widget] Gtk.Label		lblDesc;
		
		
		public tms4CC(Gtk.Window w, DialogFlags df, ref string fCC_Code, ref string fCC_Desc, out int retValue)
		{
			Glade.XML rxml = new Glade.XML (null, "ChangeFourCCwin.glade", "FourCCWindow", null);
			rxml.Autoconnect (this);
			
			this.FourCCWindow.Icon = Gdk.Pixbuf.LoadFromResource("monoSPOT_16.png");			
			
			this.FourCCWindow.TransientFor = w;
			//this.infoWindow.Modal=true;
			//this.FourCCWindow.Title = "FourCC Change...";
			txtFourCCcode.Text = fCC_Code;
			txtFourCCdesc.Text = fCC_Desc;
			FourCCWindow.Title= clsLanguages.FCCTITLE;
			lblInfo.Markup= clsLanguages.FCCINFO;
			lblCode.Markup=clsLanguages.FCCCODE;
			lblDesc.Markup=clsLanguages.FCCDESC;

			while (Gtk.Application.EventsPending ())
        		Gtk.Application.RunIteration ();

			retValue = FourCCWindow.Run();

			fCC_Code = txtFourCCcode.Text;
			fCC_Desc = txtFourCCdesc.Text;
			
			FourCCWindow.Destroy();		
			return;		
		}
	
	


	}
	
}
