diff hgexpwidget.h @ 95:d1be9712818a

* Update actions appropriately when selections are changed
author Chris Cannam
date Wed, 24 Nov 2010 16:29:05 +0000
parents 44ed7766d55a
children
line wrap: on
line diff
--- a/hgexpwidget.h	Wed Nov 24 14:41:52 2010 +0000
+++ b/hgexpwidget.h	Wed Nov 24 16:29:05 2010 +0000
@@ -30,8 +30,6 @@
 #include <QLabel>
 #include <QTabWidget>
 
-#define NUM_STAT_FILE_TYPES 7
-
 class FileStatusWidget;
 
 
@@ -40,8 +38,7 @@
     Q_OBJECT
 
 public:
-    HgExpWidget(QWidget *parent, QString remoteRepo, QString workFolderPath,
-                unsigned char viewFileTypesBits = DEFAULT_HG_STAT_BITS);
+    HgExpWidget(QWidget *parent, QString remoteRepo, QString workFolderPath);
 
     void updateWorkFolderFileList(QString fileList);
     void updateLocalRepoHgLogList(QString hgLogList);
@@ -52,7 +49,15 @@
     bool canCommit() const;
     bool canAdd() const;
     bool canRemove() const;
-    bool canDoFolderDiff() const;
+    bool canDoDiff() const;
+
+    QStringList getAllSelectedFiles() const;
+    QStringList getSelectedCommittableFiles() const;
+    QStringList getSelectedAddableFiles() const;
+    QStringList getSelectedRemovableFiles() const;
+
+signals:
+    void selectionChanged();
 
 public slots:
     void clearSelections();