1.1 --- a/gui/main_win.cc Thu Jun 09 21:49:48 2005 +0000
1.2 +++ b/gui/main_win.cc Fri Jun 10 11:58:03 2005 +0000
1.3 @@ -1,7 +1,7 @@
1.4 #include <main_win.h>
1.5
1.6 MainWin::MainWin(const std::string& title, Graph & graph, CoordinatesMap & cm,
1.7 - MapStorage & ms):mapwin("Map Setup", ms, gd_canvas),gd_canvas(graph, cm, ms)
1.8 + MapStorage & ms):mapwin("Map Setup", ms, gd_canvas),editwin("Editorial Window", gd_canvas),gd_canvas(graph, cm, ms)
1.9 {
1.10 set_title (title);
1.11 set_default_size(WIN_WIDTH,WIN_HEIGHT);
1.12 @@ -34,6 +34,8 @@
1.13 ag->add( Gtk::Action::create("ShowMenu", "_Show") );
1.14 ag->add( Gtk::Action::create("ShowMaps", "_Maps"),
1.15 sigc::mem_fun(*this, &MainWin::showMaps));
1.16 + ag->add( Gtk::Action::create("ShowEditorials", "_Editorials"),
1.17 + sigc::mem_fun(*this, &MainWin::showEditorials));
1.18
1.19 uim=Gtk::UIManager::create();
1.20 uim->insert_action_group(ag);
1.21 @@ -60,6 +62,7 @@
1.22 " </menu>"
1.23 " <menu action='ShowMenu'>"
1.24 " <menuitem action='ShowMaps'/>"
1.25 + " <menuitem action='ShowEditorials'/>"
1.26 " </menu>"
1.27 " </menubar>"
1.28 " <toolbar name='ToolBar'>"
1.29 @@ -107,6 +110,11 @@
1.30 mapwin.show();
1.31 }
1.32
1.33 +void MainWin::showEditorials()
1.34 +{
1.35 + editwin.show();
1.36 +}
1.37 +
1.38 void MainWin::quit()
1.39 {
1.40 hide();