src/gui/main_win.h
author deba
Thu, 19 May 2005 11:49:42 +0000
changeset 1429 4283998fb2be
permissions -rw-r--r--
Able to read edge from undirected edgeset
Graph reader and graph writer can resolve items by id.

It makes possible:

GraphReader<Graph> reader(std::cin, graph);

reader.readNodeMap....

NewEdgeSetAdaptor<Graph> edgeset(graph);
UndirEdgeSetReader<Graph> unir_edgeset_reader(reader, edgeset, reader);

reader.run();

It reads the graph and an additional edgeset in to the edgeset.
     1 // -*- C++ -*- //
     2 
     3 #ifndef MAIN_WIN_H
     4 #define MAIN_WIN_H
     5 
     6 #include <all_include.h>
     7 #include <mapstorage.h>
     8 #include <map_win.h>
     9 #include <libgnomecanvasmm.h>
    10 #include <libgnomecanvasmm/polygon.h>
    11 
    12 class MainWin : public Gtk::Window
    13 {
    14 public:
    15   MainWin(const std::string& title, Graph &, CoordinatesMap &, MapStorage &);
    16 
    17 protected:
    18   //Window of map-showing setup
    19   MapWin mapwin;
    20 
    21   //Member widgets:
    22   GraphDisplayerCanvas gd_canvas;
    23 
    24   //ActionGroup for menu
    25   Glib::RefPtr<Gtk::ActionGroup> ag;
    26 
    27   //UIManager for menu
    28   Glib::RefPtr<Gtk::UIManager> uim;
    29 
    30   //Container
    31   Gtk::VBox vbox;
    32 
    33   //Pops up map-setup window
    34   virtual void showMaps();
    35 
    36   //Exit
    37   virtual void quit();
    38 
    39   //Refit screen
    40   virtual void rezoom();
    41 
    42 };
    43 
    44 #endif //MAIN_WIN_H