~ubuntu-branches/ubuntu/lucid/graphviz/lucid-updates

« back to all changes in this revision

Viewing changes to cmd/smyrna/gui/datalistcallbacks.c

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2008-06-19 20:23:23 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080619202323-ls23h96ntj9ny94m
Tags: 2.18-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Build depend on liblualib50-dev instead of liblua5.1-0-dev.
  - Drop libttf-dev (libttf-dev is in universe) (LP: #174749).
  - Replace gs-common with ghostscript.
  - Build-depend on python-dev instead of python2.4-dev or python2.5-dev.
  - Mention the correct python version for the python bindings in the
    package description.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Id: datalistcallbacks.c,v 1.3 2008/03/04 17:54:51 arif Exp $ $Revision: 1.3 $ */
 
2
/* vim:set shiftwidth=4 ts=8: */
 
3
 
 
4
/**********************************************************
 
5
*      This software is part of the graphviz package      *
 
6
*                http://www.graphviz.org/                 *
 
7
*                                                         *
 
8
*            Copyright (c) 1994-2004 AT&T Corp.           *
 
9
*                and is licensed under the                *
 
10
*            Common Public License, Version 1.0           *
 
11
*                      by AT&T Corp.                      *
 
12
*                                                         *
 
13
*        Information and Software Systems Research        *
 
14
*              AT&T Research, Florham Park NJ             *
 
15
**********************************************************/
 
16
 
 
17
#include "datalistcallbacks.h"
 
18
#include "tvnodes.h"
 
19
void btnTVEdit_clicked_cb (GtkWidget *widget,gpointer user_data)
 
20
{
 
21
}
 
22
void btnTVDelete_clicked_cb (GtkWidget *widget,gpointer user_data)
 
23
{
 
24
}
 
25
void btnTVFilter_clicked_cb (GtkWidget *widget,gpointer user_data)
 
26
{
 
27
        int respond;
 
28
 
 
29
//      gtk_dialog_set_response_sensitive   (glade_xml_get_widget(xml, "dlgOpenGraph"),1,1);
 
30
//      gtk_dialog_set_response_sensitive   (glade_xml_get_widget(xml, "dlgOpenGraph"),2,1);
 
31
        respond=gtk_dialog_run ((GtkDialog*)glade_xml_get_widget(xml, "dlgTVFilter"));
 
32
//      respond=gtk_dialog_run (glade_xml_get_widget(xml, "dlgFilters"));
 
33
        gtk_widget_hide(glade_xml_get_widget(xml, "dlgTVFilter"));
 
34
        if(respond == 1)
 
35
                apply_filter_from_gui();
 
36
}
 
37
void btnTVFirst_clicked_cb (GtkWidget *widget,gpointer user_data)
 
38
{
 
39
        tv_nodes_first_page();
 
40
}
 
41
void btnTVPrevious_clicked_cb (GtkWidget *widget,gpointer user_data)
 
42
{
 
43
        tv_nodes_prior_page();
 
44
}
 
45
void btnTVNext_clicked_cb (GtkWidget *widget,gpointer user_data)
 
46
{
 
47
        tv_nodes_next_page();
 
48
}
 
49
void btnTVLast_clicked_cb (GtkWidget *widget,gpointer user_data)
 
50
{
 
51
        tv_nodes_last_page();
 
52
}
 
53
void btnTVGotopage_clicked_cb (GtkWidget *widget,gpointer user_data)
 
54
{
 
55
        GtkSpinButton* spn;
 
56
        int p;
 
57
        spn=(GtkSpinButton*)glade_xml_get_widget(xml, "spnTVGotopage");
 
58
        p=gtk_spin_button_get_value_as_int(spn);
 
59
        tv_nodes_goto_page(p-1);
 
60
}
 
61
void btnTVCancel_clicked_cb (GtkWidget *widget,gpointer user_data)
 
62
{
 
63
}
 
64
void btnTVOK_clicked_cb (GtkWidget *widget,gpointer user_data)
 
65
{
 
66
        update_TV_data_from_gui();
 
67
    gtk_widget_hide(glade_xml_get_widget(xml, "frmTVNodes"));
 
68
}
 
69
void btnTVReverse_clicked_cb (GtkWidget *widget,gpointer user_data)
 
70
{
 
71
}
 
72
void cgbTVSelect_toggled_cb (GtkWidget *widget,gpointer user_data)
 
73
{
 
74
}
 
75
 
 
76
 
 
77
 
 
78
void btnTVFilterApply_clicked_cb (GtkWidget *widget,gpointer user_data)
 
79
{
 
80
/*      GTK_RESPONSE_OK     = -5,
 
81
        GTK_RESPONSE_CANCEL = -6,
 
82
        GTK_RESPONSE_CLOSE  = -7,
 
83
        GTK_RESPONSE_YES    = -8,
 
84
        GTK_RESPONSE_NO     = -9,
 
85
        GTK_RESPONSE_APPLY  = -10,
 
86
        GTK_RESPONSE_HELP   = -11 */
 
87
        
 
88
        gtk_dialog_response((GtkDialog*)glade_xml_get_widget(xml, "dlgTVFilter"),GTK_RESPONSE_OK);
 
89
 
 
90
}
 
91
void btnTVFilterClear_clicked_cb (GtkWidget *widget,gpointer user_data)
 
92
{
 
93
        gtk_entry_set_text ((GtkEntry*)glade_xml_get_widget(xml,"edtTVFilterMinData1"),"" );
 
94
        gtk_entry_set_text ((GtkEntry*) glade_xml_get_widget(xml,"edtTVFilterMaxData1"),"" );
 
95
        gtk_entry_set_text ((GtkEntry*) glade_xml_get_widget(xml,"edtTVFilterMinData2"),"" );
 
96
        gtk_entry_set_text ((GtkEntry*) glade_xml_get_widget(xml,"edtTVFilterMaxData2"),"" );
 
97
        gtk_entry_set_text ((GtkEntry*) glade_xml_get_widget(xml,"edtTVFilterString"),"" );
 
98
 
 
99
 
 
100
        gtk_toggle_button_set_active((GtkToggleButton*)glade_xml_get_widget(xml,"rbTVFilterHigh1"),1);
 
101
        gtk_toggle_button_set_active((GtkToggleButton*)glade_xml_get_widget(xml,"rbTVFilterSel1"),1);
 
102
        gtk_toggle_button_set_active((GtkToggleButton*)glade_xml_get_widget(xml,"rbTVFilterVisible1"),1);
 
103
        apply_filter_from_gui();
 
104
}
 
105
 
 
106
void btnTVSelectAll_clicked_cb (GtkWidget *widget,gpointer user_data)
 
107
{
 
108
        tv_select_all();
 
109
}
 
110
void btnTVUnselectAll_clicked_cb(GtkWidget *widget,gpointer user_data)
 
111
{
 
112
        tv_unselect_all();
 
113
}
 
114
void btnTVHighlightAll_clicked_cb(GtkWidget *widget,gpointer user_data)
 
115
{
 
116
        tv_highligh_all();
 
117
}
 
118
void btnTVUnhighlightAll_clicked_cb(GtkWidget *widget,gpointer user_data)
 
119
{
 
120
        tv_unhighligh_all();
 
121
}
 
122
 
 
123
 
 
124
void  btnTVShowAll_clicked_cb(GtkWidget *widget,gpointer user_data)
 
125
{
 
126
        tv_show_all();
 
127
}
 
128
void btnTVHideAll_clicked_cb(GtkWidget *widget,gpointer user_data)
 
129
{
 
130
        tv_hide_all();
 
131
}
 
132
 
 
133
 
 
134
 
 
135
 
 
136