diff hgexpwidget.cpp @ 89:622da79c0f4f

* A bit more work on new Work (file status) widget
author Chris Cannam
date Tue, 23 Nov 2010 14:49:13 +0000
parents c5e34ed5b791
children b43355c2473a
line wrap: on
line diff
--- a/hgexpwidget.cpp	Tue Nov 23 11:33:15 2010 +0000
+++ b/hgexpwidget.cpp	Tue Nov 23 14:49:13 2010 +0000
@@ -107,11 +107,13 @@
     mainLayout -> addWidget(grpRemoteRepo, 1);
     mainLayout -> addWidget(grpLocalRepo, 8);
     mainLayout -> addWidget(grpWorkFolder, 12);
-    addTab(workPageWidget, tr("My work"));
+//!!!    addTab(workPageWidget, tr("My work"));
 
     // New work page
     fileStatusWidget = new FileStatusWidget;
-    addTab(fileStatusWidget, tr("My work (new)"));
+    fileStatusWidget->setLocalPath(workFolderPath);
+    fileStatusWidget->setRemoteURL(remoteRepo);
+    addTab(fileStatusWidget, tr("My work"));
 
     // History graph page
     historyGraphPageWidget = new QWidget;
@@ -238,6 +240,8 @@
 {
     statParser = StatParser(fileList);
 
+    fileStatusWidget->setStatParser(statParser);
+
     workFolderFileList-> clear();
     workFolderFileList -> addItems(fileList.split("\n"));
 }
@@ -407,6 +411,9 @@
     grpRemoteRepo -> setTitle(tr(REMOTE_REPO_STR) + remoteRepoPath);
     grpLocalRepo -> setTitle(tr(LOCAL_REPO_STR) + workFolderPath + getHgDirName());
     grpWorkFolder -> setTitle(tr(WORKFOLDER_STR) + workFolderPath);
+
+    fileStatusWidget->setLocalPath(workFolderPath);
+    fileStatusWidget->setRemoteURL(remoteRepoPath);
 }
 
 #define MERC_SHA1_MARKER_LEN 12