Cppcheck
Public Slots | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
StyleEditDialog Class Reference

#include <codeeditstyledialog.h>

Inheritance diagram for StyleEditDialog:

Public Slots

void resetStyle ()
 
void setStyleDefaultLight ()
 
void setStyleDefaultDark ()
 
void colorChangedWidgetFG (const QColor &newColor)
 
void colorChangedWidgetBG (const QColor &newColor)
 
void colorChangedHighlightBG (const QColor &newColor)
 
void colorChangedLineNumFG (const QColor &newColor)
 
void colorChangedLineNumBG (const QColor &newColor)
 
void colorChangedKeywordFG (const QColor &newColor)
 
void weightChangedKeyword (QFont::Weight newWeight)
 
void colorChangedClassFG (const QColor &newColor)
 
void weightChangedClass (QFont::Weight newWeight)
 
void colorChangedQuoteFG (const QColor &newColor)
 
void weightChangedQuote (QFont::Weight newWeight)
 
void colorChangedCommentFG (const QColor &newColor)
 
void weightChangedComment (QFont::Weight newWeight)
 
void colorChangedSymbolFG (const QColor &newColor)
 
void colorChangedSymbolBG (const QColor &newColor)
 
void weightChangedSymbol (QFont::Weight newWeight)
 

Public Member Functions

 StyleEditDialog (const CodeEditorStyle &newStyle, QWidget *parent=nullptr)
 
CodeEditorStyle getStyle ()
 

Private Member Functions

void updateControls ()
 
void updateStyle ()
 

Private Attributes

CodeEditorStyle mStyleIncoming
 
CodeEditorStyle mStyleOutgoing
 
CodeEditormSampleEditor
 
SelectColorButtonmBtnWidgetColorFG
 
SelectColorButtonmBtnWidgetColorBG
 
SelectColorButtonmBtnHighlightBG
 
SelectColorButtonmBtnLineNumFG
 
SelectColorButtonmBtnLineNumBG
 
SelectColorButtonmBtnKeywordFG
 
SelectFontWeightCombomCBKeywordWeight
 
SelectColorButtonmBtnClassFG
 
SelectFontWeightCombomCBClassWeight
 
SelectColorButtonmBtnQuoteFG
 
SelectFontWeightCombomCBQuoteWeight
 
SelectColorButtonmBtnCommentFG
 
SelectFontWeightCombomCBCommentWeight
 
SelectColorButtonmBtnSymbolFG
 
SelectColorButtonmBtnSymbolBG
 
SelectFontWeightCombomCBSymbolWeight
 
QPushButton * mBtnDefaultLight
 
QPushButton * mBtnDefaultDark
 

Static Private Attributes

static const QString mSampleDocument
 
static const QStringList mErrSymbolsList
 
static const int mErrLineNum = 16
 

Detailed Description

Definition at line 40 of file codeeditstyledialog.h.

Constructor & Destructor Documentation

◆ StyleEditDialog()

StyleEditDialog::StyleEditDialog ( const CodeEditorStyle newStyle,
QWidget *  parent = nullptr 
)
explicit

Member Function Documentation

◆ colorChangedClassFG

void StyleEditDialog::colorChangedClassFG ( const QColor &  newColor)
slot

Definition at line 305 of file codeeditstyledialog.cpp.

References CodeEditorStyle::classColor, mStyleOutgoing, and updateStyle().

Referenced by StyleEditDialog().

◆ colorChangedCommentFG

void StyleEditDialog::colorChangedCommentFG ( const QColor &  newColor)
slot

Definition at line 329 of file codeeditstyledialog.cpp.

References CodeEditorStyle::commentColor, mStyleOutgoing, and updateStyle().

Referenced by StyleEditDialog().

◆ colorChangedHighlightBG

void StyleEditDialog::colorChangedHighlightBG ( const QColor &  newColor)
slot

◆ colorChangedKeywordFG

void StyleEditDialog::colorChangedKeywordFG ( const QColor &  newColor)
slot

Definition at line 293 of file codeeditstyledialog.cpp.

References CodeEditorStyle::keywordColor, mStyleOutgoing, and updateStyle().

Referenced by StyleEditDialog().

◆ colorChangedLineNumBG

void StyleEditDialog::colorChangedLineNumBG ( const QColor &  newColor)
slot

Definition at line 287 of file codeeditstyledialog.cpp.

References CodeEditorStyle::lineNumBGColor, mStyleOutgoing, and updateStyle().

Referenced by StyleEditDialog().

◆ colorChangedLineNumFG

void StyleEditDialog::colorChangedLineNumFG ( const QColor &  newColor)
slot

Definition at line 281 of file codeeditstyledialog.cpp.

References CodeEditorStyle::lineNumFGColor, mStyleOutgoing, and updateStyle().

Referenced by StyleEditDialog().

◆ colorChangedQuoteFG

void StyleEditDialog::colorChangedQuoteFG ( const QColor &  newColor)
slot

Definition at line 317 of file codeeditstyledialog.cpp.

References mStyleOutgoing, CodeEditorStyle::quoteColor, and updateStyle().

Referenced by StyleEditDialog().

◆ colorChangedSymbolBG

void StyleEditDialog::colorChangedSymbolBG ( const QColor &  newColor)
slot

Definition at line 347 of file codeeditstyledialog.cpp.

References mStyleOutgoing, CodeEditorStyle::symbolBGColor, and updateStyle().

Referenced by StyleEditDialog().

◆ colorChangedSymbolFG

void StyleEditDialog::colorChangedSymbolFG ( const QColor &  newColor)
slot

Definition at line 341 of file codeeditstyledialog.cpp.

References mStyleOutgoing, CodeEditorStyle::symbolFGColor, and updateStyle().

Referenced by StyleEditDialog().

◆ colorChangedWidgetBG

void StyleEditDialog::colorChangedWidgetBG ( const QColor &  newColor)
slot

Definition at line 269 of file codeeditstyledialog.cpp.

References mStyleOutgoing, updateStyle(), and CodeEditorStyle::widgetBGColor.

Referenced by StyleEditDialog().

◆ colorChangedWidgetFG

void StyleEditDialog::colorChangedWidgetFG ( const QColor &  newColor)
slot

Definition at line 263 of file codeeditstyledialog.cpp.

References mStyleOutgoing, updateStyle(), and CodeEditorStyle::widgetFGColor.

Referenced by StyleEditDialog().

◆ getStyle()

CodeEditorStyle StyleEditDialog::getStyle ( )

Definition at line 237 of file codeeditstyledialog.cpp.

References mStyleOutgoing.

Referenced by SettingsDialog::editCodeEditorStyle().

◆ resetStyle

void StyleEditDialog::resetStyle ( )
slot

Definition at line 242 of file codeeditstyledialog.cpp.

References mStyleIncoming, mStyleOutgoing, updateControls(), and updateStyle().

Referenced by StyleEditDialog().

◆ setStyleDefaultDark

void StyleEditDialog::setStyleDefaultDark ( )
slot

Definition at line 256 of file codeeditstyledialog.cpp.

References defaultStyleDark(), mStyleOutgoing, updateControls(), and updateStyle().

Referenced by StyleEditDialog().

◆ setStyleDefaultLight

void StyleEditDialog::setStyleDefaultLight ( )
slot

Definition at line 249 of file codeeditstyledialog.cpp.

References defaultStyleLight(), mStyleOutgoing, updateControls(), and updateStyle().

Referenced by StyleEditDialog().

◆ updateControls()

void StyleEditDialog::updateControls ( )
private

◆ updateStyle()

void StyleEditDialog::updateStyle ( )
private

◆ weightChangedClass

void StyleEditDialog::weightChangedClass ( QFont::Weight  newWeight)
slot

Definition at line 311 of file codeeditstyledialog.cpp.

References CodeEditorStyle::classWeight, mStyleOutgoing, and updateStyle().

Referenced by StyleEditDialog().

◆ weightChangedComment

void StyleEditDialog::weightChangedComment ( QFont::Weight  newWeight)
slot

Definition at line 335 of file codeeditstyledialog.cpp.

References CodeEditorStyle::commentWeight, mStyleOutgoing, and updateStyle().

Referenced by StyleEditDialog().

◆ weightChangedKeyword

void StyleEditDialog::weightChangedKeyword ( QFont::Weight  newWeight)
slot

Definition at line 299 of file codeeditstyledialog.cpp.

References CodeEditorStyle::keywordWeight, mStyleOutgoing, and updateStyle().

Referenced by StyleEditDialog().

◆ weightChangedQuote

void StyleEditDialog::weightChangedQuote ( QFont::Weight  newWeight)
slot

Definition at line 323 of file codeeditstyledialog.cpp.

References mStyleOutgoing, CodeEditorStyle::quoteWeight, and updateStyle().

Referenced by StyleEditDialog().

◆ weightChangedSymbol

void StyleEditDialog::weightChangedSymbol ( QFont::Weight  newWeight)
slot

Definition at line 353 of file codeeditstyledialog.cpp.

References mStyleOutgoing, CodeEditorStyle::symbolWeight, and updateStyle().

Referenced by StyleEditDialog().

Member Data Documentation

◆ mBtnClassFG

SelectColorButton* StyleEditDialog::mBtnClassFG
private

Definition at line 86 of file codeeditstyledialog.h.

Referenced by StyleEditDialog(), and updateControls().

◆ mBtnCommentFG

SelectColorButton* StyleEditDialog::mBtnCommentFG
private

Definition at line 90 of file codeeditstyledialog.h.

Referenced by StyleEditDialog(), and updateControls().

◆ mBtnDefaultDark

QPushButton* StyleEditDialog::mBtnDefaultDark
private

Definition at line 97 of file codeeditstyledialog.h.

Referenced by StyleEditDialog(), and updateStyle().

◆ mBtnDefaultLight

QPushButton* StyleEditDialog::mBtnDefaultLight
private

Definition at line 96 of file codeeditstyledialog.h.

Referenced by StyleEditDialog(), and updateStyle().

◆ mBtnHighlightBG

SelectColorButton* StyleEditDialog::mBtnHighlightBG
private

Definition at line 81 of file codeeditstyledialog.h.

Referenced by StyleEditDialog(), and updateControls().

◆ mBtnKeywordFG

SelectColorButton* StyleEditDialog::mBtnKeywordFG
private

Definition at line 84 of file codeeditstyledialog.h.

Referenced by StyleEditDialog(), and updateControls().

◆ mBtnLineNumBG

SelectColorButton* StyleEditDialog::mBtnLineNumBG
private

Definition at line 83 of file codeeditstyledialog.h.

Referenced by StyleEditDialog(), and updateControls().

◆ mBtnLineNumFG

SelectColorButton* StyleEditDialog::mBtnLineNumFG
private

Definition at line 82 of file codeeditstyledialog.h.

Referenced by StyleEditDialog(), and updateControls().

◆ mBtnQuoteFG

SelectColorButton* StyleEditDialog::mBtnQuoteFG
private

Definition at line 88 of file codeeditstyledialog.h.

Referenced by StyleEditDialog(), and updateControls().

◆ mBtnSymbolBG

SelectColorButton* StyleEditDialog::mBtnSymbolBG
private

Definition at line 93 of file codeeditstyledialog.h.

Referenced by StyleEditDialog(), and updateControls().

◆ mBtnSymbolFG

SelectColorButton* StyleEditDialog::mBtnSymbolFG
private

Definition at line 92 of file codeeditstyledialog.h.

Referenced by StyleEditDialog(), and updateControls().

◆ mBtnWidgetColorBG

SelectColorButton* StyleEditDialog::mBtnWidgetColorBG
private

Definition at line 80 of file codeeditstyledialog.h.

Referenced by StyleEditDialog(), and updateControls().

◆ mBtnWidgetColorFG

SelectColorButton* StyleEditDialog::mBtnWidgetColorFG
private

Definition at line 79 of file codeeditstyledialog.h.

Referenced by StyleEditDialog(), and updateControls().

◆ mCBClassWeight

SelectFontWeightCombo* StyleEditDialog::mCBClassWeight
private

Definition at line 87 of file codeeditstyledialog.h.

Referenced by StyleEditDialog(), and updateControls().

◆ mCBCommentWeight

SelectFontWeightCombo* StyleEditDialog::mCBCommentWeight
private

Definition at line 91 of file codeeditstyledialog.h.

Referenced by StyleEditDialog(), and updateControls().

◆ mCBKeywordWeight

SelectFontWeightCombo* StyleEditDialog::mCBKeywordWeight
private

Definition at line 85 of file codeeditstyledialog.h.

Referenced by StyleEditDialog(), and updateControls().

◆ mCBQuoteWeight

SelectFontWeightCombo* StyleEditDialog::mCBQuoteWeight
private

Definition at line 89 of file codeeditstyledialog.h.

Referenced by StyleEditDialog(), and updateControls().

◆ mCBSymbolWeight

SelectFontWeightCombo* StyleEditDialog::mCBSymbolWeight
private

Definition at line 94 of file codeeditstyledialog.h.

Referenced by StyleEditDialog(), and updateControls().

◆ mErrLineNum

const int StyleEditDialog::mErrLineNum = 16
staticprivate

Definition at line 101 of file codeeditstyledialog.h.

Referenced by StyleEditDialog().

◆ mErrSymbolsList

const QStringList StyleEditDialog::mErrSymbolsList
staticprivate
Initial value:
= (
QStringList(QStringList()
<< "nLife"
<< "dValue"
<< "nValue"))

Definition at line 100 of file codeeditstyledialog.h.

Referenced by StyleEditDialog().

◆ mSampleDocument

const QString StyleEditDialog::mSampleDocument
staticprivate

Definition at line 99 of file codeeditstyledialog.h.

Referenced by StyleEditDialog().

◆ mSampleEditor

CodeEditor* StyleEditDialog::mSampleEditor
private

Definition at line 77 of file codeeditstyledialog.h.

Referenced by StyleEditDialog(), and updateStyle().

◆ mStyleIncoming

CodeEditorStyle StyleEditDialog::mStyleIncoming
private

Definition at line 74 of file codeeditstyledialog.h.

Referenced by resetStyle().

◆ mStyleOutgoing

CodeEditorStyle StyleEditDialog::mStyleOutgoing
private

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