2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2009-07-15 12:28:40 +02:00
|
|
|
|
2016-02-04 13:07:35 +01:00
|
|
|
#pragma once
|
2009-07-15 12:28:40 +02:00
|
|
|
|
|
|
|
|
#include <vcsbase/vcsbaseeditor.h>
|
|
|
|
|
|
2020-02-19 23:26:24 +02:00
|
|
|
#include <QRegularExpression>
|
2009-07-15 12:28:40 +02:00
|
|
|
|
2012-01-07 16:55:09 +01:00
|
|
|
namespace Cvs {
|
2009-07-15 12:28:40 +02:00
|
|
|
namespace Internal {
|
|
|
|
|
|
2014-08-21 20:43:33 +02:00
|
|
|
class CvsEditorWidget : public VcsBase::VcsBaseEditorWidget
|
2009-07-15 12:28:40 +02:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2014-08-21 20:43:33 +02:00
|
|
|
CvsEditorWidget();
|
2009-07-15 12:28:40 +02: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 &revision) const override;
|
2009-07-15 12:28:40 +02:00
|
|
|
|
2020-02-19 23:26:24 +02:00
|
|
|
const QRegularExpression m_revisionAnnotationPattern;
|
|
|
|
|
const QRegularExpression m_revisionLogPattern;
|
2009-07-15 12:28:40 +02:00
|
|
|
QString m_diffBaseDir;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
2012-01-07 16:55:09 +01:00
|
|
|
} // namespace Cvs
|