COIN-OR::LEMON - Graph Library

Changeset 184:4e8704aae278 in glemon-0.x for main_win.cc


Ignore:
Timestamp:
01/10/07 15:37:46 (17 years ago)
Author:
Akos Ladanyi
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@3125
Message:

Added support for setting the background form an image file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main_win.cc

    r174 r184  
    2323#include "main_win.h"
    2424#include "guipixbufs.h"
     25#include "background_chooser_dialog.h"
    2526
    2627#include "i18n.h"
     
    114115  ag->add( Gtk::Action::create("ViewZoom100", Gtk::Stock::ZOOM_100),
    115116      sigc::mem_fun(*this, &MainWin::zoom100));
     117  ag->add( Gtk::Action::create("SetBackground", _("Set Background...")),
     118            sigc::mem_fun(*this, &MainWin::createBackgroundChooser));
    116119 
    117120  ag->add( Gtk::Action::create("ShowMenu", _("_Show")) );
     
    174177      "      <menuitem action='ViewZoom100' />"
    175178      "      <menuitem action='ViewZoomFit' />"
     179      "      <menuitem action='SetBackground' />"
    176180      "    </menu>"
    177181      "    <menu action='ShowMenu'>"
     
    581585  tabs[active_tab]->reDesignGraph();
    582586}
     587
     588void MainWin::createBackgroundChooser()
     589{
     590  BackgroundChooserDialog dialog(&(tabs[active_tab]->mapstorage));
     591  dialog.run();
     592}
Note: See TracChangeset for help on using the changeset viewer.