int widgetcounter; //number of attributes counted dynamically, might be removed in the future
attribute attr[MAXIMUM_WIDGET_COUNT];
-
-
-//loads object properties form and does some fixes
-//call this function only ones
-void create_object_properties(void)
-{
- GladeXML *xml;
- GtkWidget *widget;
- xml = glade_xml_new(smyrnaGlade, NULL, NULL);
-
- widget = glade_xml_get_widget(xml, "listPoints");
- gtk_clist_set_column_title((GtkCList *) widget, 0, "Def");
- gtk_clist_set_column_title((GtkCList *) widget, 1, "x");
- gtk_clist_set_column_title((GtkCList *) widget, 2, "y");
- gtk_clist_set_column_title((GtkCList *) widget, 3, "z");
- gtk_clist_column_titles_show((GtkCList *) widget);
- gtk_widget_show(widget);
- widget = glade_xml_get_widget(xml, "win");
- gtk_widget_show(widget);
-
-
-}
-
-//call this after create_object_properties()
-void object_properties_node_init(void)
-{
-
-}
-void object_properties_edge_init(void) //customize window for Edges
-{
-}
-void object_properties_cluster_init(void) //customize window for Cluster
-{
-
-}
-void object_properties_graph_init(void) //customize window for Graph , this shows the graph default values
-{
-
-}
-
void Color_Widget(char *colorstring, GtkWidget * widget)
{
GtkRcStyle *rc_style;
extern attribute attr[MAXIMUM_WIDGET_COUNT];
- void create_object_properties(void); //creates general purpose object properties template
- void object_properties_node_init(void); //customize window for Nodes
- void object_properties_edge_init(void); //customize window for Edges
- void object_properties_cluster_init(void); //customize window for Cluster
- void object_properties_graph_init(void); //customize window for Graph , this shows the graph default values
void graph_properties_init(int newgraph); //initialize little open graph dialog
int update_graph_properties(Agraph_t * graph); //updates graph from gui
void load_graph_properties(Agraph_t * graph); //load from graph to gui