Menu item "Checkout" spawns a dialog, thus requires ellipsis
[qgit4/redivivus.git] / src / revsview.h
blob8d9f49b2d573c5ee58eb30382732662c31fcd18d
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();
40 protected:
41 virtual bool doUpdate(bool force);
43 private:
44 friend class MainImpl;
46 void updateLineEditSHA(bool clear = false);
48 Ui_TabRev* revTab;
49 QPointer<PatchView> linkedPatchView;
52 #endif