TSP: The Transport Sample Protocol



Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

support.h

00001 
00002 #ifndef _SUPPORT_H_
00003 #define _SUPPORT_H_
00004 
00005 #include <gtk/gtk.h>
00006 #include <config.h>
00007 
00008 
00009 
00010 /*
00011  * Public Functions.
00012  */
00013 
00014 /* Don't forget to update variable_type AND variable_type_str */
00015 typedef enum {VAR_DOUBLE, VAR_TITLE, VAR_HEXA, VAR_BIN, VAR_STRING } variable_type;
00016 typedef enum {WIDGET_VIEW, WIDGET_DRAW } widget_type_t;
00017 static char *variable_type_str[] = { "VAR_DOUBLE", "VAR_TITLE", "VAR_HEXA", "VAR_BIN", "VAR_STRING", NULL};
00018 
00019 #define VAR_TYPE_NAME(i) variable_type_str[(i)]
00020 /*inline */int VAR_TYPE_VAL (char *str);
00021 
00022 
00023 
00024 gboolean is_visible (GtkWidget *widget);
00025 void set_style_recursively (GtkWidget *, gpointer);
00026 
00027 /*
00028  * This function returns a widget in a component created by Glade.
00029  * Call it with the toplevel widget in the component (i.e. a window/dialog),
00030  * or alternatively any widget in the component, and the name of the widget
00031  * you want returned.
00032  */
00033 GtkWidget*  lookup_widget              (GtkWidget       *widget,
00034                                         const gchar     *widget_name);
00035 
00036 /* get_widget() is deprecated. Use lookup_widget instead. */
00037 #define get_widget lookup_widget
00038 
00039 /* Use this function to set the directory containing installed pixmaps. */
00040 void        add_pixmap_directory       (const gchar     *directory);
00041 
00042 
00043 /*
00044  * Private Functions.
00045  */
00046 
00047 /* This is used to create the pixmaps in the interface. */
00048 GtkWidget*  create_pixmap              (GtkWidget       *widget,
00049                                         const gchar     *filename);
00050 #endif
Framework Home Page.

Beware !! TSP wave is coming...