comparison 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
comparison
equal deleted inserted replaced
94:44ed7766d55a 95:d1be9712818a
28 #include <QVBoxLayout> 28 #include <QVBoxLayout>
29 #include <QCheckBox> 29 #include <QCheckBox>
30 #include <QLabel> 30 #include <QLabel>
31 #include <QTabWidget> 31 #include <QTabWidget>
32 32
33 #define NUM_STAT_FILE_TYPES 7
34
35 class FileStatusWidget; 33 class FileStatusWidget;
36 34
37 35
38 class HgExpWidget: public QTabWidget 36 class HgExpWidget: public QTabWidget
39 { 37 {
40 Q_OBJECT 38 Q_OBJECT
41 39
42 public: 40 public:
43 HgExpWidget(QWidget *parent, QString remoteRepo, QString workFolderPath, 41 HgExpWidget(QWidget *parent, QString remoteRepo, QString workFolderPath);
44 unsigned char viewFileTypesBits = DEFAULT_HG_STAT_BITS);
45 42
46 void updateWorkFolderFileList(QString fileList); 43 void updateWorkFolderFileList(QString fileList);
47 void updateLocalRepoHgLogList(QString hgLogList); 44 void updateLocalRepoHgLogList(QString hgLogList);
48 void setWorkFolderAndRepoNames(QString workFolderPath, QString remoteRepoPath); 45 void setWorkFolderAndRepoNames(QString workFolderPath, QString remoteRepoPath);
49 46
50 FileStates getFileStates() { return fileStates; } 47 FileStates getFileStates() { return fileStates; }
51 48
52 bool canCommit() const; 49 bool canCommit() const;
53 bool canAdd() const; 50 bool canAdd() const;
54 bool canRemove() const; 51 bool canRemove() const;
55 bool canDoFolderDiff() const; 52 bool canDoDiff() const;
53
54 QStringList getAllSelectedFiles() const;
55 QStringList getSelectedCommittableFiles() const;
56 QStringList getSelectedAddableFiles() const;
57 QStringList getSelectedRemovableFiles() const;
58
59 signals:
60 void selectionChanged();
56 61
57 public slots: 62 public slots:
58 void clearSelections(); 63 void clearSelections();
59 64
60 private: 65 private: