/**********************************************************************
 
	Copyright (C) 2003-2004
	Hirohisa MORI <joshua@nichibun.ac.jp>
	Tomoki SEKIYAMA <sekiyama@yahoo.co.jp>
 
	This program is free software; you can redistribute it 
	and/or modify it under the terms of the GLOBALBASE 
	Library General Public License (G-LGPL) as published by 

	http://www.globalbase.org/
 
	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.

**********************************************************************/



#ifndef ___V_MENU_M_H___
#define ___V_MENU_M_H___

extern "C"  {

class VCustomizedMenuBarImp {
  public:
	static void	menu_choosed(GtkMenuItem *menu_item, VMenuItem *item);
	static void	setup_edit_menu_contextual(GtkMenu *menu, VMenuItem *item);
	static void	setup_edit_menu_contextual_finish(GtkMenu *menu, VMenuItem *item);

	static GtkMenuBar *	make_menu_items(
			VMenuItem *items,
			GtkAccelGroup *accel_group,
			VWindow *vwindow,
			VInfo *window);
	
	static void	set_check_status(GtkCheckMenuItem *menu_item, VMenuItem *item);
	
  protected:
	static GtkWidget *	make_menu_items_sub(
			VMenuItem *items,
			GtkAccelGroup *accel_group,
			GtkWidget *menu_bar,
			VWindow *vwindow,
			VInfo *window);
	
	static GtkWidget *	set_menu_item_checkable(GtkWidget *check_menu, gpointer sh_arg);
};

} // extern "C"

#endif
