Logo Search packages:      
Sourcecode: qgit version File versions  Download package

commitimpl.h

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

      Copyright: See COPYING file that comes with this distribution

*/
#ifndef COMMITIMPL_H
#define COMMITIMPL_H

#include <qprocess.h>
#include "commitbase.h"
#include "common.h"

class QPopupMenu;
class Git;

class CommitImpl : public CommitBase {
Q_OBJECT
public:
      CommitImpl(Git* git, bool* changesCommitted);
      ~CommitImpl();

public slots:
      virtual void pushButtonOk_clicked();
      virtual void pushButtonCancel_clicked();
      virtual void pushButtonUpdateCache_clicked();
      virtual void pushButtonSettings_clicked();
      virtual void textEditMsg_cursorPositionChanged(int,int);

private slots:
      void contextMenuPopup(QListViewItem*, const QPoint&, int);
      void checkUncheck(int);

private:
      bool checkFiles(SList selFiles);
      bool checkMsg(QString& msg);
      bool checkPatchName(QString& patchName);
      bool checkConfirm(SCRef msg, SCRef patchName, SCList selFiles);
      void computePosition(int para, int pos, int &col_pos, int &line_pos);

      Git* git;
      bool* commitOK;
      QPopupMenu* contextMenu;
      QString origMsg;
      int CHECK_ALL;
      int UNCHECK_ALL;
};

#endif

Generated by  Doxygen 1.6.0   Back to index