package smart_gs.image_search.normal.swingui;

import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.List;
import smart_gs.image_search.logical.SearchResult;
import smart_gs.image_search.transcription_tool.swingui.TranscriptionToolFrame;
import sml_editor.logical.LineDirection;

public class TranscriptionToolNo1Action implements ActionListener {

	private List<SearchResult> results;
	private Image queryImage;
	private LineDirection lineDirection;

	public TranscriptionToolNo1Action(Image queryImage, List<SearchResult> results2, LineDirection lineDirection) {
		this.results = results2;
		this.queryImage = queryImage;
		this.lineDirection = lineDirection;
	}

	public TranscriptionToolNo1Action() {
		// TODO Auto-generated constructor stub
		//JOptionPane.showMessageDialog(null,"TODO: invoke rectangle mode for searcher, search and then transcription No1 tool is called","",JOptionPane.PLAIN_MESSAGE);

	}

	@Override
	public void actionPerformed(ActionEvent e) {
		//new TranscriptionToolNo1Frame(this.queryImage,this.results,this.lineDirection);
		//this.results.get(1).getSpread().getFirstIDAT().getSource().repla
		new TranscriptionToolFrame(this.queryImage,this.results,this.lineDirection);
	}

}
