comparison mainwindow.cpp @ 128:fcaf09ee825d

* Show tags and current working copy parents in history graph
author Chris Cannam
date Mon, 29 Nov 2010 20:09:58 +0000
parents 758471b71721
children 4986642800f0
comparison
equal deleted inserted replaced
127:758471b71721 128:fcaf09ee825d
1244 case ACT_LOG_INCREMENTAL: 1244 case ACT_LOG_INCREMENTAL:
1245 hgTabs->addIncrementalLog(output); 1245 hgTabs->addIncrementalLog(output);
1246 break; 1246 break;
1247 1247
1248 case ACT_QUERY_PARENTS: 1248 case ACT_QUERY_PARENTS:
1249 {
1249 foreach (Changeset *cs, currentParents) delete cs; 1250 foreach (Changeset *cs, currentParents) delete cs;
1250 currentParents = Changeset::parseChangesets(output); 1251 currentParents = Changeset::parseChangesets(output);
1252 QStringList ids;
1253 foreach (Changeset *cs, currentParents) ids.push_back(cs->id());
1254 hgTabs->setCurrent(ids);
1255 }
1251 break; 1256 break;
1252 1257
1253 case ACT_QUERY_HEADS: 1258 case ACT_QUERY_HEADS:
1254 foreach (Changeset *cs, currentHeads) delete cs; 1259 foreach (Changeset *cs, currentHeads) delete cs;
1255 currentHeads = Changeset::parseChangesets(output); 1260 currentHeads = Changeset::parseChangesets(output);
1646 advancedMenu -> addSeparator(); 1651 advancedMenu -> addSeparator();
1647 advancedMenu -> addAction(hgServeAct); 1652 advancedMenu -> addAction(hgServeAct);
1648 1653
1649 helpMenu = menuBar()->addMenu(tr("Help")); 1654 helpMenu = menuBar()->addMenu(tr("Help"));
1650 helpMenu->addAction(aboutAct); 1655 helpMenu->addAction(aboutAct);
1651 helpMenu->addAction(aboutQtAct); 1656 //!!! helpMenu->addAction(aboutQtAct);
1652 } 1657 }
1653 1658
1654 void MainWindow::createToolBars() 1659 void MainWindow::createToolBars()
1655 { 1660 {
1656 fileToolBar = addToolBar(tr("File")); 1661 fileToolBar = addToolBar(tr("File"));