/* Copyright 2016, Stephen Fryatt
 *
 * This file is part of PS2Paper:
 *
 *   http://www.stevefryatt.org.uk/software/
 *
 * Licensed under the EUPL, Version 1.1 only (the "Licence");
 * You may not use this work except in compliance with the
 * Licence.
 *
 * You may obtain a copy of the Licence at:
 *
 *   http://joinup.ec.europa.eu/software/page/eupl
 *
 * Unless required by applicable law or agreed to in
 * writing, software distributed under the Licence is
 * distributed on an "AS IS" basis, WITHOUT WARRANTIES
 * OR CONDITIONS OF ANY KIND, either express or implied.
 *
 * See the Licence for the specific language governing
 * permissions and limitations under the Licence.
 */


/**
 * Icon bar menu.
 */

menu(IconBarMenu, "PS2 Paper")
{
	item("Info") {
		d_box(ProgInfo);
	}
	item("Help");
	item("Quit");
}


/**
 * List Window menu.
 */

menu(ListWindowMenu, "PS2 Paper")
{
	item("Selection") {
		dotted;
		indirected(150);
		submenu(ListWindowSelectionMenu) {
			always;
		}
	}
	item("Select all");
	item("Clear selection") {
		dotted;
	}
	item("Dimension units") {
		submenu(ListWindowDimensionMenu);
	}
	item("Refresh");
}

menu(ListWindowSelectionMenu, "Selection")
{
	item("Write size");
	item("Run snippet");
}

menu(ListWindowDimensionMenu, "Dimension units")
{
	item("Millimeters");
	item("Inches");
	item("Points");
}
