2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2008-12-02 16:19:05 +01:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
#include <vcsbase/vcsbaseeditor.h>
|
|
|
|
|
|
2014-11-04 15:41:41 +01:00
|
|
|
#include <QRegularExpression>
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
namespace Subversion {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
2014-08-21 20:43:33 +02:00
|
|
|
class SubversionEditorWidget : public VcsBase::VcsBaseEditorWidget
|
2008-12-02 12:01:29 +01:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2014-08-21 20:43:33 +02:00
|
|
|
SubversionEditorWidget();
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
private:
|
2015-06-01 17:55:31 +02:00
|
|
|
QString changeUnderCursor(const QTextCursor &) const override;
|
|
|
|
|
VcsBase::BaseAnnotationHighlighter *createAnnotationHighlighter(
|
|
|
|
|
const QSet<QString> &changes) const override;
|
|
|
|
|
QStringList annotationPreviousVersions(const QString &) const override;
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2014-11-04 15:41:41 +01:00
|
|
|
QRegularExpression m_changeNumberPattern;
|
|
|
|
|
QRegularExpression m_revisionNumberPattern;
|
2008-12-02 12:01:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace Subversion
|