gui/all_include.h
author hegyi
Thu, 28 Jul 2005 14:31:32 +0000
changeset 1598 739df601808d
parent 1581 9bb83c7f479b
child 1599 c2f95eac652b
permissions -rw-r--r--
Redundant functions from main_win disappeared, entry is now bigger, properties refresh upon edition, edgewidth is zoomable.
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
hegyi@1585
    25
#define ALMOST_ONE 0.9999999999
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