FIX issue #19 where multiple widget values led to bad replacements in the command
[qgit4/redivivus.git] / src / revsview.h
blobe7b1fffaa9054529f014c100c1ec505a4d1b848b
1 /*
2 Author: Marco Costalba (C) 2005-2007
4 Copyright: See COPYING file that comes with this distribution
6 */
7 #ifndef REVSVIEW_H
8 #define REVSVIEW_H
10 #include <QPointer>
11 #include "ui_revsview.h" // needed by moc_* file to understand tab() function
12 #include "common.h"
13 #include "domain.h"
15 class MainImpl;
16 class Git;
17 class FileHistory;
18 class PatchView;
20 class RevsView : public Domain {
21 Q_OBJECT
22 public:
23 RevsView(MainImpl* parent, Git* git, bool isMain = false);
24 ~RevsView();
25 void clear(bool complete);
26 void viewPatch(bool newTab);
27 void setEnabled(bool b);
28 void setTabLogDiffVisible(bool);
29 Ui_TabRev* tab() { return revTab; }
31 public slots:
32 void toggleDiffView();
34 private slots:
35 void on_newRevsAdded(const FileHistory*, const QVector<ShaString>&);
36 void on_loadCompleted(const FileHistory*, const QString& stats);
37 void on_lanesContextMenuRequested(const QStringList&, const QStringList&);
38 void on_updateRevDesc();
39 void on_flagChanged(uint flag);
41 protected:
42 virtual bool doUpdate(bool force);
44 private:
45 friend class MainImpl;
47 void updateLineEditSHA(bool clear = false);
49 Ui_TabRev* revTab;
50 QPointer<PatchView> linkedPatchView;
53 #endif