comparison filestatuswidget.h @ 287:3fbafca196e4 status_outside_tabs

Move work-folder state area outside tabs widget
author Chris Cannam
date Mon, 21 Feb 2011 11:07:21 +0000
parents bc39f2e28da8
children 5fa5c908ca00
comparison
equal deleted inserted replaced
286:3b0ff2b96c53 287:3fbafca196e4
27 class QListWidget; 27 class QListWidget;
28 class QPushButton; 28 class QPushButton;
29 class QFileInfo; 29 class QFileInfo;
30 class QCheckBox; 30 class QCheckBox;
31 31
32 class WorkStatusWidget;
33
34 class FileStatusWidget : public QWidget 32 class FileStatusWidget : public QWidget
35 { 33 {
36 Q_OBJECT 34 Q_OBJECT
37 35
38 public: 36 public:
39 FileStatusWidget(QWidget *parent = 0); 37 FileStatusWidget(QWidget *parent = 0);
40 ~FileStatusWidget(); 38 ~FileStatusWidget();
41 39
42 QString localPath() const; 40 QString localPath() const;
43 void setLocalPath(QString p); 41 void setLocalPath(QString p);
44
45 QString remoteURL() const;
46 void setRemoteURL(QString u);
47
48 QString state() const;
49 void setState(QString b);
50 42
51 FileStates fileStates() const; 43 FileStates fileStates() const;
52 void setFileStates(FileStates sp); 44 void setFileStates(FileStates sp);
53 45
54 bool haveChangesToCommit() const; 46 bool haveChangesToCommit() const;
81 73
82 private slots: 74 private slots:
83 void itemSelectionChanged(); 75 void itemSelectionChanged();
84 76
85 private: 77 private:
86 WorkStatusWidget *m_workStatus; 78 QString m_localPath;
87
88 QLabel *m_noModificationsLabel; 79 QLabel *m_noModificationsLabel;
89 80
90 QCheckBox *m_showAllFiles; 81 QCheckBox *m_showAllFiles;
91 82
92 FileStates m_fileStates; 83 FileStates m_fileStates;