1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
/*
Author: Marco Costalba (C) 2005-2007
Copyright: See COPYING file that comes with this distribution
*/
#ifndef REVSVIEW_H
#define REVSVIEW_H
#include <QPointer>
#include "ui_revsview.h" // needed by moc_* file to understand tab() function
#include "common.h"
#include "domain.h"
class MainImpl;
class Git;
class FileHistory;
class PatchView;
class RevsView : public Domain {
Q_OBJECT
public:
RevsView(MainImpl* parent, Git* git, bool isMain = false);
~RevsView();
void clear(bool complete);
void viewPatch(bool newTab);
void setEnabled(bool b);
void setTabLogDiffVisible(bool);
Ui_TabRev* tab() { return revTab; }
public slots:
void toggleDiffView();
private slots:
void on_newRevsAdded(const FileHistory*, const QVector<ShaString>&);
void on_loadCompleted(const FileHistory*, const QString& stats);
void on_lanesContextMenuRequested(const QStringList&, const QStringList&);
void on_updateRevDesc();
protected:
virtual bool doUpdate(bool force);
private:
friend class MainImpl;
void updateLineEditSHA(bool clear = false);
Ui_TabRev* revTab;
QPointer<PatchView> linkedPatchView;
};
#endif
|