equal
deleted
inserted
replaced
410 void MainWin::createAlgoWin(int algoid) |
410 void MainWin::createAlgoWin(int algoid) |
411 { |
411 { |
412 AlgoWin * aw=new AlgoWin(algoid, tabnames); |
412 AlgoWin * aw=new AlgoWin(algoid, tabnames); |
413 aw->signal_closing().connect(sigc::mem_fun(*this, &MainWin::deRegisterAlgoWin)); |
413 aw->signal_closing().connect(sigc::mem_fun(*this, &MainWin::deRegisterAlgoWin)); |
414 aw->signal_maplist_needed().connect(sigc::mem_fun(*this, &MainWin::updateAlgoWinMaps)); |
414 aw->signal_maplist_needed().connect(sigc::mem_fun(*this, &MainWin::updateAlgoWinMaps)); |
|
415 aw->signal_newmapwin_needed().connect(sigc::mem_fun(*this, &MainWin::createNewMapWinTabString)); |
415 aws.insert(aw); |
416 aws.insert(aw); |
416 aw->show(); |
417 aw->show(); |
417 } |
418 } |
418 |
419 |
419 void MainWin::updateAlgoWinTabs() |
420 void MainWin::updateAlgoWinTabs() |
454 if(active_tab!=-1) |
455 if(active_tab!=-1) |
455 { |
456 { |
456 NewMapWin * nmw=new NewMapWin("Create New Map - "+tabnames[active_tab], *(tabs[active_tab])); |
457 NewMapWin * nmw=new NewMapWin("Create New Map - "+tabnames[active_tab], *(tabs[active_tab])); |
457 nmw->show(); |
458 nmw->show(); |
458 } |
459 } |
|
460 } |
|
461 |
|
462 void MainWin::createNewMapWinTabString(std::string tabname, bool itisedge) |
|
463 { |
|
464 int i=0; |
|
465 for(;((i<tabnames.size())&&(tabnames[i]!=tabname));i++) |
|
466 { |
|
467 } |
|
468 createNewMapWinAfterSignal(tabs[i], itisedge); |
459 } |
469 } |
460 |
470 |
461 void MainWin::createNewMapWinAfterSignal(NoteBookTab * nbt, bool itisedge) |
471 void MainWin::createNewMapWinAfterSignal(NoteBookTab * nbt, bool itisedge) |
462 { |
472 { |
463 std::vector<NoteBookTab*>::iterator nbti=tabs.begin(); |
473 std::vector<NoteBookTab*>::iterator nbti=tabs.begin(); |