Cppcheck
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
CodeEditorStyle Class Reference

#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
 

Detailed Description

Definition at line 51 of file codeeditorstyle.h.

Constructor & Destructor Documentation

◆ CodeEditorStyle()

CodeEditorStyle::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 
)
explicit

Definition at line 25 of file codeeditorstyle.cpp.

Member Function Documentation

◆ getSystemTheme()

CodeEditorStyle CodeEditorStyle::getSystemTheme ( )
static

◆ isSystemTheme()

bool CodeEditorStyle::isSystemTheme ( ) const
inline

Definition at line 76 of file codeeditorstyle.h.

References mSystemTheme.

Referenced by SettingsDialog::manageStyleControls(), and saveSettings().

◆ loadSettings()

CodeEditorStyle CodeEditorStyle::loadSettings ( QSettings *  settings)
static

◆ operator!=()

bool CodeEditorStyle::operator!= ( const CodeEditorStyle rhs) const

Definition at line 84 of file codeeditorstyle.cpp.

◆ operator==()

bool CodeEditorStyle::operator== ( const CodeEditorStyle rhs) const

◆ saveSettings()

void CodeEditorStyle::saveSettings ( QSettings *  settings,
const CodeEditorStyle theStyle 
)
static

Member Data Documentation

◆ classColor

QColor CodeEditorStyle::classColor

◆ classWeight

QFont::Weight CodeEditorStyle::classWeight

◆ commentColor

QColor CodeEditorStyle::commentColor

◆ commentWeight

QFont::Weight CodeEditorStyle::commentWeight

◆ highlightBGColor

QColor CodeEditorStyle::highlightBGColor

◆ keywordColor

QColor CodeEditorStyle::keywordColor

◆ keywordWeight

QFont::Weight CodeEditorStyle::keywordWeight

◆ lineNumBGColor

QColor CodeEditorStyle::lineNumBGColor

◆ lineNumFGColor

QColor CodeEditorStyle::lineNumFGColor

◆ mSystemTheme

bool CodeEditorStyle::mSystemTheme {}

Definition at line 85 of file codeeditorstyle.h.

Referenced by getSystemTheme(), isSystemTheme(), and operator==().

◆ quoteColor

QColor CodeEditorStyle::quoteColor

◆ quoteWeight

QFont::Weight CodeEditorStyle::quoteWeight

◆ symbolBGColor

QColor CodeEditorStyle::symbolBGColor

◆ symbolFGColor

QColor CodeEditorStyle::symbolFGColor

◆ symbolWeight

QFont::Weight CodeEditorStyle::symbolWeight

◆ widgetBGColor

QColor CodeEditorStyle::widgetBGColor

◆ widgetFGColor

QColor CodeEditorStyle::widgetFGColor

The documentation for this class was generated from the following files: