sp-xmlview-attr-list.cpp revision cb2b13e16981a923b6d5880a064bade4ec96dc54
/*
* Specialization of GtkTreeView for the XML tree view
*
* Authors:
* MenTaLguY <mental@rydia.net>
*
* Copyright (C) 2002 MenTaLguY
*
* Released under the GNU GPL; see COPYING for details
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <cstring>
#include "helper/sp-marshal.h"
#include "../xml/node-event-vector.h"
#include "sp-xmlview-attr-list.h"
static void event_attr_changed (Inkscape::XML::Node * repr, const gchar * name, const gchar * old_value, const gchar * new_value, bool is_interactive, gpointer data);
NULL, /* child_added */
NULL, /* child_removed */
NULL, /* content_changed */
NULL /* order_changed */
};
{
gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(attr_list), COL_NAME, _("Attribute"), cell, "text", 0, NULL);
gtk_tree_sortable_set_sort_column_id ( GTK_TREE_SORTABLE(attr_list->store), COL_NAME, GTK_SORT_ASCENDING);
gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(attr_list), COL_VALUE, _("Value"), cell, "text", COL_VALUE, NULL);
}
void
{
}
if (repr) {
}
}
{
if (!type) {
sizeof(SPXMLViewAttrListClass),
0, // base_init
0, // base_finalize
0, // class_finalize
0, // class_data
sizeof(SPXMLViewAttrList),
0, // n_preallocs
0 // value_table
};
type = g_type_register_static(GTK_TYPE_TREE_VIEW, "SPXMLViewAttrList", &info, static_cast<GTypeFlags>(0));
}
return type;
}
void
{
g_signal_new ( "row-value-changed",
G_TYPE_NONE, 1,
}
void
{
}
void
{
}
{
const gchar *n;
while ( valid ) {
match = true;
break;
}
}
if (match) {
}
}
void
const gchar * /*old_value*/,
bool /*is_interactive*/,
{
const gchar *n;
while ( valid ) {
match = true;
break;
}
row++;
}
if (match) {
if (new_value) {
gtk_list_store_set (list->store, &iter, COL_NAME, name, COL_VALUE, new_value, COL_ATTR, GINT_TO_POINTER (g_quark_from_string (name)), -1);
} else {
}
gtk_list_store_set (list->store, &iter, COL_NAME, name, COL_VALUE, new_value, COL_ATTR, GINT_TO_POINTER (g_quark_from_string (name)), -1);
}
// send a "changed" signal so widget owners will know I've updated
}