TextAutoGenerateText::TextAutoGenerateWidget Class

The TextAutoGenerateWidget class Author: Laurent Montel <montel@kde.org>. More...

Header: #include <TextAutoGenerateText/TextAutoGenerateWidget>
CMake: find_package(KF6TextAutoGenerateText REQUIRED)
target_link_libraries(mytarget PRIVATE KF6::TextAutoGenerateText)

Public Functions

TextAutoGenerateWidget(TextAutoGenerateText::TextAutoGenerateManager *manager, QWidget *parent = nullptr)
virtual ~TextAutoGenerateWidget() override
void loadEngine()
void slotSearchText()
QString textLineEdit() const

Signals

void needToAddInstances()
void noPluginsFound(const QString &msg)
void pluginBroken(const QString &msg)
void pluginInitialized()
void stopEditingMode(const QByteArray &uuid)

Detailed Description

Member Function Documentation

[explicit] TextAutoGenerateWidget::TextAutoGenerateWidget(TextAutoGenerateText::TextAutoGenerateManager *manager, QWidget *parent = nullptr)

Constructs a new TextAutoGenerateWidget. manager The TextAutoGenerateManager instance parent The parent widget

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

Destroys the TextAutoGenerateWidget.

void TextAutoGenerateWidget::loadEngine()

Loads the AI engine for text generation.

[signal] void TextAutoGenerateWidget::needToAddInstances()

Emitted when instances need to be added.

[signal] void TextAutoGenerateWidget::noPluginsFound(const QString &msg)

Emitted when no plugins are found. msg The error message

[signal] void TextAutoGenerateWidget::pluginBroken(const QString &msg)

Emitted when a plugin is broken or failed to load. msg The error message

[signal] void TextAutoGenerateWidget::pluginInitialized()

Emitted when the plugin is initialized successfully.

void TextAutoGenerateWidget::slotSearchText()

Performs a text search based on current input.

[signal] void TextAutoGenerateWidget::stopEditingMode(const QByteArray &uuid)

Emitted when the editing mode is stopped. uuid The UUID of the message being edited

QString TextAutoGenerateWidget::textLineEdit() const

Returns the current text in the line edit. Returns The text from the line edit widget