wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
HistoryHandler.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
16{
17public:
18 explicit HistoryHandler(MainWindow *mainWindow, const MCPValidator *validator);
19
20 QJsonObject handleCommand(const QString &command, const QJsonObject &params, const QJsonValue &requestId) override;
21
22private:
23 Q_DISABLE_COPY_MOVE(HistoryHandler)
24
25 QJsonObject handleUndo(const QJsonObject &params, const QJsonValue &requestId);
26 QJsonObject handleRedo(const QJsonObject &params, const QJsonValue &requestId);
27 QJsonObject handleGetUndoStack(const QJsonObject &params, const QJsonValue &requestId);
28};
BaseHandler(MainWindow *mainWindow, const MCPValidator *validator)
QJsonObject handleCommand(const QString &command, const QJsonObject &params, const QJsonValue &requestId) override
HistoryHandler(MainWindow *mainWindow, const MCPValidator *validator)
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