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