map_win.cc
changeset 172 fc1e478697d3
parent 146 afd1d8bfcccd
child 174 95872af46fc4
equal deleted inserted replaced
25:6e95c577db97 26:eb2ac5a4a301
    17   set_default_size(200, 50);
    17   set_default_size(200, 50);
    18 
    18 
    19   set_resizable(false);
    19   set_resizable(false);
    20 
    20 
    21   signal_key_press_event().connect(sigc::mem_fun(*this, &MapWin::closeIfEscapeIsPressed));
    21   signal_key_press_event().connect(sigc::mem_fun(*this, &MapWin::closeIfEscapeIsPressed));
       
    22 
       
    23   mytab.signal_title_ch().connect(sigc::mem_fun(*this, &MapWin::set_title));
    22 
    24 
    23   e_combo_array=new MapSelector * [EDGE_PROPERTY_NUM];
    25   e_combo_array=new MapSelector * [EDGE_PROPERTY_NUM];
    24 
    26 
    25   table=new Gtk::Table(EDGE_PROPERTY_NUM, 1, false);
    27   table=new Gtk::Table(EDGE_PROPERTY_NUM, 1, false);
    26 
    28 
    88 
    90 
    89   for(int i=0;i<NODE_PROPERTY_NUM;i++)
    91   for(int i=0;i<NODE_PROPERTY_NUM;i++)
    90   {
    92   {
    91     n_combo_array[i]->update_list(nml);
    93     n_combo_array[i]->update_list(nml);
    92   }
    94   }
       
    95 
       
    96   mytab.active_maps_needed();
    93 }
    97 }
    94 
    98 
    95 void MapWin::registerNewEdgeMap(std::string newmapname)
    99 void MapWin::registerNewEdgeMap(std::string newmapname)
    96 {
   100 {
    97   for(int i=0;i<EDGE_PROPERTY_NUM;i++)
   101   for(int i=0;i<EDGE_PROPERTY_NUM;i++)
   114 {
   118 {
   115   event=event;
   119   event=event;
   116   mytab.closeMapWin();
   120   mytab.closeMapWin();
   117   return true;
   121   return true;
   118 }
   122 }
       
   123 
       
   124 void MapWin::changeEntry(bool isitedge, int prop, std::string mapname)
       
   125 {
       
   126   if(isitedge)
       
   127     {
       
   128       e_combo_array[prop]->set_active_text(mapname);
       
   129     }
       
   130   else
       
   131     {
       
   132       n_combo_array[prop]->set_active_text(mapname);
       
   133     }
       
   134 }
       
   135 
       
   136 void MapWin::set_title(std::string tabname)
       
   137 {
       
   138   Gtk::Window::set_title("Map Setup - "+tabname);
       
   139 }