Institut de Robòtica i Informàtica Industrial
KRD Group

The CuikSuite Project

cuikplay_support.h

Go to the documentation of this file.
00001 #ifndef CUIKPLAYSUPPORTH
00002 #define CUIKPLAYSUPPORTH
00003 
00013 #include <gtk/gtk.h>
00014 
00015 /*
00016  * Standard gettext macros.
00017  */
00018 #ifdef ENABLE_NLS
00019 #  include <libintl.h>
00020 #  undef _
00021 #  define _(String) dgettext (PACKAGE, String)
00022 #  define Q_(String) g_strip_context ((String), gettext (String))
00023 #  ifdef gettext_noop
00024 #    define N_(String) gettext_noop (String)
00025 #  else
00026 #    define N_(String) (String)
00027 #  endif
00028 #else
00029 #  define textdomain(String) (String)
00030 #  define gettext(String) (String)
00031 #  define dgettext(Domain,Message) (Message)
00032 #  define dcgettext(Domain,Message,Type) (Message)
00033 #  define bindtextdomain(Domain,Directory) (Domain)
00034 #  define _(String) (String)
00035 #  define Q_(String) g_strip_context ((String), (String))
00036 #  define N_(String) (String)
00037 #endif
00038 
00039 
00040 /*
00041  * Public Functions.
00042  */
00043 
00044 /*
00045  * This function returns a widget in a component created by Glade.
00046  * Call it with the toplevel widget in the component (i.e. a window/dialog),
00047  * or alternatively any widget in the component, and the name of the widget
00048  * you want returned.
00049  */
00050 GtkWidget*  lookup_widget              (GtkWidget       *widget,
00051                                         const gchar     *widget_name);
00052 
00053 
00054 /* Use this function to set the directory containing installed pixmaps. */
00055 void        add_pixmap_directory       (const gchar     *directory);
00056 
00057 
00058 /*
00059  * Private Functions.
00060  */
00061 
00062 /* This is used to create the pixmaps used in the interface. */
00063 GtkWidget*  create_pixmap              (GtkWidget       *widget,
00064                                         const gchar     *filename);
00065 
00066 /* This is used to create the pixbufs used in the interface. */
00067 GdkPixbuf*  create_pixbuf              (const gchar     *filename);
00068 
00069 /* This is used to set ATK action descriptions. */
00070 void        glade_set_atk_action_description (AtkAction       *action,
00071                                               const gchar     *action_name,
00072                                               const gchar     *description);
00073 
00075 #endif