Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
gxkradget.hh File Reference
#include "gxkutils.hh"
Include dependency graph for gxkradget.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  GxkRadgetType
 

Macros

#define GXK_RADGET
 
#define GXK_IS_RADGET
 

Typedefs

typedef void GxkRadget
 
typedef void(* GxkRadgetHook) (GxkRadget *radget, guint property_id, const GValue *value, GParamSpec *pspec)
 

Functions

GxkRadgetArgs * gxk_radget_args (const gchar *name1,...)
 
GxkRadgetArgs * gxk_radget_args_valist (const gchar *name1, va_list var_args)
 
GxkRadgetArgs * gxk_radget_const_args (void)
 
GxkRadgetArgs * gxk_radget_args_set (GxkRadgetArgs *args, const gchar *name, const gchar *value)
 
const gchar * gxk_radget_args_get (const GxkRadgetArgs *args, const gchar *name)
 
GxkRadgetArgs * gxk_radget_args_merge (GxkRadgetArgs *dest, const GxkRadgetArgs *source)
 
void gxk_radget_free_args (GxkRadgetArgs *args)
 
GxkRadget * gxk_radget_create (const gchar *domain_name, const gchar *name, const gchar *var1,...)
 
GxkRadget * gxk_radget_complete (GxkRadget *radget, const gchar *domain_name, const gchar *name, const gchar *var1,...)
 
GxkRadget * gxk_radget_creator (GxkRadget *radget, const gchar *domain_name, const gchar *name, GxkRadget *parent, GSList *call_args, GSList *env_args)
 
const gchar * gxk_radget_get_domain (GxkRadget *radget)
 
void gxk_radget_parse (const gchar *domain_name, const gchar *file_name, const gchar *i18n_domain, GError **error)
 
void gxk_radget_parse_text (const gchar *domain_name, const gchar *text, gint text_len, const gchar *i18n_domain, GError **error)
 
gpointer gxk_radget_find (GxkRadget *radget, const gchar *name)
 
gpointer gxk_radget_find_area (GxkRadget *radget, const gchar *area)
 
void gxk_radget_add (GxkRadget *radget, const gchar *area, gpointer widget)
 
void gxk_radget_sensitize (GxkRadget *radget, const gchar *name, gboolean sensitive)
 
void gxk_radget_define_widget_type (GType type)
 
void gxk_radget_define_type (GType type, const GxkRadgetType *ggtype)
 
gboolean gxk_radget_type_lookup (GType type, GxkRadgetType *ggtype)
 
void gxk_radget_register_hook (GParamSpec *pspec, guint property_id, GxkRadgetHook hook_func)
 
GxkRadgetArgs * gxk_radget_data_copy_call_args (GxkRadgetData *gdgdata)
 
GxkRadget * gxk_radget_data_get_scope_radget (GxkRadgetData *gdgdata)
 
gchar * gxk_radget_data_dup_expand (GxkRadgetData *gdgdata, const gchar *expression)
 

Function Documentation

void gxk_radget_add ( GxkRadget *  radget,
const gchar *  area,
gpointer  widget 
)
Parameters
radgeta valid radget
arearadget name
widgetvalid GtkWidget

Add the unparanted widget widget to radget within area area.

Here is the call graph for this function:

GxkRadget* gxk_radget_complete ( GxkRadget *  radget,
const gchar *  domain_name,
const gchar *  name,
const gchar *  var1,
  ... 
)
Parameters
radgettoplevel ragdet container
domain_nameradget domain
nameradget definition name
...NULL terminated list of variable (name, value) strings pairs

Create the children/contents of the radget defined under name within domain as part of the container object passed in as radget, using the variable bindings as defined in the ... paired string list.

Here is the call graph for this function:

GxkRadget* gxk_radget_create ( const gchar *  domain_name,
const gchar *  name,
const gchar *  var1,
  ... 
)
Parameters
domain_nameradget domain
nameradget definition name
...NULL terminated list of variable (name, value) strings pairs

Create the radget (GtkWidget or GObject) defined as name within domain, using the variable bindings as defined in the ... paired string list.

Referenced by gxk_dialog_new(), and gxk_scroll_text_create().

Here is the call graph for this function:

Here is the caller graph for this function:

gpointer gxk_radget_find ( GxkRadget *  radget,
const gchar *  name 
)
Parameters
radgeta valid radget
nameradget name
Returns
radget named name or NULL

Recursively find the radget named name within the container radget radget. The name may consist of a list of parent radget names, seperated by a dot '.'.

Referenced by gxk_radget_find_area(), gxk_radget_get_domain(), and gxk_scroll_text_create().

Here is the call graph for this function:

Here is the caller graph for this function:

gpointer gxk_radget_find_area ( GxkRadget *  radget,
const gchar *  area 
)
Parameters
radgeta valid radget
arearadget name
Returns
radget named name or NULL

Recursively find the radget named name within the container radget radget.

Referenced by gxk_radget_add().

Here is the call graph for this function:

Here is the caller graph for this function:

const gchar* gxk_radget_get_domain ( GxkRadget *  radget)
Parameters
radgeta valid radget
Returns
radget domain

Return the domain within which the definition was found radget was created from.

Here is the call graph for this function:

void gxk_radget_parse ( const gchar *  domain_name,
const gchar *  file_name,
const gchar *  i18n_domain,
GError **  error 
)
Parameters
domain_nameradget domain name
file_namefile containing ragdet definitions
i18n_domaini18n domain to translate labels
errorGError location

Parse radget definitions from file_name. See gxk_radget_create() and gxk_radget_complete() to make use of the definitions.

Here is the call graph for this function:

void gxk_radget_parse_text ( const gchar *  domain_name,
const gchar *  text,
gint  text_len,
const gchar *  i18n_domain,
GError **  error 
)
Parameters
domain_nameradget domain name
textradget definition string
text_lenlength of text or -1
i18n_domaini18n domain to translate labels
errorGError location

Parse radget definitions from text. See gxk_radget_create() and gxk_radget_complete() to make use of the definitions.

Here is the call graph for this function: