/*
  Cloned Xunzip
  Copyright (C) 1999 Tero Koskinen

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.

  This program 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 General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
*/

#include <stdio.h>
#include <config.h>

#include <gnome.h>

#include "callbacks.hh"
#include "app.hh"

#ifndef TK_MENU_HH
#define TK_MENU_HH

GnomeUIInfo filemenu[] = {
	GNOMEUIINFO_MENU_OPEN_ITEM(create_file_selection_callback,NULL),
	GNOMEUIINFO_SEPARATOR,
	GNOMEUIINFO_MENU_PREFERENCES_ITEM(preferences_callback,NULL),
	GNOMEUIINFO_SEPARATOR,
	GNOMEUIINFO_MENU_EXIT_ITEM(app_quit,NULL),
	GNOMEUIINFO_END
};

static GnomeUIInfo actionsmenu[] = {
	{GNOME_APP_UI_ITEM,
		      N_("_Uncompress..."),N_("Uncompress archive"),
		      (gpointer)uncompress_file_callback,NULL,NULL,
		      GNOME_APP_PIXMAP_STOCK,GNOME_STOCK_MENU_CONVERT,
		      'U',GDK_CONTROL_MASK,NULL},
	{GNOME_APP_UI_ITEM,
		      N_("_View..."),N_("View selected file from archive"),
		      (gpointer)view_callback,NULL,NULL,
		      GNOME_APP_PIXMAP_STOCK,GNOME_STOCK_MENU_INDEX,
		      'V',GDK_CONTROL_MASK,NULL},
	{GNOME_APP_UI_ITEM,
		      N_("_Test..."),N_("Test archive"),
		      (gpointer)test_archive_callback,NULL,NULL,
		      GNOME_APP_PIXMAP_STOCK,GNOME_STOCK_MENU_SEARCH,
		      'T',GDK_CONTROL_MASK,NULL},
	GNOMEUIINFO_END
};

static GnomeUIInfo helpmenu[] = {
	{GNOME_APP_UI_ITEM,
		      _("_About..."),NULL,
		      (gpointer)about_callback,NULL,NULL,
		      GNOME_APP_PIXMAP_STOCK,GNOME_STOCK_MENU_ABOUT,
		      0,(GdkModifierType)0,NULL},
	/*  GNOMEUIINFO_SEPARATOR,
	    GNOMEUIINFO_HELP("cxunzip"), */
	GNOMEUIINFO_END,
};

GnomeUIInfo mainmenu[] = {
	GNOMEUIINFO_SUBTREE(N_("_File"),filemenu),
	GNOMEUIINFO_SUBTREE(N_("_Actions"),actionsmenu),
#define HELP_MENU 2
	GNOMEUIINFO_SUBTREE(N_("_Help"),helpmenu),
	GNOMEUIINFO_END
};

#endif
