wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
ThemeHandler.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
8
11{
12public:
13 explicit ThemeHandler(MainWindow *mainWindow, const MCPValidator *validator);
14
15 QJsonObject handleCommand(const QString &command, const QJsonObject &params, const QJsonValue &requestId) override;
16
17private:
18 QJsonObject handleGetTheme(const QJsonObject &params, const QJsonValue &requestId);
19 QJsonObject handleSetTheme(const QJsonObject &params, const QJsonValue &requestId);
20 QJsonObject handleGetEffectiveTheme(const QJsonObject &params, const QJsonValue &requestId);
21
22 QString themeToString(Theme theme) const;
23};
Theme management types and singleton ThemeManager.
Theme
Enumeration of available application themes.
BaseHandler(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
ThemeHandler(MainWindow *mainWindow, const MCPValidator *validator)
QJsonObject handleCommand(const QString &command, const QJsonObject &params, const QJsonValue &requestId) override