4 ** Made by (Johnny Q. Hacker)
5 ** Login <solarion@johnathan>
7 ** Holds the SC graphing widget.
11 Copyright (C) 2008 Joseph Pingenot
13 This program is free software: you can redistribute it and/or modify
14 it under the terms of the GNU Affero General Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
18 This program is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU Affero General Public License for more details.
23 You should have received a copy of the GNU Affero General Public License
24 along with this program. If not, see <http://www.gnu.org/licenses/>.
26 ** Started on Thu Jul 17 11:03:27 2008 Johnny Q. Hacker
27 ** Last update Sun May 12 01:17:25 2002 Speed Blue
31 #include <graphwidget.h>
32 #include <matdb-dotcode.h>
34 int main(int argc, char *argv[])
39 GString *file = g_string_new("/usr/local/install/nanoSim/share/docos/nanoSim/matdb.txt");
41 struct matdb *mdb = read_matdb_dotcode(file, &err);
43 gtk_init (&argc, &argv);
47 window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
48 graph = graph_widget_new();
52 g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(gtk_main_quit), NULL);
54 gtk_container_add(GTK_CONTAINER(window), graph);
55 graph_add_point(graph_widget_get_graph(graph), 5, 3);
56 graph_add_point(graph_widget_get_graph(graph), 8, 12);
57 graph_add_point(graph_widget_get_graph(graph), 11, 48);
59 gtk_widget_show_all (window);