Logo Search packages:      
Sourcecode: qgit version File versions

revsview.h

/*
      Author: Marco Costalba (C) 2005-2006

      Copyright: See COPYING file that comes with this distribution

*/
#ifndef REVSVIEW_H
#define REVSVIEW_H

#include <qguardedptr.h>
#include "revbase.h" // needed by moc_* file to understand tab() function
#include "common.h"
#include "domain.h"

class MainImpl;
class Git;
class FileHistory;
class ListView;
class ListBoxFiles;
class PatchView;
class TreeView;

class RevsView : public Domain {
Q_OBJECT
public:
      RevsView(MainImpl* parent, Git* git);
      ~RevsView();
      void clear(bool keepState);
      void viewPatch(bool newTab);
      void setEnabled(bool b);
      virtual TabRev* tab() { return revTab; }

private slots:
      void on_loadCompleted(const FileHistory*, const QString& stats);
      void on_lanesContextMenuRequested(const QStringList&, const QStringList&);
      void on_droppedRevisions(const QStringList&);
      void on_updateRevDesc();

protected:
      virtual bool doUpdate(bool force);

private:
      friend class MainImpl;

      bool listBoxFiles_mouseMoveEvent();
      bool listBoxFiles_mouseReleaseEvent();
      void updateLineEditSHA(bool clear = false);

      TabRev* revTab;
      QGuardedPtr<PatchView> linkedPatchView;
      TreeView* treeView;
      ListView* listViewLog;
      ListBoxFiles* listBoxFiles;
};

#endif

Generated by  Doxygen 1.6.0   Back to index