comparison filestatuswidget.h @ 106:729438d70af8

* Retrieve and store current branch and heads; some refactoring
author Chris Cannam
date Thu, 25 Nov 2010 17:54:35 +0000
parents 0bd32aedc6f6
children 1721c580c10e
comparison
equal deleted inserted replaced
105:1928f9b408e6 106:729438d70af8
38 void setLocalPath(QString p); 38 void setLocalPath(QString p);
39 39
40 QString remoteURL() const { return m_remoteURL; } 40 QString remoteURL() const { return m_remoteURL; }
41 void setRemoteURL(QString u); 41 void setRemoteURL(QString u);
42 42
43 QString branch() const { return m_branch; }
44 void setBranch(QString b);
45
43 FileStates fileStates() const { return m_fileStates; } 46 FileStates fileStates() const { return m_fileStates; }
44 void setFileStates(FileStates sp); 47 void setFileStates(FileStates sp);
45 48
46 bool haveChangesToCommit() const; 49 bool haveChangesToCommit() const;
47 bool haveSelection() const; 50 bool haveSelection() const;
70 QString m_localPath; 73 QString m_localPath;
71 QLabel *m_localPathLabel; 74 QLabel *m_localPathLabel;
72 75
73 QString m_remoteURL; 76 QString m_remoteURL;
74 QLabel *m_remoteURLLabel; 77 QLabel *m_remoteURLLabel;
75 78
79 QString m_branch;
80 QLabel *m_branchLabel;
81
76 FileStates m_fileStates; 82 FileStates m_fileStates;
77 QMap<FileStates::State, QString> m_simpleLabels; 83 QMap<FileStates::State, QString> m_simpleLabels;
78 QMap<FileStates::State, QString> m_descriptions; 84 QMap<FileStates::State, QString> m_descriptions;
79 QMap<FileStates::State, QListWidget *> m_stateListMap; 85 QMap<FileStates::State, QListWidget *> m_stateListMap;
80 QString m_highlightExplanation; 86 QString m_highlightExplanation;