Changeset 201:879e47e5b731 in glemon-0.x for main_win.cc
- Timestamp:
- 01/02/08 22:03:09 (16 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@3431
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main_win.cc
r194 r201 21 21 #endif 22 22 23 #include <main_win.h> 24 #include <guipixbufs.h> 25 #include <background_chooser_dialog.h> 23 #include "main_win.h" 24 #include "guipixbufs.h" 25 #include "save_details_dialog.h" 26 #include "background_chooser_dialog.h" 26 27 27 28 #include <mapstorage.h> … … 115 116 ag->add( Gtk::Action::create("FileSaveAs", Gtk::Stock::SAVE_AS), 116 117 sigc::mem_fun(*this, &MainWin::saveFileAs)); 118 ag->add( Gtk::Action::create("SaveDetails", _("Save _Details...")), 119 sigc::mem_fun(*this, &MainWin::createSaveDetailsDialog)); 117 120 ag->add( Gtk::Action::create("Close", Gtk::Stock::CLOSE), 118 121 sigc::mem_fun(*this, &MainWin::closeTab)); … … 161 164 sigc::bind( sigc::mem_fun ( *this, &MainWin::changeEditorialTool ), 4) ); 162 165 163 ag->add( Gtk::Action::create("AddMap", Gtk::StockID("gd-newmap") ),166 ag->add( Gtk::Action::create("AddMap", Gtk::StockID("gd-newmap"), "New map"), 164 167 sigc::mem_fun ( *this , &MainWin::createNewMapWin ) ); 165 168 … … 167 170 sigc::mem_fun ( *this , &MainWin::reDesignGraph ) ); 168 171 169 ag->add( Gtk::Action::create("Eps", Gtk::StockID("gd-eps") ),172 ag->add( Gtk::Action::create("Eps", Gtk::StockID("gd-eps"), "Export to EPS"), 170 173 sigc::mem_fun ( *this , &MainWin::exportToEPS ) ); 171 174 … … 186 189 " <menuitem action='FileSave'/>" 187 190 " <menuitem action='FileSaveAs'/>" 191 " <menuitem action='SaveDetails'/>" 188 192 " <menuitem action='Close'/>" 189 193 " <menuitem action='Quit'/>" … … 371 375 if(active_tab!=-1) 372 376 { 373 if (tabs[active_tab]->mapstorage-> modified)377 if (tabs[active_tab]->mapstorage->getModified()) 374 378 { 375 379 Gtk::MessageDialog mdialog(_("<b>Save changes before closing?</b>"), true, … … 629 633 } 630 634 635 void MainWin::createSaveDetailsDialog() 636 { 637 SaveDetailsDialog dialog(tabs[active_tab]->mapstorage); 638 dialog.run(); 639 } 640 631 641 void MainWin::exportToEPS() 632 642 {
Note: See TracChangeset
for help on using the changeset viewer.