ORE Studio 0.0.4
Loading...
Searching...
No Matches
PluginBase.hpp
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 *
3 * Copyright (C) 2026 Marco Craveiro <marco.craveiro@gmail.com>
4 *
5 * This program is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU General Public License as published by the Free Software
7 * Foundation; either version 3 of the License, or (at your option) any later
8 * version.
9 *
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
16 * Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 *
18 */
19#ifndef ORES_QT_PLUGIN_BASE_HPP
20#define ORES_QT_PLUGIN_BASE_HPP
21
22#include <QObject>
23#include "ores.qt/export.hpp"
24#include "ores.qt/IPlugin.hpp"
25
26namespace ores::qt {
27
28class DetachableMdiSubWindow;
29class EntityController;
30
46class ORES_QT_API PluginBase : public QObject, public IPlugin {
47 Q_OBJECT
48
49public:
50 explicit PluginBase(QObject* parent = nullptr);
51 ~PluginBase() override = default;
52
53signals:
55 void statusMessage(const QString& msg);
56
59
62
63protected:
73 void connectControllerSignals(EntityController* ctrl);
74};
75
76}
77
78#endif
Qt-based graphical user interface for ORE Studio.
Definition AccountController.hpp:32
QMdiSubWindow that can be detached to become a floating window.
Definition DetachableMdiSubWindow.hpp:40
Abstract base class for entity controllers.
Definition EntityController.hpp:52
Abstract interface that every domain plugin must implement.
Definition IPlugin.hpp:70
Concrete base class for all domain plugins.
Definition PluginBase.hpp:46
void windowCreated(DetachableMdiSubWindow *window)
A detachable MDI sub-window was created by a controller.
void statusMessage(const QString &msg)
Status or error message to display in the host status bar.
void windowDestroyed(DetachableMdiSubWindow *window)
A detachable MDI sub-window owned by a controller was destroyed.