Cppcheck
|
#include <codeeditorstyle.h>
Public Member Functions | |
CodeEditorStyle (QColor CtrlFGColor, QColor CtrlBGColor, QColor HiLiBGColor, QColor LnNumFGColor, QColor LnNumBGColor, QColor KeyWdFGColor, QFont::Weight KeyWdWeight, QColor ClsFGColor, QFont::Weight ClsWeight, QColor QteFGColor, QFont::Weight QteWeight, QColor CmtFGColor, QFont::Weight CmtWeight, QColor SymbFGColor, QColor SymbBGColor, QFont::Weight SymbWeight) | |
bool | operator== (const CodeEditorStyle &rhs) const |
bool | operator!= (const CodeEditorStyle &rhs) const |
bool | isSystemTheme () const |
Static Public Member Functions | |
static CodeEditorStyle | getSystemTheme () |
static CodeEditorStyle | loadSettings (QSettings *settings) |
static void | saveSettings (QSettings *settings, const CodeEditorStyle &theStyle) |
Public Attributes | |
bool | mSystemTheme {} |
QColor | widgetFGColor |
QColor | widgetBGColor |
QColor | highlightBGColor |
QColor | lineNumFGColor |
QColor | lineNumBGColor |
QColor | keywordColor |
QFont::Weight | keywordWeight |
QColor | classColor |
QFont::Weight | classWeight |
QColor | quoteColor |
QFont::Weight | quoteWeight |
QColor | commentColor |
QFont::Weight | commentWeight |
QColor | symbolFGColor |
QColor | symbolBGColor |
QFont::Weight | symbolWeight |
Definition at line 51 of file codeeditorstyle.h.
|
explicit |
Definition at line 25 of file codeeditorstyle.cpp.
|
static |
Definition at line 89 of file codeeditorstyle.cpp.
References defaultStyleLight(), and mSystemTheme.
Referenced by loadSettings(), and SettingsDialog::setCodeEditorStyleDefault().
|
inline |
Definition at line 76 of file codeeditorstyle.h.
References mSystemTheme.
Referenced by SettingsDialog::manageStyleControls(), and saveSettings().
|
static |
Definition at line 96 of file codeeditorstyle.cpp.
References classColor, classWeight, commentColor, commentWeight, defaultStyleDark(), defaultStyleLight(), getSystemTheme(), highlightBGColor, keywordColor, keywordWeight, lineNumBGColor, lineNumFGColor, quoteColor, quoteWeight, SETTINGS_STYLE_CLASSFG(), SETTINGS_STYLE_CLASSWT(), SETTINGS_STYLE_COMMENTFG(), SETTINGS_STYLE_COMMENTWT(), SETTINGS_STYLE_GROUP(), SETTINGS_STYLE_HILIFG(), SETTINGS_STYLE_KEYWORDFG(), SETTINGS_STYLE_KEYWORDWT(), SETTINGS_STYLE_LINENUMBG(), SETTINGS_STYLE_LINENUMFG(), SETTINGS_STYLE_QUOTEFG(), SETTINGS_STYLE_QUOTEWT(), SETTINGS_STYLE_SYMBOLBG(), SETTINGS_STYLE_SYMBOLFG(), SETTINGS_STYLE_SYMBOLWT(), SETTINGS_STYLE_TYPE(), SETTINGS_STYLE_TYPE_CUSTOM(), SETTINGS_STYLE_TYPE_DARK(), SETTINGS_STYLE_TYPE_LIGHT(), SETTINGS_STYLE_WIDGETBG(), SETTINGS_STYLE_WIDGETFG(), symbolBGColor, symbolFGColor, symbolWeight, widgetBGColor, and widgetFGColor.
Referenced by ResultsView::initialize(), SettingsDialog::SettingsDialog(), and ResultsView::updateStyleSetting().
bool CodeEditorStyle::operator!= | ( | const CodeEditorStyle & | rhs | ) | const |
Definition at line 84 of file codeeditorstyle.cpp.
bool CodeEditorStyle::operator== | ( | const CodeEditorStyle & | rhs | ) | const |
Definition at line 62 of file codeeditorstyle.cpp.
References classColor, classWeight, commentColor, commentWeight, highlightBGColor, keywordColor, keywordWeight, lineNumBGColor, lineNumFGColor, mSystemTheme, quoteColor, quoteWeight, symbolBGColor, symbolFGColor, symbolWeight, widgetBGColor, and widgetFGColor.
|
static |
Definition at line 174 of file codeeditorstyle.cpp.
References classColor, classWeight, commentColor, commentWeight, defaultStyleDark(), defaultStyleLight(), highlightBGColor, isSystemTheme(), keywordColor, keywordWeight, lineNumBGColor, lineNumFGColor, quoteColor, quoteWeight, SETTINGS_STYLE_CLASSFG(), SETTINGS_STYLE_CLASSWT(), SETTINGS_STYLE_COMMENTFG(), SETTINGS_STYLE_COMMENTWT(), SETTINGS_STYLE_GROUP(), SETTINGS_STYLE_HILIFG(), SETTINGS_STYLE_KEYWORDFG(), SETTINGS_STYLE_KEYWORDWT(), SETTINGS_STYLE_LINENUMBG(), SETTINGS_STYLE_LINENUMFG(), SETTINGS_STYLE_QUOTEFG(), SETTINGS_STYLE_QUOTEWT(), SETTINGS_STYLE_SYMBOLBG(), SETTINGS_STYLE_SYMBOLFG(), SETTINGS_STYLE_SYMBOLWT(), SETTINGS_STYLE_TYPE(), SETTINGS_STYLE_TYPE_CUSTOM(), SETTINGS_STYLE_TYPE_DARK(), SETTINGS_STYLE_TYPE_LIGHT(), SETTINGS_STYLE_WIDGETBG(), SETTINGS_STYLE_WIDGETFG(), symbolBGColor, symbolFGColor, symbolWeight, widgetBGColor, and widgetFGColor.
Referenced by SettingsDialog::saveSettingValues().
QColor CodeEditorStyle::classColor |
Definition at line 93 of file codeeditorstyle.h.
Referenced by StyleEditDialog::colorChangedClassFG(), Highlighter::Highlighter(), loadSettings(), operator==(), saveSettings(), Highlighter::setStyle(), and StyleEditDialog::updateControls().
QFont::Weight CodeEditorStyle::classWeight |
Definition at line 94 of file codeeditorstyle.h.
Referenced by Highlighter::Highlighter(), loadSettings(), operator==(), saveSettings(), Highlighter::setStyle(), StyleEditDialog::updateControls(), and StyleEditDialog::weightChangedClass().
QColor CodeEditorStyle::commentColor |
Definition at line 97 of file codeeditorstyle.h.
Referenced by StyleEditDialog::colorChangedCommentFG(), Highlighter::Highlighter(), loadSettings(), operator==(), saveSettings(), Highlighter::setStyle(), and StyleEditDialog::updateControls().
QFont::Weight CodeEditorStyle::commentWeight |
Definition at line 98 of file codeeditorstyle.h.
Referenced by Highlighter::Highlighter(), loadSettings(), operator==(), saveSettings(), Highlighter::setStyle(), StyleEditDialog::updateControls(), and StyleEditDialog::weightChangedComment().
QColor CodeEditorStyle::highlightBGColor |
Definition at line 88 of file codeeditorstyle.h.
Referenced by StyleEditDialog::colorChangedHighlightBG(), CodeEditor::highlightErrorLine(), loadSettings(), operator==(), saveSettings(), and StyleEditDialog::updateControls().
QColor CodeEditorStyle::keywordColor |
Definition at line 91 of file codeeditorstyle.h.
Referenced by StyleEditDialog::colorChangedKeywordFG(), Highlighter::Highlighter(), loadSettings(), operator==(), saveSettings(), Highlighter::setStyle(), and StyleEditDialog::updateControls().
QFont::Weight CodeEditorStyle::keywordWeight |
Definition at line 92 of file codeeditorstyle.h.
Referenced by Highlighter::Highlighter(), loadSettings(), operator==(), saveSettings(), Highlighter::setStyle(), StyleEditDialog::updateControls(), and StyleEditDialog::weightChangedKeyword().
QColor CodeEditorStyle::lineNumBGColor |
Definition at line 90 of file codeeditorstyle.h.
Referenced by StyleEditDialog::colorChangedLineNumBG(), CodeEditor::lineNumberAreaPaintEvent(), loadSettings(), operator==(), saveSettings(), and StyleEditDialog::updateControls().
QColor CodeEditorStyle::lineNumFGColor |
Definition at line 89 of file codeeditorstyle.h.
Referenced by StyleEditDialog::colorChangedLineNumFG(), CodeEditor::lineNumberAreaPaintEvent(), loadSettings(), operator==(), saveSettings(), and StyleEditDialog::updateControls().
bool CodeEditorStyle::mSystemTheme {} |
Definition at line 85 of file codeeditorstyle.h.
Referenced by getSystemTheme(), isSystemTheme(), and operator==().
QColor CodeEditorStyle::quoteColor |
Definition at line 95 of file codeeditorstyle.h.
Referenced by StyleEditDialog::colorChangedQuoteFG(), Highlighter::Highlighter(), loadSettings(), operator==(), saveSettings(), Highlighter::setStyle(), and StyleEditDialog::updateControls().
QFont::Weight CodeEditorStyle::quoteWeight |
Definition at line 96 of file codeeditorstyle.h.
Referenced by Highlighter::Highlighter(), loadSettings(), operator==(), saveSettings(), Highlighter::setStyle(), StyleEditDialog::updateControls(), and StyleEditDialog::weightChangedQuote().
QColor CodeEditorStyle::symbolBGColor |
Definition at line 100 of file codeeditorstyle.h.
Referenced by StyleEditDialog::colorChangedSymbolBG(), Highlighter::Highlighter(), loadSettings(), operator==(), saveSettings(), Highlighter::setStyle(), and StyleEditDialog::updateControls().
QColor CodeEditorStyle::symbolFGColor |
Definition at line 99 of file codeeditorstyle.h.
Referenced by StyleEditDialog::colorChangedSymbolFG(), Highlighter::Highlighter(), loadSettings(), operator==(), saveSettings(), Highlighter::setStyle(), and StyleEditDialog::updateControls().
QFont::Weight CodeEditorStyle::symbolWeight |
Definition at line 101 of file codeeditorstyle.h.
Referenced by Highlighter::Highlighter(), loadSettings(), operator==(), saveSettings(), Highlighter::setStyle(), StyleEditDialog::updateControls(), and StyleEditDialog::weightChangedSymbol().
QColor CodeEditorStyle::widgetBGColor |
Definition at line 87 of file codeeditorstyle.h.
Referenced by StyleEditDialog::colorChangedWidgetBG(), CodeEditor::generateStyleString(), loadSettings(), operator==(), saveSettings(), and StyleEditDialog::updateControls().
QColor CodeEditorStyle::widgetFGColor |
Definition at line 86 of file codeeditorstyle.h.
Referenced by StyleEditDialog::colorChangedWidgetFG(), CodeEditor::generateStyleString(), loadSettings(), operator==(), saveSettings(), and StyleEditDialog::updateControls().