#!/usr/sbin/install-menu
#
# Generates ion menus for all registered applications.

# The version of the menu package that can process this.
compat="menu-1"

#include the local preferences.
!include menu.h

# Filename of the menu.conf file we will generate.
genmenu="menu.conf"

# Where the system wide generated file is placed.
rootprefix="/etc/X11/ion-devel/"

# Where the user generated file is placed.
userprefix="/.ion-devel/"

# In what order we output the menus.
treewalk="(m)c"

rootsection="/Mandrake"

# Title of the top level menu that is made.
# DO NOT CHANGE THIS LINE !!!!
mainmenutitle="ION-METADOME"

function ltitle()=translate(lang(),title())

supported
    x11= "  item \"" esc(ltitle(), "()") "\", \"" esc($command, "()") "\"\n"
    wm=	 "  item \"" esc(ltitle(), "()") "\", \"" esc($command, "()") "\"\n"
    text="  item \"" esc(ltitle(), "()") "\", \"rxvt -geometry 86x38+0+0 -T \\\"" esc(ltitle(), "()") "\\\" -e " esc($command, "()") "\"\n"
endsupported

# Some text to go at the top of the autogenerated file.
preoutput="# Automatically generated file. Do not edit.\n\n \
layout          \"vertical\"\n \
position        \"down\",\"left\"\n \
align           \"center\"\n \
frame_relative  TRUE\n \
highlight_mouse TRUE\n\n"

# How to start a new menu in the conf file.
startmenu="submenu \"" esc(ltitle(),"()") "\"\n"

# How to add a submenu to a menu.
# The submenu is only added if the submenu actually contains menu entries.
submenutitle="item \"" esc(ltitle(),"()") "\", \"Submenu\"\n"

# Ion doesn't need anything special at the end of a menu.
endmenu="\n"

postoutput=""
