Loading debian/changelog +6 −0 Original line number Diff line number Diff line blogi (20260416+2) unstable; urgency=medium * Export importHtml als Q_INVOKABLE in LocalApi für AI Html-Import. -- Jan Koester <jan.koester@tuxist.de> Thu, 16 Apr 2026 07:59:15 +0200 blogi (20260416+1) unstable; urgency=medium * AI Tab Optimierungen: Strikte HTML-Template Prompts und Verwendung Loading editor/localapi.cpp +8 −2 Original line number Diff line number Diff line Loading @@ -263,13 +263,19 @@ void LocalApi::importHtmlFile() { QString html = QString::fromUtf8(file.readAll()); file.close(); importHtml(html); } bool LocalApi::importHtml(const QString &html) { if (_doc->importHtml(html)) { _currentFile.clear(); emit currentFileChanged(_currentFile); emit documentChanged(); emit statusMessage("Imported HTML: " + path); emit statusMessage("HTML erfolgreich importiert!"); return true; } else { emit statusMessage("Failed to import " + path); emit statusMessage("Fehler beim HTML Import."); return false; } } Loading editor/localapi.h +1 −0 Original line number Diff line number Diff line Loading @@ -105,6 +105,7 @@ public: Q_INVOKABLE void newDocument(); Q_INVOKABLE void openDocument(); Q_INVOKABLE void importHtmlFile(); Q_INVOKABLE bool importHtml(const QString &html); Q_INVOKABLE void exportHtmlFile(); Q_INVOKABLE QString generateAiPrompt(const QString &userRequest); Q_INVOKABLE void saveDocument(); Loading Loading
debian/changelog +6 −0 Original line number Diff line number Diff line blogi (20260416+2) unstable; urgency=medium * Export importHtml als Q_INVOKABLE in LocalApi für AI Html-Import. -- Jan Koester <jan.koester@tuxist.de> Thu, 16 Apr 2026 07:59:15 +0200 blogi (20260416+1) unstable; urgency=medium * AI Tab Optimierungen: Strikte HTML-Template Prompts und Verwendung Loading
editor/localapi.cpp +8 −2 Original line number Diff line number Diff line Loading @@ -263,13 +263,19 @@ void LocalApi::importHtmlFile() { QString html = QString::fromUtf8(file.readAll()); file.close(); importHtml(html); } bool LocalApi::importHtml(const QString &html) { if (_doc->importHtml(html)) { _currentFile.clear(); emit currentFileChanged(_currentFile); emit documentChanged(); emit statusMessage("Imported HTML: " + path); emit statusMessage("HTML erfolgreich importiert!"); return true; } else { emit statusMessage("Failed to import " + path); emit statusMessage("Fehler beim HTML Import."); return false; } } Loading
editor/localapi.h +1 −0 Original line number Diff line number Diff line Loading @@ -105,6 +105,7 @@ public: Q_INVOKABLE void newDocument(); Q_INVOKABLE void openDocument(); Q_INVOKABLE void importHtmlFile(); Q_INVOKABLE bool importHtml(const QString &html); Q_INVOKABLE void exportHtmlFile(); Q_INVOKABLE QString generateAiPrompt(const QString &userRequest); Q_INVOKABLE void saveDocument(); Loading