From 7f66676fbba9a67c053326130410a700285258a2 Mon Sep 17 00:00:00 2001 From: arif Date: Mon, 1 Jun 2009 18:55:17 +0000 Subject: [PATCH] gvpr library is used instead of pipes now all smyrna attributes can be modified via gvpr scripts --- cmd/smyrna/smyrna.vcproj | 4 ++-- cmd/smyrna/smyrnadefs.h | 7 ------ cmd/smyrna/viewport.c | 47 ---------------------------------------- graphviz.sln | 10 +++++++-- share/gui/smyrna.glade | 30 ++----------------------- 5 files changed, 12 insertions(+), 86 deletions(-) diff --git a/cmd/smyrna/smyrna.vcproj b/cmd/smyrna/smyrna.vcproj index 62c310790..f6ffdbc19 100644 --- a/cmd/smyrna/smyrna.vcproj +++ b/cmd/smyrna/smyrna.vcproj @@ -62,7 +62,7 @@ /> default_attributes); view->dfltViewType = VT_NONE; view->dfltEngine = GVK_NONE; - view->Topview->Graphdata.selectedNodesCount=0; view->Topview->Graphdata.GraphFileName=(char*)0; view->Topview->Graphdata.Modified=0; - view->Topview->Graphdata.selectedEdges=0; - view->Topview->Graphdata.selectedEdgesCount=0; - view->Topview->Graphdata.selectedNodes=0; view->colschms=NULL; view->flush=1; @@ -478,48 +474,6 @@ void init_viewport(ViewInfo * view) } -/* load_graph_params: - * run once right after loading graph - */ -static void load_graph_params(Agraph_t * graph) -{ - view->Topview->Graphdata.Modified=0; - view->Topview->Graphdata.selectedEdges=NULL; - view->Topview->Graphdata.selectedNodes=NULL; - view->Topview->Graphdata.selectedEdgesCount=0; - view->Topview->Graphdata.selectedEdgesCount=0; - - -} - -/* attach_object_custom_data_to_graph: - * run once or to reset all data !! prev data is removed - */ -#if 0 -static int attach_object_custom_data_to_graph(Agraph_t * graph) -{ - Agnode_t *n; - Agedge_t *e; - Agraph_t *s; - - agbindrec(graph, "custom_graph_data", sizeof(custom_graph_data), FALSE);//graph custom data - init_object_custom_data(graph, graph); //attach to graph itself - n = agfstnode(graph); - - for (s = agfstsubg(graph); s; s = agnxtsubg(s)) - init_object_custom_data(graph, s); //attach to subgraph - - for (n = agfstnode(graph); n; n = agnxtnode(graph, n)) { - init_object_custom_data(graph, n); //attach to node - for (e = agfstout(graph, n); e; e = agnxtout(graph, e)) { - init_object_custom_data(graph, e); //attach to edge - } - } - return 1; - -} -#endif - /* update_graph_params: * adds gledit params * assumes custom_graph_data has been attached to the graph. @@ -614,7 +568,6 @@ static Agraph_t *loadGraph(char *filename) fclose (input_file); return 0; } - load_graph_params(g); view->Topview->Graphdata.GraphFileName = strdup (filename); return g; } diff --git a/graphviz.sln b/graphviz.sln index e03e39daf..507369cf3 100644 --- a/graphviz.sln +++ b/graphviz.sln @@ -72,10 +72,10 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "dot", "cmd\dot\dot.vcproj", EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gvplugin_neato_layout", "plugin\neato_layout\gvplugin_neato_layout.vcproj", "{92EA9398-9244-4DAA-8E7D-2F6BEC338CAB}" ProjectSection(ProjectDependencies) = postProject - {C5CEB09E-79AF-4091-ACCF-D28EC3D7D90F} = {C5CEB09E-79AF-4091-ACCF-D28EC3D7D90F} - {8E82D6BD-74D0-48C3-887A-1754EA71DA5A} = {8E82D6BD-74D0-48C3-887A-1754EA71DA5A} {AE706502-3203-4815-BF50-4D73BF96BA58} = {AE706502-3203-4815-BF50-4D73BF96BA58} {15229511-9F6C-48A5-9194-660CA6492563} = {15229511-9F6C-48A5-9194-660CA6492563} + {C5CEB09E-79AF-4091-ACCF-D28EC3D7D90F} = {C5CEB09E-79AF-4091-ACCF-D28EC3D7D90F} + {8E82D6BD-74D0-48C3-887A-1754EA71DA5A} = {8E82D6BD-74D0-48C3-887A-1754EA71DA5A} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "patchwork", "lib\patchwork\gvpatchwork.vcproj", "{6BD77BDE-151D-4824-A8BC-9F067662F7AB}" @@ -197,6 +197,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gvtest", "cmd\tester\gvtest EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "osage", "lib\osage\osage.vcproj", "{8E82D6BD-74D0-48C3-887A-1754EA71DA5A}" EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gvprlib", "cmd\gvprlib\gvprlib.vcproj", "{1068DA13-0BB3-43A7-8776-6F519003EEBD}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Win32 = Debug|Win32 @@ -423,6 +425,10 @@ Global {8E82D6BD-74D0-48C3-887A-1754EA71DA5A}.Debug|Win32.Build.0 = Debug|Win32 {8E82D6BD-74D0-48C3-887A-1754EA71DA5A}.Release|Win32.ActiveCfg = Release|Win32 {8E82D6BD-74D0-48C3-887A-1754EA71DA5A}.Release|Win32.Build.0 = Release|Win32 + {1068DA13-0BB3-43A7-8776-6F519003EEBD}.Debug|Win32.ActiveCfg = Debug|Win32 + {1068DA13-0BB3-43A7-8776-6F519003EEBD}.Debug|Win32.Build.0 = Debug|Win32 + {1068DA13-0BB3-43A7-8776-6F519003EEBD}.Release|Win32.ActiveCfg = Release|Win32 + {1068DA13-0BB3-43A7-8776-6F519003EEBD}.Release|Win32.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/share/gui/smyrna.glade b/share/gui/smyrna.glade index b23999f31..29f268a04 100755 --- a/share/gui/smyrna.glade +++ b/share/gui/smyrna.glade @@ -4590,7 +4590,7 @@ topview GTK_WIN_POS_NONE False True - False + True True False False @@ -7433,6 +7433,7 @@ Custom True GTK_RELIEF_NORMAL True + 0 @@ -7499,33 +7500,6 @@ Custom tab - - - - - - - - True - UI - False - False - GTK_JUSTIFY_LEFT - False - False - 0.5 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - tab - - 0 -- 2.40.0