all_include.h
author hegyi
Wed, 29 Jun 2005 19:44:30 +0000
branchgui
changeset 31 66e85f44a66f
parent 23 d0e4ac77bafe
child 32 1f45545f124c
permissions -rw-r--r--
Uh, long comment arrives... Zoom update does not happen after editorial steps. Nodes initial color is light blue, if there is any item under them. Strange node-text relations disappeared. Initial values of new items are given now in a more common way. The wood-cutter way of handling default values of properties is now changed.
     1 // -*- C++ -*- //
     2 
     3 #ifndef ALL_INCLUDE_H
     4 #define ALL_INCLUDE_H
     5 
     6 #include <fstream>
     7 #include <iostream>
     8 
     9 #include <vector>
    10 
    11 #include <lemon/list_graph.h>
    12 #include <lemon/graph_reader.h>
    13 #include <lemon/graph_writer.h>
    14 #include <lemon/graph_utils.h>
    15 #include <lemon/maps.h>
    16 #include <lemon/error.h>
    17 #include <lemon/xy.h>
    18 
    19 enum {E_WIDTH, E_COLOR, E_TEXT, EDGE_PROPERTY_NUM}; // edge properties;
    20 enum {N_RADIUS, N_COLOR, N_TEXT, NODE_PROPERTY_NUM}; // node properties;
    21 enum {MOVE, CREATE_NODE, CREATE_EDGE, ERASER, EDGE_MAP_EDIT, TOOL_NUM}; // tools;
    22 #define RANGE 3
    23 #define WIN_WIDTH 900
    24 #define WIN_HEIGHT 600
    25 
    26 
    27 #ifndef MAIN_PART
    28 extern std::vector <std::string> edge_property_strings;
    29 extern std::vector <double> edge_property_defaults;
    30 extern std::vector <std::string> node_property_strings;
    31 extern std::vector <double> node_property_defaults;
    32 #endif //MAIN_PART
    33 
    34 using namespace lemon;
    35 
    36 typedef xy<double> Coordinates;
    37 typedef ListGraph Graph;
    38 typedef Graph::NodeMap<Coordinates> CoordinatesMap;
    39 typedef Graph::Node Node;
    40 typedef Graph::EdgeIt EdgeIt;
    41 typedef Graph::NodeIt NodeIt;
    42 
    43 #endif // ALL_INCLUDE_H