TextGrammarCheck::GrammalecteManager Class

Manager for Grammalecte grammar checking service. Author: Laurent Montel <montel@kde.org>. More...

Header: #include <TextGrammarCheck/GrammalecteManager>
CMake: find_package(KF6TextGrammarCheck REQUIRED)
target_link_libraries(mytarget PRIVATE KF6::TextGrammarCheck)
Inherits: QObject

Public Functions

GrammalecteManager(QObject *parent = nullptr)
virtual ~GrammalecteManager() override
QString grammalectePath() const
void loadSettings()
QStringList options() const
QString pythonPath() const
void saveSettings()
void setGrammalectePath(const QString &grammalectePath)
void setOptions(const QStringList &saveOptions)
void setPythonPath(const QString &pythonPath)

Static Public Members

TextGrammarCheck::GrammalecteManager *self()

Detailed Description

Member Function Documentation

[explicit] GrammalecteManager::GrammalecteManager(QObject *parent = nullptr)

Constructs a new GrammalecteManager.

[override virtual noexcept] GrammalecteManager::~GrammalecteManager()

Destroys the manager.

QString GrammalecteManager::grammalectePath() const

Returns the path to the Grammalecte installation.

See also setGrammalectePath().

void GrammalecteManager::loadSettings()

Loads settings from the configuration.

QStringList GrammalecteManager::options() const

Returns the list of active grammar checking options.

See also setOptions().

QString GrammalecteManager::pythonPath() const

Returns the path to the Python interpreter.

See also setPythonPath().

void GrammalecteManager::saveSettings()

Saves settings to the configuration.

[static] TextGrammarCheck::GrammalecteManager *GrammalecteManager::self()

Returns the global instance of GrammalecteManager.

void GrammalecteManager::setGrammalectePath(const QString &grammalectePath)

Sets the path to the Grammalecte installation.

See also grammalectePath().

void GrammalecteManager::setOptions(const QStringList &saveOptions)

Sets the list of grammar checking options to use.

See also options().

void GrammalecteManager::setPythonPath(const QString &pythonPath)

Sets the path to the Python interpreter.

See also pythonPath().