gui/all_include.h
author deba
Wed, 01 Mar 2006 10:25:30 +0000
changeset 1991 d7442141d9ef
parent 1731 616bc933c2bc
permissions -rw-r--r--
The graph adadptors can be alteration observed.
In most cases it uses the adapted graph alteration notifiers.
Only special case is now the UndirGraphAdaptor, where
we have to proxy the signals from the graph.

The SubBidirGraphAdaptor is removed, because it doest not
gives more feature than the EdgeSubGraphAdaptor<UndirGraphAdaptor<Graph>>.

The ResGraphAdaptor is based on this composition.
     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, NODE_MAP_EDIT, TOOL_NUM}; // tools;
    22 #define RANGE 3
    23 #define WIN_WIDTH 900
    24 #define WIN_HEIGHT 600
    25 #define MIN_EDGE_WIDTH 2
    26 #define MAX_EDGE_WIDTH 40
    27 #define MIN_NODE_RADIUS 2
    28 #define MAX_NODE_RADIUS 80
    29 
    30 #ifndef MAIN_PART
    31 extern std::vector <std::string> edge_property_strings;
    32 extern std::vector <double> edge_property_defaults;
    33 extern std::vector <std::string> node_property_strings;
    34 extern std::vector <double> node_property_defaults;
    35 extern int longest_property_string_length;
    36 #endif //MAIN_PART
    37 
    38 using namespace lemon;
    39 
    40 typedef xy<double> XY;
    41 typedef ListGraph Graph;
    42 typedef Graph::Node Node;
    43 typedef Graph::Edge Edge;
    44 typedef Graph::EdgeIt EdgeIt;
    45 typedef Graph::InEdgeIt InEdgeIt;
    46 typedef Graph::OutEdgeIt OutEdgeIt;
    47 typedef Graph::NodeIt NodeIt;
    48 
    49 const std::string prog_name = "LEMON Graph Editor";
    50 
    51 #endif // ALL_INCLUDE_H