PageRenderTime 55ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/guitone-1.0rc5/src/view/dialogs/FileHistory.h

#
C Header | 56 lines | 31 code | 8 blank | 17 comment | 0 complexity | 28f5e07d38f43fde97cc4f51fecec885 MD5 | raw file
Possible License(s): GPL-3.0
  1. /***************************************************************************
  2. * Copyright (C) 2007 by Thomas Keller *
  3. * me@thomaskeller.biz *
  4. * *
  5. * This program is free software; you can redistribute it and/or modify *
  6. * it under the terms of the GNU General Public License as published by *
  7. * the Free Software Foundation, either version 3 of the License, or *
  8. * (at your option) any later version. *
  9. * *
  10. * This program is distributed in the hope that it will be useful, *
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of *
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
  13. * GNU General Public License for more details. *
  14. * *
  15. * You should have received a copy of the GNU General Public License *
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>. *
  17. ***************************************************************************/
  18. #ifndef FILE_HISTORY_H
  19. #define FILE_HISTORY_H
  20. #include "Dialog.h"
  21. #include "ui_file_history.h"
  22. #include "Certs.h"
  23. #include "GetContentChanged.h"
  24. class FileHistory : public Dialog, private Ui::FileHistoryDialog
  25. {
  26. Q_OBJECT
  27. public:
  28. FileHistory(QWidget *, const MonotoneHandlePtr &);
  29. ~FileHistory();
  30. void readHistory(const QString &, const QString &);
  31. signals:
  32. void fileDiff(const QString & fileName, const QString & firstRevision,
  33. const QString & secondRevision);
  34. private:
  35. GetContentChanged * changeModel;
  36. Certs * certsModel;
  37. int curRow;
  38. QString firstRevision;
  39. QString secondRevision;
  40. QString fileName;
  41. private slots:
  42. void readCerts(const QModelIndex &);
  43. void setFirstRevision();
  44. void setSecondRevision();
  45. void revisionFileListClicked(const QModelIndex &);
  46. void showDiffDialog();
  47. };
  48. #endif