pcb 4.1.1
An interactive printed circuit board layout editor.

ghid-layer-selector.h

Go to the documentation of this file.
00001 #ifndef GHID_LAYER_SELECTOR_H__
00002 #define GHID_LAYER_SELECTOR_H__
00003 
00004 #include <glib.h>
00005 #include <glib-object.h>
00006 #include <gtk/gtk.h>
00007 
00008 G_BEGIN_DECLS  /* keep c++ happy */
00009 
00010 #define GHID_LAYER_SELECTOR_TYPE            (ghid_layer_selector_get_type ())
00011 #define GHID_LAYER_SELECTOR(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GHID_LAYER_SELECTOR_TYPE, GHidLayerSelector))
00012 #define GHID_LAYER_SELECTOR_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GHID_LAYER_SELECTOR_TYPE, GHidLayerSelectorClass))
00013 #define IS_GHID_LAYER_SELECTOR(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GHID_LAYER_SELECTOR_TYPE))
00014 #define IS_GHID_LAYER_SELECTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GHID_LAYER_SELECTOR_TYPE))
00015 
00016 typedef struct _GHidLayerSelector       GHidLayerSelector;
00017 typedef struct _GHidLayerSelectorClass  GHidLayerSelectorClass;
00018 
00019 GType ghid_layer_selector_get_type (void);
00020 GtkWidget* ghid_layer_selector_new (void);
00021 
00022 void ghid_layer_selector_add_layer (GHidLayerSelector *ls,
00023                                     gint user_id,
00024                                     const gchar *name,
00025                                     const gchar *color_string,
00026                                     gboolean visible,
00027                                     gboolean selectable,
00028                                     gboolean renameable);
00029 
00030 gint ghid_layer_selector_install_pick_items (GHidLayerSelector *ls,
00031                                              GtkMenuShell *shell, gint pos);
00032 gint ghid_layer_selector_install_view_items (GHidLayerSelector *ls,
00033                                              GtkMenuShell *shell, gint pos);
00034 
00035 GtkAccelGroup *ghid_layer_selector_get_accel_group (GHidLayerSelector *ls);
00036 
00037 void ghid_layer_selector_toggle_layer (GHidLayerSelector *ls, 
00038                                        gint user_id);
00039 void ghid_layer_selector_select_layer (GHidLayerSelector *ls, 
00040                                        gint user_id);
00041 gboolean ghid_layer_selector_select_next_visible (GHidLayerSelector *ls);
00042 void ghid_layer_selector_make_selected_visible (GHidLayerSelector *ls);
00043 void ghid_layer_selector_update_colors (GHidLayerSelector *ls,
00044                                         const gchar *(*callback)(int user_id));
00045 void ghid_layer_selector_delete_layers (GHidLayerSelector *ls,
00046                                         gboolean (*callback)(int user_id));
00047 void ghid_layer_selector_show_layers (GHidLayerSelector *ls,
00048                                       gboolean (*callback)(int user_id));
00049 
00050 G_END_DECLS  /* keep c++ happy */
00051 #endif