Added missing include.
3 * This file is a part of LEMON, a generic C++ optimization library
5 * Copyright (C) 2003-2006
6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
7 * (Egervary Research Group on Combinatorial Optimization, EGRES).
9 * Permission to use, modify and distribute this software is granted
10 * provided that this copyright notice appears in all copies. For
11 * precise terms see the accompanying LICENSE file.
13 * This software is provided "AS IS" with no warranty of any kind,
14 * express or implied, and with no claim as to its suitability for any
23 #include "all_include.h"
25 #include <libgnomecanvasmm.h>
26 #include <libgnomecanvasmm/polygon.h>
32 std::vector <std::string> edge_property_strings;
33 std::vector <double> edge_property_defaults;
34 std::vector <std::string> node_property_strings;
35 std::vector <double> node_property_defaults;
36 int longest_property_string_length;
38 int main(int argc, char *argv[])
40 setlocale(LC_ALL, "");
41 bindtextdomain(PACKAGE, LOCALEDIR);
42 bind_textdomain_codeset(PACKAGE, "UTF-8");
47 edge_property_strings.resize(EDGE_PROPERTY_NUM);
48 edge_property_strings[E_WIDTH]="Edge Width";
49 edge_property_strings[E_COLOR]="Edge Color";
50 edge_property_strings[E_TEXT]="Edge Text";
52 edge_property_defaults.resize(EDGE_PROPERTY_NUM);
53 edge_property_defaults[E_WIDTH]=10.0;
54 edge_property_defaults[E_COLOR]=100;
55 edge_property_defaults[E_TEXT]=0;
57 node_property_strings.resize(NODE_PROPERTY_NUM);
58 node_property_strings[N_RADIUS]="Node Radius";
59 node_property_strings[N_COLOR]="Node Color";
60 node_property_strings[N_TEXT]="Node Text";
62 node_property_defaults.resize(NODE_PROPERTY_NUM);
63 node_property_defaults[N_RADIUS]=20.0;
64 node_property_defaults[N_COLOR]=100;
65 node_property_defaults[N_TEXT]=0;
67 longest_property_string_length=0;
68 for(int i=0;i<EDGE_PROPERTY_NUM;i++)
70 int j=edge_property_strings[i].size();
71 if(j>longest_property_string_length)
73 longest_property_string_length=j;
76 for(int i=0;i<NODE_PROPERTY_NUM;i++)
78 int j=node_property_strings[i].size();
79 if(j>longest_property_string_length)
81 longest_property_string_length=j;
88 Gnome::Canvas::init();
89 Gtk::Main app(argc, argv);
93 // if ((argc == 2) && (Glib::file_test(argv[1], Glib::FILE_TEST_IS_REGULAR)))
95 // mytab.readFile(argv[1]);
99 for(int i=1;i<argc;i++)
101 if(Glib::file_test(argv[i], Glib::FILE_TEST_IS_REGULAR))
103 mytab.readFile(argv[i]);