/* Copyright 2001-2016, Stephen Fryatt (info@stevefryatt.org.uk)
 *
 * This file is part of Locate:
 *
 *   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.
 */

/**
 * Iconbar Menu
 */

menu(IconBarMenu, "Locate") {
	item("Info") {
		d_box(ProgInfo);
	}
	item("Help") {
		dotted;
	}
	item("Hotlist...") {
		/* Link to self to get submenu for on-the-fly creation. */
		submenu(icon_bar_menu) {
			warning;
		}
	}
	item("Choices...") {
		dotted;
	}
	item("Quit");
}


/**
 * Search Window Menu
 */

menu(SearchWindowMenu, "Locate") {
	item("Save search") {
		d_box(SaveAs) {
			warning;
		}
	}
	item("Add to hotlist...");
}


/**
 * Results Window Menu
 */

menu(ResultsWindowMenu, "Locate") {
	item("Display") {
		submenu(ResultsDisplayMenu);
	}
	item("Save") {
		submenu(save_menu) {
			always;
		}
		dotted;
	}
	item("Select all");
	item("Clear selection");
	item("Object info") {
		d_box(ObjectInfo) {
			warning;
		}
	}
	item("Open parent");
	item("Copy names") {
		dotted;
	}
	item("Modify search...");
	item("Add to hotlist...");
	item("Stop search");
}

menu(ResultsDisplayMenu, "Display") {
	item("Path only");
	item("Full info");
}

menu(save_menu, "Save") {
	item("Results") {
		d_box(SaveAs) {
			warning;
		}
	}
	item("Path names") {
		d_box(SaveAsSel) {
			warning;
		}
		dotted;
	}
	item("Search options") {
		d_box(SaveAs) {
			warning;
		}
	}
}


/**
 * Hotlist Window Menu
 */

menu(HotlistWindowMenu, "Hotlist") {
	item("Entry") {
		submenu(HotlistItemMenu);
	}
	item("Select all");
	item("Clear selection");
	item("Save hotlist") {
		d_box(SaveAsSel) {
			warning;
		}
	}
}

menu(HotlistItemMenu, "Entry") {
	item("Save search") {
		d_box(SaveAs) {
			warning;
		}
	}
	item("Default");
	item("Rename...");
	item("Delete");
}

/**
 * Search Dialogue PopUp Menus.
 */

menu(NameLogicMenu, "Name") {
	item("Is not important");
	item("Is equal to");
	item("Is not equal to");
/*
	item("Contains");
	item("Does not contain");
*/
}

menu(SizeLogicMenu, "Size") {
	item("Not important");
	item("Equal to");
	item("Not equal to");
	item("Greater than");
	item("Less than");
	item("Between");
	item("Not between");
}

menu(SizeUnitMenu, "Size") {
	item("Bytes");
	item("Kb");
	item("Mb");
}

menu(DateLogicMenu, "Date") {
	item("At any time");
	item("At");
	item("At any time but");
	item("After");
	item("Before");
	item("Between");
	item("Not between");
}

menu(AgeLogicMenu, "Age") {
	item("Any age");
	item("Exactly");
	item("Any age but");
	item("Less than");
	item("More than");
	item("Between");
	item("Not between");
}

menu(AgeUnitMenu, "Age") {
	item("Minutes");
	item("Hours");
	item("Days");
	item("Weeks");
	item("Months");
	item("Years");
}

menu (TypeLogicMenu, "Type") {
	item("Of any type");
	item("Of type");
	item("Not of type");
}

menu (ContentLogicMenu, "Content") {
	item("Are not important");
	item("Include");
	item("Do not include");
}


/**
 * Date Selector PopUp Menus
 */

menu (MonthMenu, "Month") {
	item("January");
	item("February");
	item("March");
	item("April");
	item("May");
	item("June");
	item("July");
	item("August");
	item("September");
	item("October");
	item("November");
	item("December");
}
