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
|
2009-03-19 17:40:01 +01:00
|
|
|
|
2016-02-03 12:15:21 +01:00
|
|
|
#pragma once
|
2009-03-19 17:40:01 +01:00
|
|
|
|
2021-03-23 13:57:54 +01:00
|
|
|
#include <coreplugin/dialogs/ioptionspage.h>
|
2009-03-19 17:40:01 +01:00
|
|
|
|
2021-03-23 13:57:54 +01:00
|
|
|
#include <utils/aspects.h>
|
2009-03-19 17:40:01 +01:00
|
|
|
|
2012-01-07 12:31:48 +01:00
|
|
|
namespace VcsBase {
|
2009-03-19 17:40:01 +01:00
|
|
|
namespace Internal {
|
|
|
|
|
|
2021-03-23 13:57:54 +01:00
|
|
|
class CommonVcsSettings : public Utils::AspectContainer
|
2010-04-12 16:34:21 +02:00
|
|
|
{
|
2011-12-08 13:07:00 +01:00
|
|
|
public:
|
2010-04-12 16:34:21 +02:00
|
|
|
CommonVcsSettings();
|
2009-03-19 17:40:01 +01:00
|
|
|
|
2021-12-06 05:11:04 +01:00
|
|
|
friend QDebug operator<<(QDebug, const CommonVcsSettings &);
|
|
|
|
|
|
2021-03-23 13:57:54 +01:00
|
|
|
Utils::StringAspect nickNameMailMap;
|
|
|
|
|
Utils::StringAspect nickNameFieldListFile;
|
2009-03-19 17:40:01 +01:00
|
|
|
|
2021-03-23 13:57:54 +01:00
|
|
|
Utils::StringAspect submitMessageCheckScript;
|
2009-03-19 17:40:01 +01:00
|
|
|
|
2010-05-21 17:46:00 +02:00
|
|
|
// Executable run to graphically prompt for a SSH-password.
|
2021-03-23 13:57:54 +01:00
|
|
|
Utils::StringAspect sshPasswordPrompt;
|
2010-05-21 17:46:00 +02:00
|
|
|
|
2021-03-23 13:57:54 +01:00
|
|
|
Utils::BoolAspect lineWrap;
|
|
|
|
|
Utils::IntegerAspect lineWrapWidth;
|
2009-03-19 17:40:01 +01:00
|
|
|
};
|
|
|
|
|
|
2021-03-23 13:57:54 +01:00
|
|
|
class CommonOptionsPage final : public Core::IOptionsPage
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit CommonOptionsPage();
|
|
|
|
|
|
|
|
|
|
CommonVcsSettings &settings() { return m_settings; }
|
|
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
void settingsChanged();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
CommonVcsSettings m_settings;
|
|
|
|
|
};
|
|
|
|
|
|
2009-03-19 17:40:01 +01:00
|
|
|
} // namespace Internal
|
2012-01-07 12:31:48 +01:00
|
|
|
} // namespace VcsBase
|