main_win.h
author ladanyi
Mon, 23 May 2005 04:48:14 +0000
branchgui
changeset 3 bd60a2909c53
child 4 e099638ff236
permissions -rw-r--r--
trunk/src/* move to trunk/
     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