src/gui/main_win.h
author deba
Wed, 18 May 2005 13:02:47 +0000
changeset 1427 14c75970840e
permissions -rw-r--r--
Two minor changes.

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