]> granicus.if.org Git - graphviz/commitdiff
graph attribute `datacolumns` is used to populate node list , it should be comma...
authorarif <devnull@localhost>
Thu, 11 Mar 2010 17:23:07 +0000 (17:23 +0000)
committerarif <devnull@localhost>
Thu, 11 Mar 2010 17:23:07 +0000 (17:23 +0000)
e.g:
G[datacolumns="IP,HOST,DATA1"]

cmd/smyrna/gui/datalistcallbacks.c
cmd/smyrna/gui/glcompui.c
cmd/smyrna/gui/menucallbacks.c
cmd/smyrna/tvnodes.c

index 90461314eee199b8d1a7ee38c826e291be0a77b4..ea638565d49df31b24d07158ee2ca860d53cd047 100755 (executable)
@@ -20,37 +20,6 @@ void btnTVEdit_clicked_cb(GtkWidget * widget, gpointer user_data)
 {
 }
 
-void btnTVDelete_clicked_cb(GtkWidget * widget, gpointer user_data)
-{
-}
-void btnTVFirst_clicked_cb(GtkWidget * widget, gpointer user_data)
-{
-    tv_nodes_first_page();
-}
-
-void btnTVPrevious_clicked_cb(GtkWidget * widget, gpointer user_data)
-{
-    tv_nodes_prior_page();
-}
-
-void btnTVNext_clicked_cb(GtkWidget * widget, gpointer user_data)
-{
-    tv_nodes_next_page();
-}
-
-void btnTVLast_clicked_cb(GtkWidget * widget, gpointer user_data)
-{
-    tv_nodes_last_page();
-}
-
-void btnTVGotopage_clicked_cb(GtkWidget * widget, gpointer user_data)
-{
-    GtkSpinButton *spn;
-    int p;
-    spn = (GtkSpinButton *) glade_xml_get_widget(xml, "spnTVGotopage");
-    p = gtk_spin_button_get_value_as_int(spn);
-    tv_nodes_goto_page(p - 1);
-}
 
 void btnTVCancel_clicked_cb(GtkWidget * widget, gpointer user_data)
 {
@@ -93,16 +62,6 @@ void btnTVFilterApply_clicked_cb(GtkWidget * widget, gpointer user_data)
 
 }
 
-void btnTVSelectAll_clicked_cb(GtkWidget * widget, gpointer user_data)
-{
-    tv_select_all();
-}
-
-void btnTVUnselectAll_clicked_cb(GtkWidget * widget, gpointer user_data)
-{
-    tv_unselect_all();
-}
-
 
 void btnTVShowAll_clicked_cb(GtkWidget * widget, gpointer user_data)
 {
index cb2a6b7a0bc5f15ad67b864141bda558006057a7..e33869eef8d909a35c82d0989bb0953eaf086390 100644 (file)
@@ -203,6 +203,35 @@ void selectnodes(glCompObj *obj, GLfloat x, GLfloat y)
 }
 
 
+void testContainer(glCompSet *s)
+{
+
+    glCompPanel* p;
+    glCompLabel *l=NULL;
+
+    p = glCompPanelNew((glCompObj *) s, 100, 100, 500, 500);
+    p = glCompPanelNew((glCompObj *) p, 0, 0, 480, 480);
+    p->common.anchor.leftAnchor=1;
+    p->common.anchor.bottomAnchor=1;
+    p->common.anchor.topAnchor=1;
+    p->common.anchor.rightAnchor=1;
+
+
+    p->common.anchor.left=10;
+    p->common.anchor.bottom=50;
+    p->common.anchor.top=10;
+    p->common.anchor.right=10;
+
+
+
+
+
+
+
+}
+
+
+
 glCompSet *glcreate_gl_topview_menu(void)
 {
     /* static char* icondir[512]; */
@@ -362,6 +391,8 @@ glCompSet *glcreate_gl_topview_menu(void)
     i->common.visible = 0;
 /*    l=glCompLabelNew((glCompObj *)s,100,5,view->Topview->Graphdata.GraphFileName);
     glCompLabelSetFontSize(l,24);*/
+
+//    testContainer(s);
     return s;
 
 
index 535878ed0eb9faf0e6862b11bb2a612ec8ba6d91..86cd28e32bba0bf913c141264b0f8310c0d08618 100755 (executable)
@@ -188,8 +188,10 @@ void mHideConsoleSlot(GtkWidget * widget, gpointer user_data)
 //Graph
 void mNodeListSlot(GtkWidget * widget, gpointer user_data)
 {
-    gtk_widget_show(glade_xml_get_widget(xml, "ListForm"));
-    execute_tv_nodes();
+       gtk_widget_show(glade_xml_get_widget(xml, "frmTVNodes"));
+       setup_tree (view->g[view->activeGraph]);
+
+
 }
 
 void mNewNodeSlot(GtkWidget * widget, gpointer user_data)
index 1637d758a8a4aa19cf9a624d06fc95a3b5f743f8..b00c9571b44f9e42d0cfa368ce0b9b5d97d183e7 100755 (executable)
@@ -370,7 +370,9 @@ grid* update_colums(grid* g,char* str)
     add_column(g,"ID",0,G_TYPE_STRING);
     add_column(g,"Name",0,G_TYPE_STRING);
     add_column(g,"visible",0,G_TYPE_BOOLEAN);
-
+    if(!str)
+       return g;
+    
     a=strtok(str,",");
     add_column(g,a,1,G_TYPE_STRING);
     while ((a=strtok(NULL,",")))
@@ -384,10 +386,12 @@ void setup_tree (Agraph_t* g)
     G_TYPE_INT:
     G_TYPE_BOOLEAN:
     */
-    char buf[]="IP,HOST,DATA3,COLOR,FALAN,FILAN";
+    static char* buf=NULL;
     static GtkTreeStore *store=NULL;
     static GtkTreeView *tree=NULL;
     grid* gr=NULL;
+    buf=agget(g,"datacolumns");
+
 //    tree=(GtkTreeView *) glade_xml_get_widget(xml, "treeview1");
     gr=update_colums(gr,buf);
     tree=update_tree (tree,gr);