Commit 33b12dbf authored by roangel's avatar roangel
Browse files

removed comments, prepared to merge

parent d3d99396
......@@ -63,12 +63,6 @@ int MainGUIWindow::getTabIndexFromName(QString name)
void MainGUIWindow::doNumCrazyFlyZonesChanged(int n)
{
// FIXME: when we load CF Zones from database, more than one at a time. Change way of updating tabs!
// Maybe remove everything and create new ones always?
// PROBLEM is related to removing of the last tab, not to anything else. WHY?
// tabs number management, maybe do it in a different way so we dont have to remove and add everything?
// first check if size of tabs is greater than size of vector or viceversa. Have we removed or added a zone?
......@@ -107,40 +101,6 @@ void MainGUIWindow::doNumCrazyFlyZonesChanged(int n)
connect(widget, SIGNAL(centerButtonClickedSignal(int)), this, SLOT(centerViewIndex(int)));
}
// for(int index = 0; index < ui->tabWidget->count(); index++)
// {
// // ui->tabWidget->removeTab(index);
// ui->tabWidget->widget(index)->deleteLater();
// }
// // unlink all?
// // cf_linker->clear_all_links();
// ui->tabWidget->clear();
// for(int i = 0; i < scene->crazyfly_zones.size(); i++)
// {
// ROS_INFO("inside for loop");
// QString qstr = "CrazyFly ";
// int CF_index = scene->crazyfly_zones[i]->getIndex();
// qstr.append(QString::number(CF_index + 1));
// crazyFlyZoneTab* widget = new crazyFlyZoneTab(i);
// // ui->tabWidget->insertTab(i, widget, qstr);
// ui->tabWidget->addTab(widget, qstr);
// ROS_INFO("Added tab");
// connect(widget, SIGNAL(centerButtonClickedSignal(int)), this, SLOT(centerViewIndex(int)));
// }
// for(int i = 0; i < n; i++)
// {
// QString qstr = "Crazyfly ";
// qstr.append(QString::number(i+1));
// crazyFlyZoneTab* widget = new crazyFlyZoneTab(i);
// ui->tabWidget->insertTab(i, widget, qstr);
// connect(widget, SIGNAL(centerButtonClickedSignal(int)), this, SLOT(centerViewIndex(int)));
// }
updateComboBoxesCFZones();
}
......
2,CF1,1,0,0.52,0.41,-0.2,1.56,1.55,2
1,CF2,3,1,-1.15,-0.69,-0.2,0.94,0.46,2
1,CF2,2,1,-1.62398,-1.65338,-0.2,1.70872,0.674222,2
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment