// -*- C++ -*- // #ifndef ALL_INCLUDE_H #define ALL_INCLUDE_H #include #include #include #include #include #include #include #include #include #include enum {E_WIDTH, E_COLOR, E_TEXT, EDGE_PROPERTY_NUM}; // edge properties; enum {N_RADIUS, N_COLOR, N_TEXT, NODE_PROPERTY_NUM}; // node properties; enum {MOVE, CREATE_NODE, CREATE_EDGE, ERASER, EDGE_MAP_EDIT, NODE_MAP_EDIT, TOOL_NUM}; // tools; #define RANGE 3 #define WIN_WIDTH 900 #define WIN_HEIGHT 600 #define MIN_EDGE_WIDTH 2 #define MAX_EDGE_WIDTH 40 #define MIN_NODE_RADIUS 2 #define MAX_NODE_RADIUS 80 #ifndef MAIN_PART extern std::vector edge_property_strings; extern std::vector edge_property_defaults; extern std::vector node_property_strings; extern std::vector node_property_defaults; extern int longest_property_string_length; #endif //MAIN_PART using namespace lemon; typedef xy XY; typedef ListGraph Graph; typedef Graph::Node Node; typedef Graph::Edge Edge; typedef Graph::EdgeIt EdgeIt; typedef Graph::InEdgeIt InEdgeIt; typedef Graph::OutEdgeIt OutEdgeIt; typedef Graph::NodeIt NodeIt; const std::string prog_name = "LEMON Graph Editor"; #endif // ALL_INCLUDE_H