PageRenderTime 31ms CodeModel.GetById 23ms app.highlight 7ms 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
19#ifndef REVISION_MANIFEST_H
20#define REVISION_MANIFEST_H
21
22#include "Dialog.h"
23#include "ui_manifest.h"
24#include "Manifest.h"
25#include "vocab.h"
26
27#include <QPair>
28
29class RevisionManifest : public Dialog, private Ui::ManifestDialog
30{
31    Q_OBJECT
32public:
33    RevisionManifest(QWidget *, const MonotoneHandlePtr &);
34    ~RevisionManifest();
35
36    void readManifest(const QString &);
37
38signals:
39    void fileHistory(const QString &, const QString &);
40    void annotateFile(const QString &, const QString &);
41
42private:
43    FileEntryList extractSelectedEntries(const QModelIndexList &);
44    FileEntryList addEntriesRecursive(ManifestEntry *);
45
46    Manifest * manifestModel;
47    QString revision;
48    MonotoneHandlePtr monotoneHandle;
49
50private slots:
51    void saveSelectedFiles();
52    void saveAllFiles();
53    void openFile(const QModelIndex &);
54    void contextMenuRequested(const QModelIndexList &, const QPoint &);
55};
56
57#endif