eps_win.cc
changeset 201 879e47e5b731
parent 198 d6cc0579b94b
equal deleted inserted replaced
3:f70620986d32 4:95ced8d7bc3b
    29     hide();
    29     hide();
    30   }
    30   }
    31   return true;
    31   return true;
    32 }
    32 }
    33 
    33 
    34 EpsWin::EpsWin(const std::string& title, std::vector<std::string> nml):Gtk::Dialog(title, true, true)
    34 EpsWin::EpsWin(const std::string& title, std::vector<std::string> n_nml, std::vector<std::string> s_nml):Gtk::Dialog(title, true, true)
    35 {
    35 {
    36   set_default_size(200, 50);
    36   set_default_size(200, 50);
    37 
    37 
    38   set_resizable(false);
    38   set_resizable(false);
    39 
    39 
    55     {
    55     {
    56       options[i]=new Gtk::CheckButton(labels[i]);
    56       options[i]=new Gtk::CheckButton(labels[i]);
    57       (*table).attach(*(options[i]),0,1,i,i+1,Gtk::FILL,Gtk::SHRINK,10,3);
    57       (*table).attach(*(options[i]),0,1,i,i+1,Gtk::FILL,Gtk::SHRINK,10,3);
    58     }
    58     }
    59 
    59 
    60   mapselector=new MapSelector(nml, "", "Nodeshapes", false);
    60   mapselector=new MapSelector(n_nml, s_nml, "", "Nodeshapes", false, true, NUM);
    61   mapselector->signal_newmapwin_needed().connect(sigc::mem_fun(*this, &EpsWin::newMapWinNeeded));
    61   mapselector->signal_newmapwin_needed().connect(sigc::mem_fun(*this, &EpsWin::newMapWinNeeded));
    62 
    62 
    63   hbox.pack_start(*(new Gtk::Label("Filename")));
    63   hbox.pack_start(*(new Gtk::Label("Filename")));
    64   hbox.pack_start(name);
    64   hbox.pack_start(name);
    65 
    65 
   102 void EpsWin::newMapWinNeeded(bool isitedge)
   102 void EpsWin::newMapWinNeeded(bool isitedge)
   103 {
   103 {
   104   signal_new_map.emit(false);
   104   signal_new_map.emit(false);
   105 }
   105 }
   106 
   106 
   107 void EpsWin::registerNewNodeMap(std::string newmapname)
   107 void EpsWin::registerNewNodeMap(std::string newmapname, MapValue::Type type)
   108 {
   108 {
   109     mapselector->append_text((Glib::ustring)newmapname);
   109     mapselector->append_text((Glib::ustring)newmapname, type);
   110 }
   110 }