Changeset View
Changeset View
Standalone View
Standalone View
src/utils/kateconfig.h
Show First 20 Lines • Show All 979 Lines • ▼ Show 20 Line(s) | 952 | enum ConfigEntryTypes { | |||
---|---|---|---|---|---|
980 | ShowScrollBarMarks, | 980 | ShowScrollBarMarks, | ||
981 | ShowScrollBarMiniMap, | 981 | ShowScrollBarMiniMap, | ||
982 | ShowScrollBarMiniMapAll, | 982 | ShowScrollBarMiniMapAll, | ||
983 | ShowScrollBarPreview, | 983 | ShowScrollBarPreview, | ||
984 | ShowScrollbars, | 984 | ShowScrollbars, | ||
985 | ShowWordCount, | 985 | ShowWordCount, | ||
986 | TextDragAndDrop, | 986 | TextDragAndDrop, | ||
987 | SmartCopyCut, | 987 | SmartCopyCut, | ||
988 | UserSetsOfCharsToEncloseSelection, | ||||
988 | ViInputModeStealKeys, | 989 | ViInputModeStealKeys, | ||
989 | ViRelativeLineNumbers, | 990 | ViRelativeLineNumbers, | ||
990 | WordCompletion, | 991 | WordCompletion, | ||
991 | WordCompletionMinimalWordLength, | 992 | WordCompletionMinimalWordLength, | ||
992 | WordCompletionRemoveTail, | 993 | WordCompletionRemoveTail, | ||
993 | }; | 994 | }; | ||
994 | 995 | | |||
995 | public: | 996 | public: | ||
▲ Show 20 Lines • Show All 239 Lines • ▼ Show 20 Line(s) | 1235 | { | |||
1235 | return value(ShowLineCount).toBool(); | 1236 | return value(ShowLineCount).toBool(); | ||
1236 | } | 1237 | } | ||
1237 | 1238 | | |||
1238 | bool autoBrackets() const | 1239 | bool autoBrackets() const | ||
1239 | { | 1240 | { | ||
1240 | return value(AutoBrackets).toBool(); | 1241 | return value(AutoBrackets).toBool(); | ||
1241 | } | 1242 | } | ||
1242 | 1243 | | |||
1244 | enum SetOfCharsToEncloseSelection { | ||||
1245 | None, | ||||
1246 | MarkDown, | ||||
1247 | NonLetters, | ||||
1248 | MirrorChar, | ||||
1249 | UserData // Ensure to keep it at bottom of this list | ||||
1250 | }; | ||||
1251 | | ||||
1252 | bool encloseSelectionInChars() const | ||||
1253 | { | ||||
1254 | return !value(CharsToEncloseSelection).toString().isEmpty(); | ||||
1255 | } | ||||
1256 | | ||||
1257 | QString charsToEncloseSelection() const | ||||
1258 | { | ||||
1259 | return value(CharsToEncloseSelection).toString(); | ||||
1260 | } | ||||
1261 | | ||||
1243 | bool backspaceRemoveComposed() const | 1262 | bool backspaceRemoveComposed() const | ||
1244 | { | 1263 | { | ||
1245 | return value(BackspaceRemoveComposedCharacters).toBool(); | 1264 | return value(BackspaceRemoveComposedCharacters).toBool(); | ||
1246 | } | 1265 | } | ||
1247 | 1266 | | |||
1248 | private: | 1267 | private: | ||
1249 | static KateViewConfig *s_global; | 1268 | static KateViewConfig *s_global; | ||
1250 | KTextEditor::ViewPrivate *m_view = nullptr; | 1269 | KTextEditor::ViewPrivate *m_view = nullptr; | ||
▲ Show 20 Lines • Show All 206 Lines • Show Last 20 Lines |