2012-10-02 09:12:39 +02:00
|
|
|
/****************************************************************************
|
2008-12-02 12:01:29 +01:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2008-12-02 12:01:29 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** This file is part of Qt Creator.
|
2008-12-02 12:01:29 +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.
|
2008-12-02 14:17:16 +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
|
|
|
****************************************************************************/
|
2008-12-02 16:19:05 +01:00
|
|
|
|
2016-02-03 12:15:21 +01:00
|
|
|
#pragma once
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2012-02-15 10:42:41 +01:00
|
|
|
#include <QtGlobal>
|
2009-03-18 16:43:01 +01:00
|
|
|
|
2012-01-07 12:31:48 +01:00
|
|
|
namespace VcsBase {
|
2008-12-02 16:19:05 +01:00
|
|
|
namespace Constants {
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2011-11-02 16:45:13 +01:00
|
|
|
const char VCS_SETTINGS_CATEGORY[] = "V.Version Control";
|
2015-08-05 15:20:14 +02:00
|
|
|
const char VCS_COMMON_SETTINGS_ID[] = "A.VCS.General";
|
2012-04-17 14:24:05 +02:00
|
|
|
const char VCS_COMMON_SETTINGS_NAME[] = QT_TRANSLATE_NOOP("VcsBase", "General");
|
2009-03-18 16:43:01 +01:00
|
|
|
|
2009-11-27 16:12:12 +01:00
|
|
|
// Ids for sort order (wizards and preferences)
|
2011-11-02 16:45:13 +01:00
|
|
|
const char VCS_ID_BAZAAR[] = "B.Bazaar";
|
|
|
|
|
const char VCS_ID_GIT[] = "G.Git";
|
|
|
|
|
const char VCS_ID_MERCURIAL[] = "H.Mercurial";
|
|
|
|
|
const char VCS_ID_SUBVERSION[] = "J.Subversion";
|
|
|
|
|
const char VCS_ID_PERFORCE[] = "P.Perforce";
|
|
|
|
|
const char VCS_ID_CVS[] = "Z.CVS";
|
2009-07-17 17:19:23 +02:00
|
|
|
|
ProjectExplorer: Clean up variables
Global variables with names such as "CurrentProject*", "CurrentKit*" etc
are harmful, because the term "current project" as used in Qt Creator
does not refer to the "active project", but simply stands for the
project that contains the node that is currently selected in the project
tree, which in turn may or may not correspond to the current editor
document, depending on the "sync with editor" setting. In other words,
the "current project" is almost a random value with little meaning
outside the project tree itself.
Therefore, we remove "CurrentProject*" and friends, except the ones that
are currently intentionally in use. The latter get renamed to
"CurrentDocument:Project*", so their purpose becomes clear. Their old
names are kept around for backward compatibility, but are not suggested
by the variable chooser anymore, so new usages are unlikely and we can
remove them at some point.
We also add some ActiveProject* variants that have been requested in the
past.
Also remove the "CurrentSession" prefix that was deprecated six years
ago.
Fixes: QTCREATORBUG-12724
Fixes: QTCREATORBUG-24606
Change-Id: Ibba5d0e0ce3d2beb444a5eec01fbb9b745d90a1d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-09-28 16:18:44 +02:00
|
|
|
const char VAR_VCS_NAME[] = "CurrentDocument:Project:VcsName";
|
|
|
|
|
const char VAR_VCS_TOPIC[] = "CurrentDocument:Project:VcsTopic";
|
|
|
|
|
const char VAR_VCS_TOPLEVELPATH[] = "CurrentDocument:Project:VcsTopLevelPath";
|
2014-02-24 12:36:47 +01:00
|
|
|
|
2008-12-02 16:19:05 +01:00
|
|
|
} // namespace Constants
|
2012-01-07 12:31:48 +01:00
|
|
|
} // namespace VcsBase
|