OSDN Git Service

Update license.
[qt-creator-jp/qt-creator-jp.git] / src / plugins / bazaar / constants.h
1 /**************************************************************************
2 **
3 ** This file is part of Qt Creator
4 **
5 ** Copyright (c) 2010 Hugues Delorme
6 **
7 ** Contact: Nokia Corporation (info@qt.nokia.com)
8 **
9 **
10 ** GNU Lesser General Public License Usage
11 **
12 ** This file may be used under the terms of the GNU Lesser General Public
13 ** License version 2.1 as published by the Free Software Foundation and
14 ** appearing in the file LICENSE.LGPL included in the packaging of this file.
15 ** Please review the following information to ensure the GNU Lesser General
16 ** Public License version 2.1 requirements will be met:
17 ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
18 **
19 ** In addition, as a special exception, Nokia gives you certain additional
20 ** rights. These rights are described in the Nokia Qt LGPL Exception
21 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
22 **
23 ** Other Usage
24 **
25 ** Alternatively, this file may be used in accordance with the terms and
26 ** conditions contained in a signed written agreement between you and Nokia.
27 **
28 ** If you have questions regarding the use of this file, please contact
29 ** Nokia at qt-info@nokia.com.
30 **
31 **************************************************************************/
32
33 #ifndef BAZAARCONSTANTS_H
34 #define BAZAARCONSTANTS_H
35
36 namespace Bazaar {
37 namespace Constants {
38
39 const char * const BAZAAR = "bazaar";
40 const char * const BAZAARREPO = ".bzr";
41 const char * const BAZAARDEFAULT = "bzr";
42
43 //changeset identifiers
44 const char * const CHANGESET_ID = "([0-9]+)"; // match and capture
45 const char * const CHANGESET_ID_EXACT = "[0-9]+"; // match
46 const char * const DIFF_ID = "^[-+]{3,3} [ab]{1,1}.*"; // match e.g. +++ b/filename
47
48 //BaseEditorParameters
49 const char * const COMMANDLOG_ID = "Bazaar Command Log Editor";
50 const char * const COMMANDLOG_DISPLAY_NAME = QT_TRANSLATE_NOOP("VCS", "Bazaar Command Log Editor");
51 const char * const COMMANDLOG = "Bazaar Command Log Editor";
52 const char * const COMMANDAPP = "application/vnd.nokia.text.scs_bazaar_commandlog";
53 const char * const COMMANDEXT = "vcsBazaarCommand";
54
55 const char * const FILELOG_ID = "Bazaar File Log Editor";
56 const char * const FILELOG_DISPLAY_NAME = QT_TRANSLATE_NOOP("VCS", "Bazaar File Log Editor");
57 const char * const FILELOG = "Bazaar File Log Editor";
58 const char * const LOGAPP = "application/vnd.nokia.text.scs_bazaar_log";
59 const char * const LOGEXT = "vcsBazaarLog";
60
61 const char * const ANNOTATELOG_ID = "Bazaar Annotation Editor";
62 const char * const ANNOTATELOG_DISPLAY_NAME = QT_TRANSLATE_NOOP("VCS", "Bazaar Annotation Editor");
63 const char * const ANNOTATELOG = "Bazaar Annotation Editor";
64 const char * const ANNOTATEAPP = "application/vnd.nokia.text.scs_bazaar_annotatelog";
65 const char * const ANNOTATEEXT = "vcsBazaarAnnotate";
66
67 const char * const DIFFLOG_ID = "Bazaar Diff Editor";
68 const char * const DIFFLOG_DISPLAY_NAME = QT_TRANSLATE_NOOP("VCS", "Bazaar Diff Editor");
69 const char * const DIFFLOG = "Bazaar Diff Editor";
70 const char * const DIFFAPP = "text/x-patch";
71 const char * const DIFFEXT = "diff";
72
73 //SubmitEditorParameters
74 const char * const COMMIT_ID = "Bazaar Commit Log Editor";
75 const char * const COMMIT_DISPLAY_NAME = QT_TRANSLATE_NOOP("VCS", "Bazaar Commit Log Editor");
76 const char * const COMMITMIMETYPE = "application/vnd.nokia.text.scs_bazaar_commitlog";
77
78 //menu items
79 //File menu actions
80 const char * const ADD = "Bazaar.AddSingleFile";
81 const char * const DELETE = "Bazaar.DeleteSingleFile";
82 const char * const ANNOTATE = "Bazaar.Annotate";
83 const char * const DIFF = "Bazaar.DiffSingleFile";
84 const char * const LOG = "Bazaar.LogSingleFile";
85 const char * const REVERT = "Bazaar.RevertSingleFile";
86 const char * const STATUS = "Bazaar.Status";
87
88 //directory menu Actions
89 const char * const DIFFMULTI = "Bazaar.Action.DiffMulti";
90 const char * const REVERTMULTI = "Bazaar.Action.RevertALL";
91 const char * const STATUSMULTI = "Bazaar.Action.StatusMulti";
92 const char * const LOGMULTI = "Bazaar.Action.Logmulti";
93
94 //repository menu actions
95 const char * const PULL = "Bazaar.Action.Pull";
96 const char * const PUSH = "Bazaar.Action.Push";
97 const char * const UPDATE = "Bazaar.Action.Update";
98 const char * const CLONE = "Bazaar.Action.Clone";
99 const char * const COMMIT = "Bazaar.Action.Commit";
100 const char * const CREATE_REPOSITORY = "Bazaar.Action.CreateRepository";
101
102 //submit editor actions
103 const char * const DIFFEDITOR = "Bazaar.Action.Editor.Diff";
104
105 } // namespace Constants
106 } // namespace Bazaar
107
108 #endif // BAZAARCONSTANTS_H