PageRenderTime 51ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
C Header | 57 lines | 30 code | 10 blank | 17 comment | 0 complexity | 7b6a04b339ee6119e162e27ed9d564e8 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 REVISION_MANIFEST_H
  19. #define REVISION_MANIFEST_H
  20. #include "Dialog.h"
  21. #include "ui_manifest.h"
  22. #include "Manifest.h"
  23. #include "vocab.h"
  24. #include <QPair>
  25. class RevisionManifest : public Dialog, private Ui::ManifestDialog
  26. {
  27. Q_OBJECT
  28. public:
  29. RevisionManifest(QWidget *, const MonotoneHandlePtr &);
  30. ~RevisionManifest();
  31. void readManifest(const QString &);
  32. signals:
  33. void fileHistory(const QString &, const QString &);
  34. void annotateFile(const QString &, const QString &);
  35. private:
  36. FileEntryList extractSelectedEntries(const QModelIndexList &);
  37. FileEntryList addEntriesRecursive(ManifestEntry *);
  38. Manifest * manifestModel;
  39. QString revision;
  40. MonotoneHandlePtr monotoneHandle;
  41. private slots:
  42. void saveSelectedFiles();
  43. void saveAllFiles();
  44. void openFile(const QModelIndex &);
  45. void contextMenuRequested(const QModelIndexList &, const QPoint &);
  46. };
  47. #endif