2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 Hugues Delorme
|
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
|
2016-01-15 14:57:40 +01:00
|
|
|
|
2016-02-03 17:35:54 +01:00
|
|
|
#pragma once
|
2011-02-28 13:40:06 +01:00
|
|
|
|
2013-01-02 22:12:06 +02:00
|
|
|
#include <vcsbase/submiteditorwidget.h>
|
2011-02-28 13:40:06 +01:00
|
|
|
|
2022-09-23 13:52:03 +02:00
|
|
|
namespace Bazaar::Internal {
|
2011-02-28 13:40:06 +01:00
|
|
|
|
|
|
|
|
class BranchInfo;
|
2022-09-23 13:52:03 +02:00
|
|
|
class BazaarCommitPanel;
|
2011-02-28 13:40:06 +01:00
|
|
|
|
|
|
|
|
/*submit editor widget based on git SubmitEditor
|
|
|
|
|
Some extra fields have been added to the standard SubmitEditorWidget,
|
|
|
|
|
to help to conform to the commit style that is used by both git and Bazaar*/
|
|
|
|
|
|
2013-01-02 22:12:06 +02:00
|
|
|
class BazaarCommitWidget : public VcsBase::SubmitEditorWidget
|
2011-02-28 13:40:06 +01:00
|
|
|
{
|
|
|
|
|
public:
|
2014-08-28 22:23:29 +02:00
|
|
|
BazaarCommitWidget();
|
2011-02-28 13:40:06 +01:00
|
|
|
|
2022-09-23 13:52:03 +02:00
|
|
|
void setFields(const BranchInfo &branch, const QString &userName, const QString &email);
|
2011-02-28 13:40:06 +01:00
|
|
|
|
|
|
|
|
QString committer() const;
|
|
|
|
|
QStringList fixedBugs() const;
|
|
|
|
|
bool isLocalOptionEnabled() const;
|
|
|
|
|
|
|
|
|
|
private:
|
2022-09-23 13:52:03 +02:00
|
|
|
BazaarCommitPanel *m_bazaarCommitPanel;
|
2011-02-28 13:40:06 +01:00
|
|
|
};
|
|
|
|
|
|
2022-09-23 13:52:03 +02:00
|
|
|
} // Bazaar::Insteral
|