починил нейроконструктор, исправил распознавание сообщений из чата

This commit is contained in:
2026-02-08 17:29:49 +03:00
parent 451ddd9ae0
commit cbb875f3f8
15 changed files with 531 additions and 223 deletions
+33
View File
@@ -0,0 +1,33 @@
// neuratemplatemanager.h
#ifndef NEURALTEMPLATEMANAGER_H
#define NEURALTEMPLATEMANAGER_H
#include "qtablewidget.h"
#include <QObject>
#include <QVector>
#include <QString>
class NeuralTemplateManager : public QObject
{
Q_OBJECT
public:
struct Template {
QString name;
QString templateText;
};
explicit NeuralTemplateManager(QObject *parent = nullptr);
void addTemplate(const QString &name, const QString &templateText);
QString getTemplateText(const QString &name) const;
void clear();
void loadFromTableWidget(QTableWidget *table);
const QVector<Template>& templates() const { return m_templates; }
private:
QVector<Template> m_templates;
};
#endif // NEURALTEMPLATEMANAGER_H