1 /**************************************************************************
3 ** This file is part of Qt Creator
5 ** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
7 ** Contact: Nokia Corporation (info@qt.nokia.com)
10 ** GNU Lesser General Public License Usage
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.
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.
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.
28 ** If you have questions regarding the use of this file, please contact
29 ** Nokia at qt-info@nokia.com.
31 **************************************************************************/
33 #ifndef TEXTEDITORCONSTANTS_H
34 #define TEXTEDITORCONSTANTS_H
36 #include <QtCore/QtGlobal>
38 namespace TextEditor {
41 const char * const C_TEXTEDITOR = "Text Editor";
42 const char * const COMPLETE_THIS = "TextEditor.CompleteThis";
43 const char * const QUICKFIX_THIS = "TextEditor.QuickFix";
44 const char * const VISUALIZE_WHITESPACE = "TextEditor.VisualizeWhitespace";
45 const char * const CLEAN_WHITESPACE = "TextEditor.CleanWhitespace";
46 const char * const TEXT_WRAPPING = "TextEditor.TextWrapping";
47 const char * const UN_COMMENT_SELECTION = "TextEditor.UnCommentSelection";
48 const char * const REFORMAT = "TextEditor.Reformat";
49 const char * const FOLD = "TextEditor.Fold";
50 const char * const UNFOLD = "TextEditor.Unfold";
51 const char * const UNFOLD_ALL = "TextEditor.UnFoldAll";
52 const char * const AUTO_INDENT_SELECTION = "TextEditor.AutoIndentSelection";
53 const char * const INCREASE_FONT_SIZE = "TextEditor.IncreaseFontSize";
54 const char * const DECREASE_FONT_SIZE = "TextEditor.DecreaseFontSize";
55 const char * const RESET_FONT_SIZE = "TextEditor.ResetFontSize";
56 const char * const GOTO_BLOCK_START = "TextEditor.GotoBlockStart";
57 const char * const GOTO_BLOCK_START_WITH_SELECTION = "TextEditor.GotoBlockStartWithSelection";
58 const char * const GOTO_BLOCK_END = "TextEditor.GotoBlockEnd";
59 const char * const GOTO_BLOCK_END_WITH_SELECTION = "TextEditor.GotoBlockEndWithSelection";
60 const char * const SELECT_BLOCK_UP = "TextEditor.SelectBlockUp";
61 const char * const SELECT_BLOCK_DOWN = "TextEditor.SelectBlockDown";
62 const char * const MOVE_LINE_UP = "TextEditor.MoveLineUp";
63 const char * const MOVE_LINE_DOWN = "TextEditor.MoveLineDown";
64 const char * const COPY_LINE_UP = "TextEditor.CopyLineUp";
65 const char * const COPY_LINE_DOWN = "TextEditor.CopyLineDown";
66 const char * const JOIN_LINES = "TextEditor.JoinLines";
67 const char * const INSERT_LINE_ABOVE = "TextEditor.InsertLineAboveCurrentLine";
68 const char * const INSERT_LINE_BELOW = "TextEditor.InsertLineBelowCurrentLine";
69 const char * const UPPERCASE_SELECTION = "TextEditor.UppercaseSelection";
70 const char * const LOWERCASE_SELECTION = "TextEditor.LowercaseSelection";
71 const char * const CUT_LINE = "TextEditor.CutLine";
72 const char * const DELETE_LINE = "TextEditor.DeleteLine";
73 const char * const DELETE_WORD = "TextEditor.DeleteWord";
74 const char * const SELECT_ENCODING = "TextEditor.SelectEncoding";
75 const char * const REWRAP_PARAGRAPH = "TextEditor.RewrapParagraph";
76 const char * const GOTO_OPENING_PARENTHESIS = "TextEditor.GotoOpeningParenthesis";
77 const char * const GOTO_CLOSING_PARENTHESIS = "TextEditor.GotoClosingParenthesis";
78 const char * const GOTO_LINE_START = "TextEditor.GotoLineStart";
79 const char * const GOTO_LINE_END = "TextEditor.GotoLineEnd";
80 const char * const GOTO_NEXT_LINE = "TextEditor.GotoNextLine";
81 const char * const GOTO_PREVIOUS_LINE = "TextEditor.GotoPreviousLine";
82 const char * const GOTO_PREVIOUS_CHARACTER = "TextEditor.GotoPreviousCharacter";
83 const char * const GOTO_NEXT_CHARACTER = "TextEditor.GotoNextCharacter";
84 const char * const GOTO_PREVIOUS_WORD = "TextEditor.GotoPreviousWord";
85 const char * const GOTO_NEXT_WORD = "TextEditor.GotoNextWord";
86 const char * const GOTO_PREVIOUS_WORD_CAMEL_CASE = "TextEditor.GotoPreviousWordCamelCase";
87 const char * const GOTO_NEXT_WORD_CAMEL_CASE = "TextEditor.GotoNextWordCamelCase";
88 const char * const GOTO_LINE_START_WITH_SELECTION = "TextEditor.GotoLineStartWithSelection";
89 const char * const GOTO_LINE_END_WITH_SELECTION = "TextEditor.GotoLineEndWithSelection";
90 const char * const GOTO_NEXT_LINE_WITH_SELECTION = "TextEditor.GotoNextLineWithSelection";
91 const char * const GOTO_PREVIOUS_LINE_WITH_SELECTION = "TextEditor.GotoPreviousLineWithSelection";
92 const char * const GOTO_PREVIOUS_CHARACTER_WITH_SELECTION = "TextEditor.GotoPreviousCharacterWithSelection";
93 const char * const GOTO_NEXT_CHARACTER_WITH_SELECTION = "TextEditor.GotoNextCharacterWithSelection";
94 const char * const GOTO_PREVIOUS_WORD_WITH_SELECTION = "TextEditor.GotoPreviousWordWithSelection";
95 const char * const GOTO_NEXT_WORD_WITH_SELECTION = "TextEditor.GotoNextWordWithSelection";
96 const char * const GOTO_PREVIOUS_WORD_CAMEL_CASE_WITH_SELECTION = "TextEditor.GotoPreviousWordCamelCaseWithSelection";
97 const char * const GOTO_NEXT_WORD_CAMEL_CASE_WITH_SELECTION = "TextEditor.GotoNextWordCamelCaseWithSelection";
98 const char * const C_TEXTEDITOR_MIMETYPE_TEXT = "text/plain";
99 const char * const INFO_SYNTAX_DEFINITION = "TextEditor.InfoSyntaxDefinition";
100 const char * const TASK_DOWNLOAD_DEFINITIONS = "TextEditor.Task.Download";
101 const char * const TASK_REGISTER_DEFINITIONS = "TextEditor.Task.Register";
102 const char * const TASK_OPEN_FILE = "TextEditor.Task.OpenFile";
104 // Text color and style categories
105 const char * const C_TEXT = "Text";
107 const char * const C_LINK = "Link";
108 const char * const C_SELECTION = "Selection";
109 const char * const C_LINE_NUMBER = "LineNumber";
110 const char * const C_SEARCH_RESULT = "SearchResult";
111 const char * const C_SEARCH_SCOPE = "SearchScope";
112 const char * const C_PARENTHESES = "Parentheses";
113 const char * const C_CURRENT_LINE = "CurrentLine";
114 const char * const C_CURRENT_LINE_NUMBER = "CurrentLineNumber";
115 const char * const C_OCCURRENCES = "Occurrences";
116 const char * const C_OCCURRENCES_UNUSED = "Occurrences.Unused";
117 const char * const C_OCCURRENCES_RENAME = "Occurrences.Rename";
119 const char * const C_NUMBER = "Number";
120 const char * const C_STRING = "String";
121 const char * const C_TYPE = "Type";
122 const char * const C_LOCAL = "Local";
123 const char * const C_FIELD = "Field";
124 const char * const C_STATIC = "Static";
125 const char * const C_VIRTUAL_METHOD = "VirtualMethod";
126 const char * const C_KEYWORD = "Keyword";
127 const char * const C_OPERATOR = "Operator";
128 const char * const C_PREPROCESSOR = "Preprocessor";
129 const char * const C_LABEL = "Label";
130 const char * const C_COMMENT = "Comment";
131 const char * const C_DOXYGEN_COMMENT = "Doxygen.Comment";
132 const char * const C_DOXYGEN_TAG = "Doxygen.Tag";
133 const char * const C_VISUAL_WHITESPACE = "VisualWhitespace";
135 const char * const C_DISABLED_CODE = "DisabledCode";
137 const char * const C_ADDED_LINE = "AddedLine";
138 const char * const C_REMOVED_LINE = "RemovedLine";
139 const char * const C_DIFF_FILE = "DiffFile";
140 const char * const C_DIFF_LOCATION = "DiffLocation";
142 const char * const TEXT_EDITOR_SETTINGS_CATEGORY = "C.TextEditor";
143 const char * const TEXT_EDITOR_SETTINGS_CATEGORY_ICON = ":/core/images/category_texteditor.png";
144 const char * const TEXT_EDITOR_SETTINGS_TR_CATEGORY = QT_TRANSLATE_NOOP("TextEditor", "Text Editor");
145 const char * const TEXT_EDITOR_FONT_SETTINGS = "A.FontSettings";
146 const char * const TEXT_EDITOR_BEHAVIOR_SETTINGS = "B.BehaviourSettings";
147 const char * const TEXT_EDITOR_DISPLAY_SETTINGS = "D.DisplaySettings";
148 const char * const TEXT_EDITOR_HIGHLIGHTER_SETTINGS = "E.HighlighterSettings";
149 const char * const TEXT_EDITOR_SNIPPETS_SETTINGS = "F.SnippetsSettings";
151 const char * const SNIPPET_EDITOR_ID = "TextEditor.SnippetEditor";
152 const char * const TEXT_SNIPPET_GROUP_ID = "Text";
154 } // namespace Constants
155 } // namespace TextEditor
157 #endif // TEXTEDITORCONSTANTS_H