gint column = -1;
glong row;
-
+
row = 10;
find_value (fd, row, &x, &column);
gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (case_num_entry))
- FIRST_CASE_NUMBER ;
- if (case_num >= 0 &&
+ if (case_num >= 0 &&
case_num < gtk_tree_model_iter_n_children (ds->data_model, NULL))
{
jmd_sheet_scroll_to (ds, -1, case_num);
gint n)
{
PsppireDataStore *store = PSPPIRE_DATA_STORE (tree_model);
-
+
g_assert (parent == NULL);
g_return_val_if_fail (store, FALSE);
iter->user_data = NULL;
return FALSE;
}
-
+
iter->user_data = GINT_TO_POINTER (n);
iter->stamp = store->stamp;
-
+
return TRUE;
}
union value val;
value_init (&val, width);
- char *xx =
+ char *xx =
data_in (ss_cstr (in), psppire_dict_encoding (store->dict),
fmt->type, &val, width, "UTF-8");
PsppireDataStore *store = PSPPIRE_DATA_STORE (tree_model);
g_return_if_fail (iter->stamp == store->stamp);
-
+
const struct variable *variable = psppire_dict_get_variable (store->dict, column);
if (NULL == variable)
return;
GVariant *vv = value_variant_new (val, var_get_width (variable));
g_value_set_variant (value, vv);
-
+
case_unref (cc);
}
iface->get_flags = __tree_model_get_flags;
iface->get_n_columns = __tree_model_get_n_columns ;
iface->get_column_type = NULL;
- iface->get_iter = NULL;
- iface->iter_next = NULL;
- iface->get_path = NULL;
+ iface->get_iter = NULL;
+ iface->iter_next = NULL;
+ iface->get_path = NULL;
iface->get_value = __get_value;
- iface->iter_children = NULL;
- iface->iter_has_child = NULL;
+ iface->iter_children = NULL;
+ iface->iter_has_child = NULL;
iface->iter_n_children = __tree_model_iter_n_children;
iface->iter_nth_child = __iter_nth_child;
- iface->iter_parent = NULL;
+ iface->iter_parent = NULL;
}
ds->datasheet = datasheet_create (reader);
gint new_n = datasheet_get_n_rows (ds->datasheet);
-
+
if ( ds->dict )
for (i = 0 ; i < n_dict_signals; ++i )
{
return TRUE;
}
-
+
gchar *
psppire_data_store_get_string (PsppireDataStore *store,
int width = var_get_width (var);
if (! psppire_data_store_get_value (store, row, var, &v))
return NULL;
-
+
string = NULL;
if (use_value_label)
{
JmdDatum *gd = JMD_DATUM (g_object_new (JMD_TYPE_DATUM, NULL));
PsppireDict *dict = PSPPIRE_DICT (list);
-
+
if (id >= psppire_dict_get_var_cnt (dict))
{
gd->text = g_strdup (_("Var"));
object_type = g_type_register_static (G_TYPE_OBJECT,
"PsppireDict",
&object_info, 0);
-
+
g_type_add_interface_static (object_type, GTK_TYPE_TREE_MODEL,
&tree_model_info);
parent_class = g_type_class_peek_parent (class);
object_class->dispose = psppire_dict_dispose;
-
+
signals [VARIABLE_CHANGED] =
g_signal_new ("variable-changed",
G_TYPE_FROM_CLASS (class),
{
PsppireDict *new_dict = g_object_new (PSPPIRE_TYPE_DICT, NULL);
new_dict->dict = d;
-
+
dict_set_callbacks (new_dict->dict, &gui_callbacks, new_dict);
return new_dict;
guint old_n = dict_get_var_cnt (dict->dict);
guint new_n = dict_get_var_cnt (d);
-
+
dict->dict = d;
weight_changed_callback (d, var ? var_get_dict_index (var) : -1, dict);
g_signal_emit (d, signals[VARIABLE_INSERTED], 0, idx);
g_signal_emit_by_name (d, "items-changed", idx, 0, 1);
-
+
return var;
}
g_return_val_if_fail (PSPPIRE_IS_DICT (model), (GType) 0);
GType t = 0;
-
+
switch (index)
{
case DICT_TVM_COL_NAME:
var = iter->user_data;
const struct fmt_spec *fs = var_get_write_format (var);
-
+
switch (column)
{
case DICT_TVM_COL_NAME:
vv[IDX_DATA] = g_variant_new_from_data (G_VARIANT_TYPE_BYTESTRING, q,
width + 1, FALSE, NULL, NULL);
}
-
+
return g_variant_new_tuple (vv, 2);
}
g_value_register_transform_func (G_TYPE_STRING, G_TYPE_DOUBLE, tx_string_to_double);
g_value_register_transform_func (G_TYPE_STRING, G_TYPE_INT, tx_string_to_int);
-
+
g_value_register_transform_func (measure_enum_type, G_TYPE_STRING, enum_to_string);
g_value_register_transform_func (align_enum_type, G_TYPE_STRING, enum_to_string);
g_value_register_transform_func (role_enum_type, G_TYPE_STRING, enum_to_string);