OSDN Git Service

40247ca94e9443378951e3a06439620c354193e2
[qt-creator-jp/qt-creator-jp.git] / src / plugins / mercurial / constants.h
1 /**************************************************************************
2 **
3 ** This file is part of Qt Creator
4 **
5 ** Copyright (c) 2009 Brian McGillion
6 **
7 ** Contact: Nokia Corporation (qt-info@nokia.com)
8 **
9 ** No Commercial Usage
10 **
11 ** This file contains pre-release code and may not be distributed.
12 ** You may use this file in accordance with the terms and conditions
13 ** contained in the Technology Preview License Agreement accompanying
14 ** this package.
15 **
16 ** GNU Lesser General Public License Usage
17 **
18 ** Alternatively, this file may be used under the terms of the GNU Lesser
19 ** General Public License version 2.1 as published by the Free Software
20 ** Foundation and appearing in the file LICENSE.LGPL included in the
21 ** packaging of this file.  Please review the following information to
22 ** ensure the GNU Lesser General Public License version 2.1 requirements
23 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24 **
25 ** In addition, as a special exception, Nokia gives you certain additional
26 ** rights.  These rights are described in the Nokia Qt LGPL Exception
27 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
28 **
29 ** If you have questions regarding the use of this file, please contact
30 ** Nokia at qt-info@nokia.com.
31 **
32 **************************************************************************/
33
34 #ifndef CONSTANTS_H
35 #define CONSTANTS_H
36
37 namespace Mercurial {
38 namespace Constants {
39
40 enum { debug = 0 };
41 const char * const MERCURIAL = "mercurial";
42 const char * const MECURIALREPO = ".hg";
43 const char * const MERCURIALDEFAULT = "hg";
44
45 //options page items
46 const char * const MERCURIALPATH = "Mercurial_Path";
47 const char * const MERCURIALUSERNAME = "Mercurial_Username";
48 const char * const MERCURIALEMAIL = "Mercurial_Email";
49 const char * const MERCURIALLOGCOUNT = "Mercurial_LogCount";
50 const char * const MERCURIALTIMEOUT = "Mercurial_Timeout";
51 const char * const MERCURIALPROMPTSUBMIT = "Mercurial_PromptOnSubmit";
52
53 //changeset identifiers
54 const char * const CHANGESETID12 = " ([a-f0-9]{12,12}) "; //match 12 hex chars and capture
55 const char * const CHANGESETID40 = " ([a-f0-9]{40,40}) ";
56 const char * const CHANGEIDEXACT12 = "[a-f0-9]{12,12}"; //match 12 hex chars a
57 const char * const CHANGEIDEXACT40 = "[a-f0-9]{40,40}";
58 const char * const DIFFIDENTIFIER = "^[-+]{3,3} [ab]{1,1}.*"; // match e.g. +++ b/filename
59
60 //BaseEditorParameters
61 const char * const COMMANDLOG_ID = "Mercurial Command Log Editor";
62 const char * const COMMANDLOG_DISPLAY_NAME = QT_TRANSLATE_NOOP("VCS", "Mercurial Command Log Editor");
63 const char * const COMMANDLOG = "Mercurial Command Log Editor";
64 const char * const COMMANDAPP = "application/vnd.nokia.text.scs_mercurial_commandlog";
65 const char * const COMMANDEXT = "vcsMercurialCommand";
66
67 const char * const FILELOG_ID = "Mercurial File Log Editor";
68 const char * const FILELOG_DISPLAY_NAME = QT_TRANSLATE_NOOP("VCS", "Mercurial File Log Editor");
69 const char * const FILELOG = "Mercurial File Log Editor";
70 const char * const LOGAPP = "application/vnd.nokia.text.scs_mercurial_log";
71 const char * const LOGEXT = "vcsMercurialLog";
72
73 const char * const ANNOTATELOG_ID = "Mercurial Annotation Editor";
74 const char * const ANNOTATELOG_DISPLAY_NAME = QT_TRANSLATE_NOOP("VCS", "Mercurial Annotation Editor");
75 const char * const ANNOTATELOG = "Mercurial Annotation Editor";
76 const char * const ANNOTATEAPP = "application/vnd.nokia.text.scs_mercurial_annotatelog";
77 const char * const ANNOTATEEXT = "vcsMercurialAnnotate";
78
79 const char * const DIFFLOG_ID = "Mercurial Diff Editor";
80 const char * const DIFFLOG_DISPLAY_NAME = QT_TRANSLATE_NOOP("VCS", "Mercurial Diff Editor");
81 const char * const DIFFLOG = "Mercurial Diff Editor";
82 const char * const DIFFAPP = "text/x-patch";
83 const char * const DIFFEXT = "diff";
84
85 //SubmitEditorParameters
86 const char * const COMMIT_ID = "Mercurial Commit Log Editor";
87 const char * const COMMIT_DISPLAY_NAME = QT_TRANSLATE_NOOP("VCS", "Mercurial Commit Log Editor");
88 const char * const COMMITMIMETYPE = "application/vnd.nokia.text.scs_mercurial_commitlog";
89
90 //menu items
91 //File menu actions
92 const char * const ADD = "Mercurial.AddSingleFile";
93 const char * const DELETE = "Mercurial.DeleteSingleFile";
94 const char * const ANNOTATE = "Mercurial.Annotate";
95 const char * const DIFF = "Mercurial.DiffSingleFile";
96 const char * const LOG = "Mercurial.LogSingleFile";
97 const char * const REVERT = "Mercurial.RevertSingleFile";
98 const char * const STATUS = "Mercurial.Status";
99
100 //directory menu Actions
101 const char * const DIFFMULTI = "Mercurial.Action.DiffMulti";
102 const char * const REVERTMULTI = "Mercurial.Action.RevertMulti";
103 const char * const STATUSMULTI = "Mercurial.Action.StatusMulti";
104 const char * const LOGMULTI = "Mercurial.Action.Logmulti";
105
106 //repository menu actions
107 const char * const PULL = "Mercurial.Action.Pull";
108 const char * const PUSH = "Mercurial.Action.Push";
109 const char * const UPDATE = "Mercurial.Action.Update";
110 const char * const IMPORT = "Mercurial.Action.Import";
111 const char * const INCOMING = "Mercurial.Action.Incoming";
112 const char * const OUTGOING = "Mercurial.Action.Outgoing";
113 const char * const COMMIT = "Mercurial.Action.Commit";
114 const char * const CREATE_REPOSITORY = "Mercurial.Action.CreateRepository";
115
116 //Repository Management
117 const char * const MERGE = "Mercurial.Action.Merge";
118 const char * const BRANCH = "Mercurial.Action.Branch";
119 const char * const HEADS = "Mercurial.Action.Heads";
120 const char * const PARENTS = "Mercurial.Action.Parents";
121 const char * const TAGS = "Mercurial.Action.Tags";
122 const char * const TIP = "Mercurial.Action.TIP";
123 const char * const PATHS = "Mercurial.Action.Paths";
124
125 //Less commonly used menu actions
126 const char * const CLONE = "Mercurial.Action.Clone";
127 const char * const INIT = "Mercurial.Action.Init";
128 const char * const SERVE = "Mercurial.Action.Serve";
129
130 //submit editor actions
131 const char * const COMMITEDITOR = "Mercurial.Action.Editor.Commit";
132 const char * const DIFFEDITOR = "Mercurial.Action.Editor.Diff";
133
134 } // namespace Constants
135 } // namespace mercurial
136
137 #endif // CONSTANTS_H