map_win.cc
branchgui
changeset 91 55cf06f14981
parent 85 0b2217328320
child 94 adfdc2f70548
equal deleted inserted replaced
17:bc8a3678cdf1 18:421a2fa32530
     8     hide();
     8     hide();
     9   }
     9   }
    10   return true;
    10   return true;
    11 }
    11 }
    12 
    12 
    13 MapWin::MapWin(const std::string& title, MapStorage & mapst, GraphDisplayerCanvas & grdispc, NewMapWin & newmapwin):gdc(grdispc),ms(mapst), nmw(newmapwin)
    13 MapWin::MapWin(const std::string& title, MapStorage & mapst, GraphDisplayerCanvas & grdispc):gdc(grdispc),ms(mapst)
    14 {
    14 {
    15   set_title(title);
    15   set_title(title);
    16   set_default_size(200, 50);
    16   set_default_size(200, 50);
    17 
    17 
    18   signal_key_press_event().connect(sigc::mem_fun(*this, &MapWin::closeIfEscapeIsPressed));
    18   signal_key_press_event().connect(sigc::mem_fun(*this, &MapWin::closeIfEscapeIsPressed));
    21 
    21 
    22   table=new Gtk::Table(EDGE_PROPERTY_NUM, 1, false);
    22   table=new Gtk::Table(EDGE_PROPERTY_NUM, 1, false);
    23 
    23 
    24   for(int i=0;i<EDGE_PROPERTY_NUM;i++)
    24   for(int i=0;i<EDGE_PROPERTY_NUM;i++)
    25   {
    25   {
    26     e_combo_array[i]=new MapSelector(gdc, ms, nmw, i, true);
    26     e_combo_array[i]=new MapSelector(gdc, ms, i, true);
    27 
    27 
    28     (*table).attach((*(e_combo_array[i])),0,1,i,i+1,Gtk::SHRINK,Gtk::SHRINK,10,3);
    28     (*table).attach((*(e_combo_array[i])),0,1,i,i+1,Gtk::SHRINK,Gtk::SHRINK,10,3);
    29   }
    29   }
    30 
    30 
    31   vbox.pack_start(*(new Gtk::Label("Edge properties")));
    31   vbox.pack_start(*(new Gtk::Label("Edge properties")));
    38 
    38 
    39   table=new Gtk::Table(NODE_PROPERTY_NUM, 1, false);
    39   table=new Gtk::Table(NODE_PROPERTY_NUM, 1, false);
    40 
    40 
    41   for(int i=0;i<NODE_PROPERTY_NUM;i++)
    41   for(int i=0;i<NODE_PROPERTY_NUM;i++)
    42   {
    42   {
    43     n_combo_array[i]=new MapSelector(gdc, ms, nmw, i, false);
    43     n_combo_array[i]=new MapSelector(gdc, ms, i, false);
    44 
    44 
    45     (*table).attach((*(n_combo_array[i])),0,1,i,i+1,Gtk::SHRINK,Gtk::SHRINK,10,3);
    45     (*table).attach((*(n_combo_array[i])),0,1,i,i+1,Gtk::SHRINK,Gtk::SHRINK,10,3);
    46   }
    46   }
    47 
    47 
    48   add(vbox);
    48   add(vbox);