WSF
wizard::EditorPrefObject Class Reference

#include <EditorPrefObject.hpp>

Inherits wkf::PrefObjectT< EditorPrefData >.

Signals

void Changed ()

Public Member Functions

 EditorPrefObject (QObject *parent=nullptr)
 ~EditorPrefObject () override=default
void Apply () override
EditorPrefData ReadSettings (QSettings &aSettings) const override
void SaveSettingsP (QSettings &aSettings) const override
bool ShowLineNumbers () const
bool ShowSyntaxTips () const
const QColor EditorColor (const QString &aName) const
const unsigned int TabSpace () const
bool AutocompleteAfterPeriod () const
bool UndoPopupsEnabled () const
const std::map< TextType, TextStyle > & GetStyles ()
bool FoldText () const
unsigned int FontSize () const
void SetFontSize (unsigned int aSize)
QString FontType () const
void RememberFilePosition (const QString &aPath, const size_t aLine, const size_t aColumn)
std::pair< size_t, size_t > RecallFilePosition (const QString &aPath)

Static Public Attributes

static constexpr const char * cNAME = "EditorOptions"

Constructor & Destructor Documentation

◆ EditorPrefObject()

wizard::EditorPrefObject::EditorPrefObject ( QObject * parent = nullptr)

References cNAME.

◆ ~EditorPrefObject()

Member Function Documentation

◆ Apply()

void wizard::EditorPrefObject::Apply ( )
override

References Changed().

Referenced by ~EditorPrefObject().

◆ AutocompleteAfterPeriod()

bool wizard::EditorPrefObject::AutocompleteAfterPeriod ( ) const

Referenced by ~EditorPrefObject().

◆ Changed

void wizard::EditorPrefObject::Changed ( )
signal

◆ EditorColor()

const QColor wizard::EditorPrefObject::EditorColor ( const QString & aName) const

◆ FoldText()

bool wizard::EditorPrefObject::FoldText ( ) const

Referenced by ~EditorPrefObject().

◆ FontSize()

unsigned int wizard::EditorPrefObject::FontSize ( ) const

Referenced by ~EditorPrefObject().

◆ FontType()

QString wizard::EditorPrefObject::FontType ( ) const

Referenced by ~EditorPrefObject().

◆ GetStyles()

const std::map< wizard::TextType, wizard::TextStyle > & wizard::EditorPrefObject::GetStyles ( )

◆ ReadSettings()

◆ RecallFilePosition()

std::pair< size_t, size_t > wizard::EditorPrefObject::RecallFilePosition ( const QString & aPath)

Referenced by ~EditorPrefObject().

◆ RememberFilePosition()

void wizard::EditorPrefObject::RememberFilePosition ( const QString & aPath,
const size_t aLine,
const size_t aColumn )

Referenced by ~EditorPrefObject().

◆ SaveSettingsP()

void wizard::EditorPrefObject::SaveSettingsP ( QSettings & aSettings) const
override

Referenced by ~EditorPrefObject().

◆ SetFontSize()

void wizard::EditorPrefObject::SetFontSize ( unsigned int aSize)

References Changed().

Referenced by ~EditorPrefObject().

◆ ShowLineNumbers()

bool wizard::EditorPrefObject::ShowLineNumbers ( ) const

◆ ShowSyntaxTips()

bool wizard::EditorPrefObject::ShowSyntaxTips ( ) const

Referenced by ~EditorPrefObject().

◆ TabSpace()

const unsigned int wizard::EditorPrefObject::TabSpace ( ) const

◆ UndoPopupsEnabled()

bool wizard::EditorPrefObject::UndoPopupsEnabled ( ) const

Referenced by ~EditorPrefObject().

Member Data Documentation

◆ cNAME

const char* wizard::EditorPrefObject::cNAME = "EditorOptions"
staticconstexpr

Referenced by EditorPrefObject().


The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved