pcb 4.1.1
An interactive printed circuit board layout editor.
|
00001 #ifndef GHID_MAIN_MENU_H__ 00002 #define GHID_MAIN_MENU_H__ 00003 00004 #include <glib.h> 00005 #include <glib-object.h> 00006 #include <gtk/gtk.h> 00007 00008 #include "ghid-layer-selector.h" 00009 #include "ghid-route-style-selector.h" 00010 #include "resource.h" 00011 00012 G_BEGIN_DECLS /* keep c++ happy */ 00013 00014 #define GHID_MAIN_MENU_TYPE (ghid_main_menu_get_type ()) 00015 #define GHID_MAIN_MENU(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GHID_MAIN_MENU_TYPE, GHidMainMenu)) 00016 #define GHID_MAIN_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GHID_MAIN_MENU_TYPE, GHidMainMenuClass)) 00017 #define IS_GHID_MAIN_MENU(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GHID_MAIN_MENU_TYPE)) 00018 #define IS_GHID_MAIN_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GHID_MAIN_MENU_TYPE)) 00019 00020 typedef struct _GHidMainMenu GHidMainMenu; 00021 typedef struct _GHidMainMenuClass GHidMainMenuClass; 00022 00023 GType ghid_main_menu_get_type (void); 00024 GtkWidget *ghid_main_menu_new (GCallback action_cb, 00025 void (*special_key_cb) (const char *accel, 00026 GtkAction *action, 00027 const Resource *node)); 00028 void ghid_main_menu_add_resource (GHidMainMenu *menu, const Resource *res); 00029 GtkAccelGroup *ghid_main_menu_get_accel_group (GHidMainMenu *menu); 00030 void ghid_main_menu_update_toggle_state (GHidMainMenu *menu, 00031 void (*cb) (GtkAction *, 00032 const char *toggle_flag, 00033 const char *active_flag)); 00034 00035 void ghid_main_menu_add_popup_resource (GHidMainMenu *menu, const char *name, 00036 const Resource *res); 00037 GtkMenu *ghid_main_menu_get_popup (GHidMainMenu *menu, const char *name); 00038 00039 void ghid_main_menu_install_layer_selector (GHidMainMenu *mm, 00040 GHidLayerSelector *ls); 00041 void ghid_main_menu_install_route_style_selector (GHidMainMenu *mm, 00042 GHidRouteStyleSelector *rss); 00043 00044 G_END_DECLS /* keep c++ happy */ 00045 #endif