blob: 291718b4e9aaab75b23bb6a7716cc23806e47304 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// Copyright (C) 2016 Brian McGillion
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include <vcsbase/vcsbaseeditor.h>
#include <QRegularExpression>
namespace Mercurial {
namespace Internal {
class MercurialClient;
class MercurialEditorWidget : public VcsBase::VcsBaseEditorWidget
{
Q_OBJECT
public:
explicit MercurialEditorWidget(MercurialClient *client);
private:
QString changeUnderCursor(const QTextCursor &cursor) const override;
VcsBase::BaseAnnotationHighlighter *createAnnotationHighlighter(
const QSet<QString> &changes) const override;
QString decorateVersion(const QString &revision) const override;
QStringList annotationPreviousVersions(const QString &revision) const override;
const QRegularExpression exactIdentifier12;
const QRegularExpression exactIdentifier40;
const QRegularExpression changesetIdentifier40;
MercurialClient *m_client;
};
} // namespace Internal
} // namespace Mercurial
|