gui/all_include.h
author hegyi
Thu, 21 Jul 2005 19:28:29 +0000
changeset 1579 ed7da82bbecf
parent 1512 e54392395480
child 1581 9bb83c7f479b
permissions -rw-r--r--
Edge and nodemap edition is done.
ladanyi@1442
     1
// -*- C++ -*- //
ladanyi@1442
     2
ladanyi@1442
     3
#ifndef ALL_INCLUDE_H
ladanyi@1442
     4
#define ALL_INCLUDE_H
ladanyi@1442
     5
ladanyi@1442
     6
#include <fstream>
ladanyi@1442
     7
#include <iostream>
ladanyi@1442
     8
ladanyi@1442
     9
#include <vector>
ladanyi@1442
    10
ladanyi@1442
    11
#include <lemon/list_graph.h>
ladanyi@1442
    12
#include <lemon/graph_reader.h>
ladanyi@1442
    13
#include <lemon/graph_writer.h>
ladanyi@1442
    14
#include <lemon/graph_utils.h>
ladanyi@1442
    15
#include <lemon/maps.h>
ladanyi@1442
    16
#include <lemon/error.h>
ladanyi@1442
    17
#include <lemon/xy.h>
ladanyi@1442
    18
hegyi@1512
    19
enum {E_WIDTH, E_COLOR, E_TEXT, EDGE_PROPERTY_NUM}; // edge properties;
hegyi@1512
    20
enum {N_RADIUS, N_COLOR, N_TEXT, NODE_PROPERTY_NUM}; // node properties;
hegyi@1550
    21
enum {MOVE, CREATE_NODE, CREATE_EDGE, ERASER, EDGE_MAP_EDIT, NODE_MAP_EDIT, TOOL_NUM}; // tools;
ladanyi@1442
    22
#define RANGE 3
ladanyi@1442
    23
#define WIN_WIDTH 900
ladanyi@1442
    24
#define WIN_HEIGHT 600
ladanyi@1442
    25
ladanyi@1442
    26
ladanyi@1442
    27
#ifndef MAIN_PART
hegyi@1512
    28
extern std::vector <std::string> edge_property_strings;
hegyi@1512
    29
extern std::vector <double> edge_property_defaults;
hegyi@1512
    30
extern std::vector <std::string> node_property_strings;
hegyi@1512
    31
extern std::vector <double> node_property_defaults;
ladanyi@1442
    32
#endif //MAIN_PART
ladanyi@1442
    33
ladanyi@1442
    34
using namespace lemon;
ladanyi@1442
    35
ladanyi@1442
    36
typedef xy<double> Coordinates;
ladanyi@1442
    37
typedef ListGraph Graph;
ladanyi@1442
    38
typedef Graph::NodeMap<Coordinates> CoordinatesMap;
ladanyi@1442
    39
typedef Graph::Node Node;
ladanyi@1442
    40
typedef Graph::EdgeIt EdgeIt;
ladanyi@1442
    41
typedef Graph::NodeIt NodeIt;
ladanyi@1442
    42
ladanyi@1442
    43
#endif // ALL_INCLUDE_H