Mercurial > hg > easyhg
comparison mainwindow.cpp @ 43:c32067cd19f8
* Some experiments towards a graph history view
author | Chris Cannam |
---|---|
date | Sun, 07 Nov 2010 19:59:54 +0000 |
parents | 9a89dedf260a |
children | bed7ab59f62e |
comparison
equal
deleted
inserted
replaced
42:9a89dedf260a | 43:c32067cd19f8 |
---|---|
117 void MainWindow::hgLog() | 117 void MainWindow::hgLog() |
118 { | 118 { |
119 if (runningAction == ACT_NONE) | 119 if (runningAction == ACT_NONE) |
120 { | 120 { |
121 QStringList params; | 121 QStringList params; |
122 params << "glog"; | 122 params << "log"; |
123 params << "--template"; | |
124 params << "id: {rev}:{node|short}\\nauthor: {author}\\nbranch: {branches}\\ndate: {date|isodate}\\nage: {date|age}\\nparents: {parents}\\ncomment: {desc|json}\\n\\n"; | |
123 | 125 |
124 runner -> startProc(getHgBinaryName(), workFolderPath, params); | 126 runner -> startProc(getHgBinaryName(), workFolderPath, params); |
125 runningAction = ACT_LOG; | 127 runningAction = ACT_LOG; |
126 } | 128 } |
127 } | 129 } |
1368 void MainWindow::createToolBars() | 1370 void MainWindow::createToolBars() |
1369 { | 1371 { |
1370 fileToolBar = addToolBar(tr("File")); | 1372 fileToolBar = addToolBar(tr("File")); |
1371 fileToolBar -> setIconSize(QSize(MY_ICON_SIZE, MY_ICON_SIZE)); | 1373 fileToolBar -> setIconSize(QSize(MY_ICON_SIZE, MY_ICON_SIZE)); |
1372 fileToolBar -> addAction(settingsAct); | 1374 fileToolBar -> addAction(settingsAct); |
1373 fileToolBar -> addAction(exitAct); | 1375 fileToolBar -> addAction(hgStatAct); |
1374 fileToolBar -> addSeparator(); | 1376 fileToolBar -> addSeparator(); |
1375 fileToolBar -> addAction(hgChgSetDiffAct); | 1377 fileToolBar -> addAction(hgChgSetDiffAct); |
1376 fileToolBar -> setMovable(false); | 1378 fileToolBar -> setMovable(false); |
1377 | 1379 |
1378 repoToolBar = addToolBar(tr(REPOMENU_TITLE)); | 1380 repoToolBar = addToolBar(tr(REPOMENU_TITLE)); |
1383 repoToolBar -> setMovable(false); | 1385 repoToolBar -> setMovable(false); |
1384 | 1386 |
1385 workFolderToolBar = addToolBar(tr(WORKFOLDERMENU_TITLE)); | 1387 workFolderToolBar = addToolBar(tr(WORKFOLDERMENU_TITLE)); |
1386 addToolBar(Qt::LeftToolBarArea, workFolderToolBar); | 1388 addToolBar(Qt::LeftToolBarArea, workFolderToolBar); |
1387 workFolderToolBar -> setIconSize(QSize(MY_ICON_SIZE, MY_ICON_SIZE)); | 1389 workFolderToolBar -> setIconSize(QSize(MY_ICON_SIZE, MY_ICON_SIZE)); |
1388 workFolderToolBar->addAction(hgStatAct); | |
1389 workFolderToolBar->addSeparator(); | 1390 workFolderToolBar->addSeparator(); |
1390 workFolderToolBar->addAction(hgFileDiffAct); | 1391 workFolderToolBar->addAction(hgFileDiffAct); |
1391 workFolderToolBar->addAction(hgFolderDiffAct); | 1392 workFolderToolBar->addAction(hgFolderDiffAct); |
1392 workFolderToolBar->addSeparator(); | 1393 workFolderToolBar->addSeparator(); |
1393 workFolderToolBar->addAction(hgRevertAct); | 1394 workFolderToolBar->addAction(hgRevertAct); |