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