From 376740d860394428e42b45cfa72cfcc4e397fd44 Mon Sep 17 00:00:00 2001 From: arif Date: Fri, 13 Nov 2009 19:47:12 +0000 Subject: [PATCH] customizable setting window atributes --- share/gui/attr_widgets.dot | 56 ++ share/gui/smyrna.glade | 1873 +++++++++++------------------------- 2 files changed, 634 insertions(+), 1295 deletions(-) create mode 100644 share/gui/attr_widgets.dot diff --git a/share/gui/attr_widgets.dot b/share/gui/attr_widgets.dot new file mode 100644 index 000000000..b0e2f73d4 --- /dev/null +++ b/share/gui/attr_widgets.dot @@ -0,0 +1,56 @@ +digraph smyrna_attr_widgets +{ + graph[color_button_bgcolor="settingsColorBtn1"]; + graph[color_button_bordercolor="settingsColorBtn2"]; + graph[color_button_gridcolor="settingsColorBtn3"]; + graph[color_button_highlightednodecolor="settingsColorBtn6"]; + graph[color_button_highlightededgecolor="settingsColorBtn7"]; + graph[color_button_selectednodecolor="settingsColorBtn8"]; + graph[color_button_selectededgecolor="settingsColorBtn9"]; + graph[color_button_defaultnodecolor="DefaultNodeCbtn"]; + graph[color_button_defaultedgecolor="DefaultEdgeCbtn"]; + graph[color_button_topologicaltopviewfinestcolor="settingsColorBtn9"]; + graph[color_button_topologicaltopviewcoarsestcolor="settingsColorBtn9"]; + graph[color_button_topologicalfisheyefinestcolor="settingsColorBtn10"]; + graph[color_button_topologicalfisheyecoarsestcolor="settingsColorBtn11"]; + graph[text_box_topologicalfisheyelabelattribute="finenodelabelattribute"]; + graph[check_box_bordervisible="settingsChkBox2"]; + graph[check_box_gridvisible="settingsChkBox3"]; + graph[check_box_drawnodes="settingsChkBox5-1"]; + graph[check_box_drawedges="settingsChkBox5-2"]; + graph[combobox_labelglutfont="labelfont"]; + graph[combobox_defaultnodeshape="settingscombobox1"]; + graph[combobox_colortheme="colorthemecb"]; + graph[color_button_nodelabelcolor="nodelabelcolor"]; + graph[color_button_edgelabelcolor="edgelabelcolor"]; + graph[text_box_nodelabelattribute="labelnodeattribute"]; + graph[text_box_edgecolorattribute="edgecolortxt"]; + graph[text_box_edgelabelattribute="labeledgeattribute"]; + graph[check_box_labelwithdegree="labelwithdegree"]; + graph[spin_button_labelnumberofnodes="labelzoomfactor"]; + graph[check_box_shownodelabels="labelshownodes"]; + graph[check_box_showedgelabels="labelshowedges"]; + graph[check_box_usermode="settingsChkBox10"]; + graph[check_box_nodesizewithdegree="settingsChkBox11"]; + graph[check_box_antialiasing="settingsChkBox12"]; + graph[check_box_topologicalfisheyedist2limit="settingsChkBox13"]; + graph[check_box_topologicalfisheyeanimate="settingsChkBox14"]; + graph[check_box_topologicalfisheyelabelfinenodes="settingsChkBox15"]; + graph[check_box_topologicalfisheyecolornodes="settingsChkBox16"]; + graph[check_box_topologicalfisheyecoloredges="settingsChkBox17"]; + graph[check_box_topologicalfisheyelabelfocus="settingsChkBox18"]; + graph[check_box_defaultnodeshapegl="settingsChkBox10_1"]; + graph[check_box_defaultnodeshapespherical="settingsChkBox10_2"]; + graph[check_box_defaultnodeshaperectangular="settingsChkBox10_3"]; + graph[spin_button_defaultmagnifierwidth="settingsspinbutton1"]; + graph[spin_button_defaultmagnifierheight="settingsspinbutton2"]; + graph[spin_button_defaultmagnifierkts="settingsspinbutton3"]; + graph[spin_button_defaultfisheyemagnifierradius="settingsspinbutton4"]; + graph[spin_button_defaultfisheyemagnifierdistort="settingsspinbutton5"]; + graph[spin_button_topologicalfisheyefinenodes="settingsspinbutton6"]; + graph[spin_button_topologicalfisheyecoarseningfactor="settingsspinbutton7"]; + graph[spin_button_topologicalfisheyedistortionfactor="settingsspinbutton8"]; + graph[scale_button_defaultnodealpha="settingsscale1"]; + graph[scale_button_defaultedgealpha="settingsscale2"]; + graph[scale_button_nodesize="nodesizescale"]; +} diff --git a/share/gui/smyrna.glade b/share/gui/smyrna.glade index 176e821e4..ab0e4b9fd 100755 --- a/share/gui/smyrna.glade +++ b/share/gui/smyrna.glade @@ -293,7 +293,7 @@ 1 0.5 5 - 0 + 2 PANGO_ELLIPSIZE_NONE -1 False @@ -353,793 +353,207 @@ - + + 0 True False 0 - + + + + + True - True - True - True - GTK_POS_TOP - False - False + False + 0 - + + 215 + 488 True - GTK_ORIENTATION_HORIZONTAL - GTK_TOOLBAR_BOTH - True - True - - - - True - gtk-open - True - True - False - - - - False - True - - - - - - True - gtk-new - True - True - False - - - - False - True - - - - - - True - gtk-save - True - True - False - - - - False - True - - - - - - True - Close - True - True - True - False - - - - False - True - - + True + GTK_POLICY_ALWAYS + GTK_POLICY_ALWAYS + GTK_SHADOW_IN + GTK_CORNER_TOP_LEFT - + True - True - True - False - - - - + True + True + False + True + GTK_JUSTIFY_LEFT + GTK_WRAP_NONE + True + 0 + 0 + 0 + 0 + 0 + 0 + - - False - False - - False - True - - - - - - True - File - False - False - GTK_JUSTIFY_LEFT - False - False - 0.5 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - tab + 0 + True + True - - - 0 - True - True - - - - - - True - True - True - True - GTK_POS_TOP - False - False - + True - GTK_ORIENTATION_HORIZONTAL - GTK_TOOLBAR_BOTH - True - True + 1 + 4 + False + 0 + 0 - + + 27 True - cursor + True + - True - cursor.png - True - True - False - + GTK_RELIEF_NORMAL + True + - False - True + 2 + 3 + 0 + 1 + fill + - + + 27 True - single + True + + True - single_select.png - True - True - False - + GTK_RELIEF_NORMAL + True + - False - True + 3 + 4 + 0 + 1 + fill + - + True - rect + True + Clear True - selectr.png - True - True - False - + GTK_RELIEF_NORMAL + True + - False - True + 0 + 1 + 0 + 1 + - + True - rectx + True + Hide True - selectx.png - True - True - False - + GTK_RELIEF_NORMAL + True + - False - True + 1 + 2 + 0 + 1 + - False - True + 0 + False + True + + + 0 + False + True + + + + + 0 + True + True + + + + + - - - True - Select - False - False - GTK_JUSTIFY_LEFT - False - False - 0.5 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - tab - - + + 950 + 680 + + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_MOUSE + False + 950 + 680 + False + False + True + False + False + GDK_WINDOW_TYPE_HINT_NORMAL + GDK_GRAVITY_NORTH_WEST + True + False - - - True - GTK_ORIENTATION_HORIZONTAL - GTK_TOOLBAR_BOTH - True - True + + + True + False + 0 - - - True - pan - True - pan.png - True - True - False - - - - False - True - - - - - - True - zoom - True - zoom.png - True - True - False - - - - False - True - - - - - - True - zoom + - True - zoom_in.png - True - True - False - - - - False - True - - - - - - True - zoom - - True - zoom_out.png - True - True - False - - - - False - True - - - - - - True - center - True - gtk-zoom-fit - True - True - False - - - - False - True - - - - - - True - fit - True - fit_to_screen.png - True - True - False - - - - False - True - - - - - False - True - - - - - - True - View - False - False - GTK_JUSTIFY_LEFT - False - False - 0.5 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - tab - - - - - - True - GTK_ORIENTATION_HORIZONTAL - GTK_TOOLBAR_BOTH - True - True - - - - True - move - True - move.png - True - True - False - - - - False - True - - - - - - True - delete - True - new_delete.png - True - True - False - - - False - True - - - - - - True - node attrs. - True - gtk-dnd - True - True - False - - - - False - True - - - - - - True - edge attrs - True - gtk-justify-center - True - True - False - - - - False - True - - - - - False - True - - - - - - True - Graph - False - False - GTK_JUSTIFY_LEFT - False - False - 0.5 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - tab - - - - - 0 - True - True - - - - - - True - False - 0 - - - - 46 - True - - - - 66 - 16 - True - Graph Array - False - False - GTK_JUSTIFY_LEFT - False - False - 0.5 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - 5 - 27 - - - - - 0 - False - False - - - - - - True - False - 0 - - - - - - - - - - - - - - - 0 - True - True - - - - - 0 - True - True - - - - - 0 - False - True - - - - - - 0 - True - False - 0 - - - - - - - - True - False - 0 - - - - 215 - 488 - True - True - GTK_POLICY_ALWAYS - GTK_POLICY_ALWAYS - GTK_SHADOW_IN - GTK_CORNER_TOP_LEFT - - - - True - True - True - False - True - GTK_JUSTIFY_LEFT - GTK_WRAP_NONE - True - 0 - 0 - 0 - 0 - 0 - 0 - - - - - - 0 - True - True - - - - - - True - 1 - 4 - False - 0 - 0 - - - - 27 - True - True - - - True - GTK_RELIEF_NORMAL - True - - - - 2 - 3 - 0 - 1 - fill - - - - - - - 27 - True - True - + - True - GTK_RELIEF_NORMAL - True - - - - 3 - 4 - 0 - 1 - fill - - - - - - - True - True - Clear - True - GTK_RELIEF_NORMAL - True - - - - 0 - 1 - 0 - 1 - - - - - - - True - True - Hide - True - GTK_RELIEF_NORMAL - True - - - - 1 - 2 - 0 - 1 - - - - - - 0 - False - True - - - - - 0 - False - True - - - - - 0 - True - True - - - - - - - - 950 - 680 - - GTK_WINDOW_TOPLEVEL - GTK_WIN_POS_MOUSE - False - 950 - 680 - False - False - True - False - False - GDK_WINDOW_TYPE_HINT_NORMAL - GDK_GRAVITY_NORTH_WEST - True - False - - - - True - False - 0 - - - - 0 - 66 - True - 400 - 400 - 0 0 950 0 855 950 - 0 0 400 0 59.4 66 + + + 0 + 66 + True + 400 + 400 + 0 0 950 0 855 950 + 0 0 400 0 59.4 66 @@ -1422,40 +836,6 @@ - - - 79 - 25 - True - Highlight All - True - GTK_RELIEF_NORMAL - True - - - - 178 - 4 - - - - - - 100 - 25 - True - Unhighlight All - True - GTK_RELIEF_NORMAL - True - - - - 259 - 4 - - - 98 @@ -1468,8 +848,8 @@ - 381 - 4 + 176 + 0 @@ -1485,8 +865,8 @@ - 481 - 4 + 288 + 0 @@ -1502,8 +882,8 @@ - 616 - 4 + 400 + 0 @@ -2595,13 +1975,14 @@ GTK_BUTTONBOX_END - + True Cancel True GTK_RELIEF_NORMAL True 0 + @@ -2634,76 +2015,36 @@ False True GTK_PACK_END - - - - - - True - True - True - GTK_POS_TOP - False - False - - - - True - 400 - 400 - 0 0 658 0 592.2 658 - 0 0 425 0 382.5 425 - - - - 366 - 408 - True - 13 - 3 - False - 0 - 0 - - - - True - False - True - - - 1 - 2 - 8 - 9 - - - - - - True - Selected Edge Color - False - False - GTK_JUSTIFY_LEFT - False - False - 0 - 0.5 - 5 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - 0 - 1 - 8 - 9 - - + + + + + + True + True + True + GTK_POS_TOP + False + False + + + + True + 400 + 400 + 0 0 658 0 592.2 658 + 0 0 425 0 382.5 425 + + + + 443 + 408 + True + 13 + 3 + False + 0 + 0 @@ -2749,48 +2090,6 @@ - - - True - False - True - - - 1 - 2 - 7 - 8 - - - - - - True - False - True - - - 1 - 2 - 6 - 7 - - - - - - True - False - True - - - 1 - 2 - 5 - 6 - - - True @@ -2820,9 +2119,9 @@ - + True - Selected Node Color + Default Edge Color False False GTK_JUSTIFY_LEFT @@ -2840,15 +2139,15 @@ 0 1 - 7 - 8 + 4 + 5 - + True - Highlighted Edge Color + Default Node Color False False GTK_JUSTIFY_LEFT @@ -2866,15 +2165,15 @@ 0 1 - 6 - 7 + 3 + 4 - + True - Highlighted Node Color + Grid Color False False GTK_JUSTIFY_LEFT @@ -2892,15 +2191,15 @@ 0 1 - 5 - 6 + 2 + 3 - + True - Default Edge Color + Border Color False False GTK_JUSTIFY_LEFT @@ -2918,15 +2217,15 @@ 0 1 - 4 - 5 + 1 + 2 - + True - Default Node Color + Background Color False False GTK_JUSTIFY_LEFT @@ -2944,15 +2243,15 @@ 0 1 - 3 - 4 + 0 + 1 - + True - Grid Color + Draw Nodes False False GTK_JUSTIFY_LEFT @@ -2970,15 +2269,15 @@ 0 1 - 2 - 3 + 9 + 10 - + True - Border Color + Draw Edges False False GTK_JUSTIFY_LEFT @@ -2996,29 +2295,59 @@ 0 1 - 1 - 2 + 10 + 11 - + True - False + GTK_RELIEF_NORMAL + True + False + False + True + + + + + + + 2 + 3 + 9 + 10 + + + + + + + True + GTK_RELIEF_NORMAL True + False + False + True + + + + - 1 - 2 - 0 - 1 + 2 + 3 + 10 + 11 + - + True - Background Color + Color Theme False False GTK_JUSTIFY_LEFT @@ -3036,41 +2365,52 @@ 0 1 - 0 - 1 + 11 + 12 + fill + - + True - Draw Nodes - False - False - GTK_JUSTIFY_LEFT - False - False - 0 - 0.5 - 5 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 + Ice Blue +All Pastel +Magma +Rain Forest + False + True + True - 0 - 1 - 9 - 10 + 1 + 2 + 11 + 12 + fill + fill - + True - Draw Edges + False + True + + + 1 + 2 + 3 + 4 + + + + + + True + Edge Attr. For Color False False GTK_JUSTIFY_LEFT @@ -3088,59 +2428,52 @@ 0 1 - 10 - 11 + 12 + 13 + fill + - + True - GTK_RELIEF_NORMAL - True - False - False - True - - - - - - - 2 - 3 - 9 - 10 - + True + True + True + 0 + + True + * + False + + + 1 + 2 + 12 + 13 + - + True - GTK_RELIEF_NORMAL + False True - False - False - True - - - - - 2 - 3 - 10 - 11 - + 1 + 2 + 4 + 5 - + True - Color Theme + Selected Node Color False False GTK_JUSTIFY_LEFT @@ -3158,36 +2491,15 @@ 0 1 - 11 - 12 + 5 + 6 fill - - True - Ice Blue -All Pastel -Magma -Rain Forest - False - True - True - - - 1 - 2 - 11 - 12 - fill - fill - - - - - + True False True @@ -3195,15 +2507,17 @@ Rain Forest 1 2 - 3 - 4 + 5 + 6 + fill + - + True - Edge Attr. For Color + Selected Edge Color False False GTK_JUSTIFY_LEFT @@ -3221,36 +2535,31 @@ Rain Forest 0 1 - 12 - 13 + 6 + 7 fill - + True - True - True - True - 0 - - True - * - False + False + True 1 2 - 12 - 13 + 6 + 7 + fill - + True False True @@ -3258,8 +2567,9 @@ Rain Forest 1 2 - 4 - 5 + 0 + 1 + fill @@ -3290,7 +2600,7 @@ Rain Forest 0 - 184 + 152 0 @@ -3316,7 +2626,7 @@ Rain Forest 0 - 325 + 408 0 @@ -5177,112 +4487,252 @@ Custom - - - 47 - True - False - True - - - 4 - 5 - 0 - 1 - - - - - 0 - False - True - - + + + 47 + True + False + True + + + 4 + 5 + 0 + 1 + + + + + 0 + False + True + + + + + + + + + 7 + 8 + + + + + False + True + + + + + + True + Topfish + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + tab + + + + + + 179 + 323 + True + False + 0 + + + + 212 + True + True + GTK_POLICY_ALWAYS + GTK_POLICY_ALWAYS + GTK_SHADOW_IN + GTK_CORNER_TOP_LEFT + + + + True + True + True + False + True + GTK_JUSTIFY_LEFT + GTK_WRAP_NONE + True + 0 + 0 + 0 + 0 + 0 + 0 + + + + + + 0 + True + True + + + + + + True + Arguments + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 0 + False + False + + + + + + True + True + True + True + 0 + + True + * + False + + + 0 + False + False + + + + + + True + Output + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 0 + False + False + + + + + + True + True + GTK_POLICY_ALWAYS + GTK_POLICY_ALWAYS + GTK_SHADOW_IN + GTK_CORNER_TOP_LEFT - + + True + True + True + False + True + GTK_JUSTIFY_LEFT + GTK_WRAP_NONE + True + 0 + 0 + 0 + 0 + 0 + 0 + + - 7 - 8 + 0 + True + True - - - False - True - - - - - - True - Topfish - False - False - GTK_JUSTIFY_LEFT - False - False - 0.5 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - tab - - - - - - True - 400 - 400 - 0 0 658 0 592.2 658 - 0 0 425 0 382.5 425 - - 436 - 421 + + 34 True False 0 - - 212 + True True - GTK_POLICY_ALWAYS - GTK_POLICY_ALWAYS - GTK_SHADOW_IN - GTK_CORNER_TOP_LEFT + Clone Current Graph + True + GTK_RELIEF_NORMAL + True + False + False + True + + + 0 + False + False + + - - - True - True - True - False - True - GTK_JUSTIFY_LEFT - GTK_WRAP_NONE - True - 0 - 0 - 0 - 0 - 0 - 0 - - - + + + True + True + Load + True + GTK_RELIEF_NORMAL + True + 0 @@ -5292,115 +4742,14 @@ Custom - + True - False - 0 - - - - True - Arguments - False - False - GTK_JUSTIFY_LEFT - False - False - 0.5 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - 0 - False - False - - - - - - True - True - True - True - 0 - - True - * - False - - - 0 - False - False - - - - - - True - Output - False - False - GTK_JUSTIFY_LEFT - False - False - 0.5 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - 0 - False - False - - - - - - True - True - GTK_POLICY_ALWAYS - GTK_POLICY_ALWAYS - GTK_SHADOW_IN - GTK_CORNER_TOP_LEFT - - - - True - True - True - False - True - GTK_JUSTIFY_LEFT - GTK_WRAP_NONE - True - 0 - 0 - 0 - 0 - 0 - 0 - - - - - - 0 - True - True - - + True + Save + True + GTK_RELIEF_NORMAL + True + 0 @@ -5410,92 +4759,26 @@ Custom - - 28 + True - False - 0 - - - - True - True - Clone Current Graph - True - GTK_RELIEF_NORMAL - True - False - False - True - - - 0 - False - False - - - - - - True - True - Load - True - GTK_RELIEF_NORMAL - True - - - - 0 - True - True - - - - - - True - True - Save - True - GTK_RELIEF_NORMAL - True - - - - 0 - True - True - - - - - - True - True - Run gvpr - True - GTK_RELIEF_NORMAL - True - - - - 0 - True - True - - + True + Run gvpr + True + GTK_RELIEF_NORMAL + True + 0 - False + True True - 4 - 2 + 0 + False + True -- 2.40.0