diff -r a979fcdda073 -r 8e27998e9b1d gui/graph-displayer.cc --- a/gui/graph-displayer.cc Wed Jun 21 08:35:23 2006 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,98 +0,0 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#include "all_include.h" -#include "mapstorage.h" -#include "main_win.h" -#include -#include - -#include - -#define MAIN_PART - -std::vector edge_property_strings; -std::vector edge_property_defaults; -std::vector node_property_strings; -std::vector node_property_defaults; -int longest_property_string_length; - -int main(int argc, char *argv[]) -{ - setlocale(LC_ALL, ""); - bindtextdomain(PACKAGE, LOCALEDIR); - bind_textdomain_codeset(PACKAGE, "UTF-8"); - textdomain(PACKAGE); - - //initializing - - edge_property_strings.resize(EDGE_PROPERTY_NUM); - edge_property_strings[E_WIDTH]="Edge Width"; - edge_property_strings[E_COLOR]="Edge Color"; - edge_property_strings[E_TEXT]="Edge Text"; - - edge_property_defaults.resize(EDGE_PROPERTY_NUM); - edge_property_defaults[E_WIDTH]=10.0; - edge_property_defaults[E_COLOR]=100; - edge_property_defaults[E_TEXT]=0; - - node_property_strings.resize(NODE_PROPERTY_NUM); - node_property_strings[N_RADIUS]="Node Radius"; - node_property_strings[N_COLOR]="Node Color"; - node_property_strings[N_TEXT]="Node Text"; - - node_property_defaults.resize(NODE_PROPERTY_NUM); - node_property_defaults[N_RADIUS]=20.0; - node_property_defaults[N_COLOR]=100; - node_property_defaults[N_TEXT]=0; - - longest_property_string_length=0; - for(int i=0;ilongest_property_string_length) - { - longest_property_string_length=j; - } - } - for(int i=0;ilongest_property_string_length) - { - longest_property_string_length=j; - } - } - - - //initializing GUI - - Gnome::Canvas::init(); - Gtk::Main app(argc, argv); - - MainWin mytab; - -// if ((argc == 2) && (Glib::file_test(argv[1], Glib::FILE_TEST_IS_REGULAR))) -// { -// mytab.readFile(argv[1]); -// } - if(argc>=2) - { - for(int i=1;i