KSyntaxHighlighting
7 #ifndef KSYNTAXHIGHLIGHTING_THEME_H
8 #define KSYNTAXHIGHLIGHTING_THEME_H
10 #include "ksyntaxhighlighting_export.h"
13 #include <QExplicitlySharedDataPointer>
15 #include <qobjectdefs.h>
20 class RepositoryPrivate;
64 class KSYNTAXHIGHLIGHTING_EXPORT
Theme
67 Q_PROPERTY(
QString name READ name)
68 Q_PROPERTY(
QString translatedName READ translatedName)
226 TemplateReadOnlyPlaceholder
228 Q_ENUM(EditorColorRole)
254 bool isValid()
const;
266 QString translatedName()
const;
276 bool isReadOnly()
const;
292 QRgb textColor(TextStyle style)
const;
299 QRgb selectedTextColor(TextStyle style)
const;
306 QRgb backgroundColor(TextStyle style)
const;
313 QRgb selectedBackgroundColor(TextStyle style)
const;
318 bool isBold(TextStyle style)
const;
323 bool isItalic(TextStyle style)
const;
328 bool isUnderline(TextStyle style)
const;
333 bool isStrikeThrough(TextStyle style)
const;
339 QRgb editorColor(EditorColorRole role)
const;
345 KSYNTAXHIGHLIGHTING_NO_EXPORT
explicit Theme(ThemeData *data);
346 friend class RepositoryPrivate;
347 friend class ThemeData;
362 #endif // KSYNTAXHIGHLIGHTING_THEME_H
@ SearchHighlight
Background color for matching text while searching.
@ Attribute
Text style for attributes of functions or objects, e.g.
@ CommentVar
Text style that refers to variables in a comment, such as after @param <identifier> in Doxygen or Jav...
@ Comment
Text style for normal comments.
@ MarkWarning
Background color for general warning marks.
@ Operator
Text style for operators such as +, -, *, / and :: etc.
@ BracketMatching
Background color for matching bracket pairs (including quotes)
@ SpellChecking
Color used to underline spell check errors.
@ CurrentLineNumber
Foreground color for drawing the current line number.
@ Variable
Text style for variables, if applicable.
@ IconBorder
Background color for the icon border.
@ Error
Text style indicating wrong syntax.
@ TextSelection
Background color for selected text.
@ MarkBreakpointActive
Background color for active breakpoints.
@ ControlFlow
Text style for control flow highlighting, such as if, then, else, return, or continue.
@ Annotation
Text style for annotations in comments, such as @param in Doxygen or JavaDoc.
TextStyle
Default styles that can be referenced from syntax definition XML files.
@ TabMarker
Foreground color for visualizing tabs and trailing spaces.
@ TemplatePlaceholder
Background color for all editable placeholders in text templates.
@ Alert
Text style for comment specials such as TODO and WARNING in comments.
@ ModifiedLines
Color used to draw a vertical line for marking changed lines.
@ SavedLines
Color used to draw a vertical line for marking saved lines.
@ Constant
Text style for language constants, e.g.
@ Float
Text style for floating point numbers.
@ MarkError
Background color for general error marks.
@ IndentationLine
Color used to draw vertical indentation levels, typically a line.
@ Preprocessor
Text style for preprocessor statements.
@ LineNumbers
Foreground color for drawing the line numbers.
@ Char
Text style for single characters such as 'a'.
@ MarkBreakpointDisabled
Background color for inactive (disabled) breakpoints.
@ BuiltIn
Text style for built-in language classes and functions.
@ SpecialString
Text style for special strings such as regular expressions in ECMAScript or the LaTeX math mode.
@ Import
Text style for includes, imports, modules, or LaTeX packages.
@ BaseN
Text style for numbers with base other than 10.
@ Separator
Line color used to draw separator lines, e.g.
@ DataType
Text style for data types such as int, char, float etc.
@ CurrentLine
Background color for the line of the current text cursor.
@ TemplateFocusedPlaceholder
Background color for the currently active placeholder in text templates.
@ Extension
Text style for well-known extensions, such as Qt or boost.
@ Documentation
Text style for comments that reflect API documentation, such as doxygen /** */ comments.
@ VerbatimString
Text style for verbatim strings such as HERE docs.
EditorColorRole
Editor color roles, used to paint line numbers, editor background etc.
@ Warning
Text style for warnings, such as the keyword @warning in Doxygen.
@ TemplateBackground
Background color for text templates (snippets).
@ MarkBookmark
Background color for bookmarks.
@ SpecialChar
Text style for escaped characters in strings, such as "hello\n".
@ Keyword
Text style for language keywords.
@ MarkBreakpointReached
Background color for a reached breakpoint.
@ WordWrapMarker
Color used in the icon border to indicate dynamically wrapped lines.
@ MarkExecution
Background color for marking the current execution position.
@ RegionMarker
Text style for region markers, typically defined by BEGIN/END.
@ CodeFolding
Background colors for code folding regions in the text area, as well as code folding indicators in th...
@ Information
Text style for information, such as the keyword @note in Doxygen.
@ ReplaceHighlight
Background color for replaced text for a search & replace action.
@ String
Text style for strings, for instance "hello world".
@ Function
Text style for function definitions and function calls.
@ DecVal
Text style for decimal values.
Color theme definition used for highlighting.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Dec 3 2023 04:02:49 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.