annotate hgexpwidget.h @ 92:06f4fffd5287

* Rename StatParser to FileStates; start thinking about selections
author Chris Cannam
date Wed, 24 Nov 2010 13:23:30 +0000
parents 879af4608c5e
children 44ed7766d55a
rev   line source
Chris@57 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@57 2
Chris@57 3 /*
Chris@57 4 EasyMercurial
Chris@57 5
Chris@57 6 Based on HgExplorer by Jari Korhonen
Chris@57 7 Copyright (c) 2010 Jari Korhonen
Chris@57 8 Copyright (c) 2010 Chris Cannam
Chris@57 9 Copyright (c) 2010 Queen Mary, University of London
Chris@57 10
Chris@57 11 This program is free software; you can redistribute it and/or
Chris@57 12 modify it under the terms of the GNU General Public License as
Chris@57 13 published by the Free Software Foundation; either version 2 of the
Chris@57 14 License, or (at your option) any later version. See the file
Chris@57 15 COPYING included with this distribution for more information.
Chris@57 16 */
Chris@57 17
jtkorhonen@0 18 #ifndef HGEXPWIDGET_H
jtkorhonen@0 19 #define HGEXPWIDGET_H
jtkorhonen@0 20
Chris@43 21 #include "changeset.h"
jtkorhonen@0 22 #include "common.h"
Chris@92 23 #include "filestates.h"
jtkorhonen@0 24
Chris@50 25 #include <QMenu>
Chris@50 26 #include <QListWidget>
Chris@50 27 #include <QGroupBox>
Chris@50 28 #include <QVBoxLayout>
Chris@50 29 #include <QCheckBox>
Chris@50 30 #include <QLabel>
Chris@88 31 #include <QTabWidget>
Chris@86 32
jtkorhonen@0 33 #define NUM_STAT_FILE_TYPES 7
jtkorhonen@0 34
Chris@88 35 class FileStatusWidget;
Chris@88 36
jtkorhonen@0 37
jtkorhonen@0 38 class HgExpWidget: public QTabWidget
jtkorhonen@0 39 {
jtkorhonen@0 40 Q_OBJECT
jtkorhonen@0 41
jtkorhonen@0 42 public:
jtkorhonen@0 43 HgExpWidget(QWidget *parent, QString remoteRepo, QString workFolderPath,
jtkorhonen@0 44 unsigned char viewFileTypesBits = DEFAULT_HG_STAT_BITS);
Chris@91 45
jtkorhonen@0 46 void updateWorkFolderFileList(QString fileList);
jtkorhonen@0 47 void updateLocalRepoHgLogList(QString hgLogList);
jtkorhonen@0 48 void setWorkFolderAndRepoNames(QString workFolderPath, QString remoteRepoPath);
jtkorhonen@0 49
Chris@92 50 FileStates getFileStates() { return fileStates; }
Chris@90 51
Chris@90 52 bool canCommit() const;
Chris@92 53 bool canAdd() const;
Chris@92 54 bool canRemove() const;
Chris@92 55 bool canDoFolderDiff() const;
jtkorhonen@0 56
jtkorhonen@0 57 private:
Chris@88 58 FileStatusWidget *fileStatusWidget;
Chris@88 59
Chris@91 60 QWidget *historyGraphPageWidget;
Chris@91 61 QWidget *historyGraphWidget;
Chris@91 62 QWidget *historyGraphPanner;
Chris@91 63 QWidget *historyPageWidget;
jtkorhonen@0 64
Chris@92 65 FileStates fileStates;
jtkorhonen@0 66
Chris@91 67 Changesets parseChangeSets(QString changeSetsStr);
jtkorhonen@0 68 };
jtkorhonen@0 69
jtkorhonen@0 70 #endif // HGEXPWIDGET_H