wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
ElementHandler.h
Go to the documentation of this file.
1// Copyright 2015 - 2026, GIBIS-UNIFESP and the wiRedPanda contributors
2// SPDX-License-Identifier: GPL-3.0-or-later
3
4#pragma once
5
7
17{
18public:
19 explicit ElementHandler(MainWindow *mainWindow, const MCPValidator *validator);
20
21 QJsonObject handleCommand(const QString &command, const QJsonObject &params, const QJsonValue &requestId) override;
22
23private:
24 QJsonObject handleCreateElement(const QJsonObject &params, const QJsonValue &requestId);
25 QJsonObject handleDeleteElement(const QJsonObject &params, const QJsonValue &requestId);
26 QJsonObject handleListElements(const QJsonObject &params, const QJsonValue &requestId);
27 QJsonObject handleMoveElement(const QJsonObject &params, const QJsonValue &requestId);
28 QJsonObject handleSetElementProperties(const QJsonObject &params, const QJsonValue &requestId);
29 QJsonObject handleSetInputValue(const QJsonObject &params, const QJsonValue &requestId);
30 QJsonObject handleGetOutputValue(const QJsonObject &params, const QJsonValue &requestId);
31 QJsonObject handleRotateElement(const QJsonObject &params, const QJsonValue &requestId);
32 QJsonObject handleFlipElement(const QJsonObject &params, const QJsonValue &requestId);
33 QJsonObject handleUpdateElement(const QJsonObject &params, const QJsonValue &requestId);
34 QJsonObject handleChangeInputSize(const QJsonObject &params, const QJsonValue &requestId);
35 QJsonObject handleChangeOutputSize(const QJsonObject &params, const QJsonValue &requestId);
36 QJsonObject handleToggleTruthTableOutput(const QJsonObject &params, const QJsonValue &requestId);
37 QJsonObject handleMorphElement(const QJsonObject &params, const QJsonValue &requestId);
38};
BaseHandler(MainWindow *mainWindow, const MCPValidator *validator)
ElementHandler(MainWindow *mainWindow, const MCPValidator *validator)
QJsonObject handleCommand(const QString &command, const QJsonObject &params, const QJsonValue &requestId) override
JSON Schema validator for MCP commands and responses using native json-schema-validator.
The top-level application window hosting the tab bar, menus, element palette, and editor.
Definition MainWindow.h:47