2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 Hugues Delorme
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 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
|
|
|
|
|
|
|
|
#include "ui_bazaarcommitpanel.h"
|
|
|
|
|
|
2013-01-02 22:12:06 +02:00
|
|
|
#include <vcsbase/submiteditorwidget.h>
|
2011-02-28 13:40:06 +01:00
|
|
|
|
|
|
|
|
namespace Bazaar {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
|
|
|
|
class BranchInfo;
|
|
|
|
|
|
|
|
|
|
/*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
|
|
|
|
|
|
|
|
void setFields(const BranchInfo &branch,
|
|
|
|
|
const QString &userName, const QString &email);
|
|
|
|
|
|
|
|
|
|
QString committer() const;
|
|
|
|
|
QStringList fixedBugs() const;
|
|
|
|
|
bool isLocalOptionEnabled() const;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
QWidget *m_bazaarCommitPanel;
|
|
|
|
|
Ui::BazaarCommitPanel m_bazaarCommitPanelUi;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace Bazaar
|