package org.fedorahosted.flies.webtrans.client;

import org.fedorahosted.flies.webtrans.client.ui.CaptionPanel;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.widgetideas.client.ProgressBar;

public class TransUnitInfoView extends CaptionPanel implements TransUnitInfoPresenter.Display {

	public TransUnitInfoView() {
		setTitle("Translation Unit Info");
		setBody(getStatusPanel());
	}

	public static Widget getStatusPanel() {
		VerticalPanel vpanel = new VerticalPanel();
		vpanel.setWidth("100%");
		vpanel.setHeight("100px");
		vpanel.setHorizontalAlignment(VerticalPanel.ALIGN_LEFT);
		vpanel.setVerticalAlignment(VerticalPanel.ALIGN_TOP);
				
		//ProgressBar bar = new ProgressBar(0.0, 2000.0,0.0);
		//bar.setProgress(1500.0);
		//bar.setTitle("Complete");
		vpanel.add(new Label("Translation Unit Info"));
		//vpanel.add(bar);
		return vpanel;
	}

	@Override
	public Widget asWidget() {
		return this;
	}

	@Override
	public void startProcessing() {
		// TODO Auto-generated method stub

	}

	@Override
	public void stopProcessing() {
		// TODO Auto-generated method stub

	}
}

@@ -101,24 +101,25 @@
 ptionPanel;%0A
+%0A
 import com.g
@@ -147,61 +147,164 @@
 .ui.
-Composite;%0Aimport com.google.gwt.user.client.ui.Label
+Button;%0Aimport com.google.gwt.user.client.ui.HorizontalPanel;%0Aimport com.google.gwt.user.client.ui.RadioButton;%0Aimport com.google.gwt.user.client.ui.TextBox
 ;%0Aim
@@ -401,62 +401,8 @@
 get;
-%0Aimport com.google.gwt.widgetideas.client.ProgressBar;
 %0A%0Apu
@@ -496,16 +496,201 @@
 play %7B%0A%0A
+%09private static TextBox filter1Label, filter2Label;%0A%09private static RadioButton filterAndTypeRadio, filterOrTypeRadio;%0A%09private static Button filterEnableButton, filterDisableButton;%0A%09%0A
 %09public 
@@ -1045,173 +1045,906 @@
 ;%0A%09%09
-%09%09%0A%09%09//ProgressBar bar = new ProgressBar(0.0, 2000.0,0.0);%0A%09%09//bar.setProgress(1500.0);%0A%09%09//bar.setTitle(%22Complete%22);%0A%09%09vpanel.add(new Label(%22Translation Unit Info%22)
+%0A%09%09filter1Label = new TextBox();%0A%09%09filter2Label = new TextBox();%0A%09%09%0A%09%09HorizontalPanel filterTypeRadioBar = new HorizontalPanel();%0A%09%09filterAndTypeRadio = new RadioButton(null);%0A%09%09filterAndTypeRadio.setText(%22And%22);%0A%09%09filterOrTypeRadio = new RadioButton(null);%0A%09%09filterOrTypeRadio.setText(%22Or%22);%0A%09%09filterTypeRadioBar.add(filterAndTypeRadio);%0A%09%09filterTypeRadioBar.add(filterOrTypeRadio);%0A%09%09%0A%09%09HorizontalPanel filterButtonBar = new HorizontalPanel();%0A%09%09filterEnableButton = new Button(%22Filter%22);%0A%09%09filterDisableButton = new Button(%22Reset%22);%0A%09%09filterButtonBar.add(filterEnableButton);%0A%09%09filterButtonBar.add(filterDisableButton);%0A%09%09%09%09%0A%09%09//ProgressBar bar = new ProgressBar(0.0, 2000.0,0.0);%0A%09%09//bar.setProgress(1500.0);%0A%09%09//bar.setTitle(%22Complete%22);%0A%09%09filterAndTypeRadio.setValue(true);%0A%09%09vpanel.add(filter1Label);%0A%09%09vpanel.add(filterTypeRadioBar);%0A%09%09vpanel.add(filter2Label);%0A%09%09vpanel.add(filterButtonBar
 );%0A%09

create ui of translation unit panel