diff mainwindow.cpp @ 141:e6c6b88d19b9

* Start hooking up right-button menus on changeset & uncommitted items
author Chris Cannam
date Tue, 30 Nov 2010 17:56:11 +0000
parents a4044b4b3e35
children f61f032b06f9
line wrap: on
line diff
--- a/mainwindow.cpp	Tue Nov 30 14:59:52 2010 +0000
+++ b/mainwindow.cpp	Tue Nov 30 17:56:11 2010 +0000
@@ -69,6 +69,7 @@
 
     justMerged = false;
     hgTabs = new HgTabWidget((QWidget *) this, remoteRepoPath, workFolderPath);
+    connectTabsSignals();
     setCentralWidget(hgTabs);
 
     connect(hgTabs, SIGNAL(selectionChanged()),
@@ -1389,6 +1390,35 @@
     connect(hgServeAct, SIGNAL(triggered()), this, SLOT(hgServe()));
     connect(clearSelectionsAct, SIGNAL(triggered()), this, SLOT(clearSelections()));
 }
+
+void MainWindow::connectTabsSignals()
+{
+    connect(hgTabs, SIGNAL(commit()),
+            this, SLOT(hgCommit()));
+    
+    connect(hgTabs, SIGNAL(revert()),
+            this, SLOT(hgRevert()));
+    
+    connect(hgTabs, SIGNAL(diffWorkingFolder()),
+            this, SLOT(hgFolderDiff()));
+/*!!!!
+    connect(hgTabs, SIGNAL(updateTo(QString)),
+            this, SIGNAL(updateTo(QString)));
+
+    connect(hgTabs, SIGNAL(diffToCurrent(QString)),
+            this, SIGNAL(diffToCurrent(QString)));
+
+    connect(hgTabs, SIGNAL(diffToPrevious(QString)),
+            this, SIGNAL(diffToPrevious(QString)));
+
+    connect(hgTabs, SIGNAL(mergeFrom(QString)),
+            this, SIGNAL(mergeFrom(QString)));
+
+    connect(hgTabs, SIGNAL(tag(QString)),
+            this, SIGNAL(tag(QString)));
+*/
+}    
+
 /*!!!
 void MainWindow::tabChanged(int currTab)
 {