2012-10-02 09:12:39 +02:00
|
|
|
/****************************************************************************
|
2009-03-19 17:40:01 +01:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2009-03-19 17:40:01 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** This file is part of Qt Creator.
|
2009-03-19 17:40:01 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
2016-01-15 14:57:40 +01:00
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
2009-03-19 17:40:01 +01:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** GNU General Public License Usage
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
|
|
|
** General Public License version 3 as published by the Free Software
|
|
|
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
|
|
|
** included in the packaging of this file. Please review the following
|
|
|
|
|
** information to ensure the GNU General Public License requirements will
|
|
|
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
2010-12-17 16:01:08 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
****************************************************************************/
|
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
|
|
|
{
|
2021-03-23 13:57:54 +01:00
|
|
|
Q_DECLARE_TR_FUNCTIONS(VcsBase::Internal::CommonVcsSettings)
|
|
|
|
|
|
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
|