2 #ifndef __GXK_PARAM_H__
3 #define __GXK_PARAM_H__
10 #define GXK_IS_PARAM(p) (p && G_IS_PARAM_SPEC (p->pspec))
28 GxkParamBinding *binding;
36 guint16 n_data_fields;
45 gboolean (*check_writable) (
GxkParam *param);
46 void (*start_grouping) (
GxkParam *param);
47 void (*stop_grouping) (
GxkParam *param);
49 typedef void (*GxkParamUpdateFunc) (
GxkParam *param,
53 GxkParam* gxk_param_new (GParamSpec *pspec,
54 GxkParamBinding *binding,
56 GxkParam* gxk_param_new_constant (GParamSpec *pspec,
57 GxkParamBinding *binding,
59 void gxk_param_update (
GxkParam *param);
60 void gxk_param_start_grouping (
GxkParam *param);
61 void gxk_param_stop_grouping (
GxkParam *param);
62 void gxk_param_add_grab_widget (
GxkParam *param,
64 void gxk_param_add_object (
GxkParam *param,
66 void gxk_param_apply_value (
GxkParam *param);
67 void gxk_param_apply_default (
GxkParam *param);
68 void gxk_param_set_editable (
GxkParam *param,
70 const gchar* gxk_param_get_name (
GxkParam *param);
71 gchar* gxk_param_dup_tooltip (
GxkParam *param);
72 void gxk_param_set_devel_tips (gboolean enabled);
73 void gxk_param_destroy (
GxkParam *param);
74 void gxk_object_set_param_callback (GtkObject *
object,
75 GxkParamUpdateFunc ufunc);
79 typedef void (*GxkParamValueNotify) (gpointer notify_data,
81 GxkParam* gxk_param_new_value (GParamSpec *pspec,
82 GxkParamValueNotify notify,
83 gpointer notify_data);
84 GxkParam* gxk_param_new_constant_value (GParamSpec *pspec,
85 GxkParamValueNotify notify,
86 gpointer notify_data);
89 GxkParam* gxk_param_new_object (GParamSpec *pspec,
91 void gxk_param_set_object (
GxkParam *param,
93 GObject* gxk_param_get_object (
GxkParam *param);
98 const char *name, *nick;
104 const char *type_name;
105 guint all_int_nums : 1;
106 guint all_float_nums : 1;
113 GtkWidget* (*create_widget) (
GxkParam *param,
114 const gchar *tooltip,
121 const gchar *i18n_domain);
122 void gxk_param_register_aliases (
const gchar **aliases);
123 gchar** gxk_param_list_editors (
void);
124 guint gxk_param_editor_score (
const gchar *editor_name,
126 const gchar* gxk_param_lookup_editor (
const gchar *editor_name,
128 GtkWidget* gxk_param_create_editor (
GxkParam *param,
129 const gchar *editor_name);
130 void gxk_param_editor_debug_score (GParamSpec *pspec);
134 guint may_resize : 1;
135 guint request_fractions : 1;
136 guint char_chars, char_digits;
137 guint uchar_chars, uchar_digits;
138 guint int_chars, int_digits;
139 guint uint_chars, uint_digits;
140 guint long_chars, long_digits;
141 guint ulong_chars, ulong_digits;
142 guint int64_chars, int64_digits;
143 guint uint64_chars, uint64_digits;
144 guint float_chars, float_digits;
145 guint double_chars, double_digits;
146 guint string_chars, string_digits;
148 guint gxk_param_create_size_group (
void);
149 void gxk_param_set_sizes (guint size_group,
151 void gxk_param_set_size_group (
GxkParam *param,
154 guint gxk_param_get_digits (gdouble value,
159 gboolean gxk_param_entry_key_press (GtkEntry *entry,
161 void gxk_param_entry_set_text (
GxkParam *param,
164 void gxk_param_entry_connect_handlers (
GxkParam *param,
166 void (*changed) (GtkWidget*,
168 gboolean gxk_param_ensure_focus (GtkWidget *widget);
169 GtkAdjustment* gxk_param_get_adjustment (
GxkParam *param);
170 GtkAdjustment* gxk_param_get_adjustment_with_stepping (
GxkParam *param,
172 GtkAdjustment* gxk_param_get_log_adjustment (
GxkParam *param);
173 GtkAdjustment* gxk_param_get_decibel_adjustment (
GxkParam *param);
Definition: gxkparam.hh:34
Definition: gxkparam.hh:97
Definition: gxkparam.hh:14
Definition: gxkparam.hh:133
Definition: gxkparam.hh:100