/*
 * This file is part of Mapyrus, software for plotting maps.
 * Copyright (C) 2003 - 2013 Simon Chenery.
 *
 * Mapyrus is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Mapyrus is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with Mapyrus; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */

package org.mapyrus.gui;

/**
 * Interface for handling events from GUI.
 */
public interface MapyrusEventListener
{
	/*
	 * All possible events from GUI.
	 */
	public enum Action
	{
		EXIT,
		EXPORT_PNG,
		EXPORT_PDF,
		COPY,
		NEW_TAB_ACTION,
		OPEN_FILE,
		CLOSE_TAB,
		SAVE_TAB,
		ONLINE_HELP,
		ABOUT,
		RUN,
		STOP
	};

	/**
	 * Handle an event from GUI.
	 * @param actionCode event code generated by GUI.
	 */
	public void actionPerformed(Action actionCode);
}
