2023-01-04 22:40:18 +01:00
|
|
|
/*
|
2025-01-04 13:37:40 +01:00
|
|
|
Copyright 2006-2025 The QElectroTech Team
|
2024-04-24 14:14:40 +02:00
|
|
|
This file is part of QElectroTech.
|
2023-01-04 22:40:18 +01:00
|
|
|
|
2024-04-24 14:14:40 +02:00
|
|
|
QElectroTech is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
2023-01-04 22:40:18 +01:00
|
|
|
|
2024-04-24 14:14:40 +02:00
|
|
|
QElectroTech is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
2023-01-04 22:40:18 +01:00
|
|
|
|
2024-04-24 14:14:40 +02:00
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
2023-01-04 22:40:18 +01:00
|
|
|
*/
|
|
|
|
#ifndef PROJECTPROPERTIESHANDLER_H
|
|
|
|
#define PROJECTPROPERTIESHANDLER_H
|
|
|
|
|
|
|
|
#include <QPointer>
|
|
|
|
|
|
|
|
#include "../TerminalStrip/GraphicsItem/properties/terminalstriplayoutshandler.h"
|
|
|
|
|
|
|
|
class QETProject;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief The ProjectPropertiesHandler class
|
2025-02-04 13:48:35 +01:00
|
|
|
* A central class that handles, keeps and provides all utilities
|
2023-01-04 22:40:18 +01:00
|
|
|
* to easily manage all kind of properties used in a project.
|
|
|
|
*
|
|
|
|
* This is a new class since QElectroTech 0.9
|
2025-02-04 13:48:35 +01:00
|
|
|
* by consequence it is small and you can find a lot of properties (made before qet 0.9)
|
2023-01-04 22:40:18 +01:00
|
|
|
* everywhere in the code.
|
|
|
|
* All new properties should be managed by this class
|
2025-02-04 13:48:35 +01:00
|
|
|
* (of course if it makes sense to be managed by this class).
|
|
|
|
* Older properties which are not managed by this class but should be,
|
2023-01-04 22:40:18 +01:00
|
|
|
* will be managed in future.
|
|
|
|
*/
|
|
|
|
class ProjectPropertiesHandler
|
|
|
|
{
|
2024-04-24 14:14:40 +02:00
|
|
|
public:
|
|
|
|
ProjectPropertiesHandler(QETProject *project);
|
2023-01-04 22:40:18 +01:00
|
|
|
|
2024-04-24 14:14:40 +02:00
|
|
|
TerminalStripLayoutsHandler& terminalStripLayoutHandler();
|
2023-01-04 22:40:18 +01:00
|
|
|
|
2024-04-24 14:14:40 +02:00
|
|
|
private:
|
|
|
|
QPointer<QETProject> m_project;
|
2023-01-04 22:40:18 +01:00
|
|
|
|
2024-04-24 14:14:40 +02:00
|
|
|
TerminalStripLayoutsHandler m_terminal_strip_layout_handler;
|
2023-01-04 22:40:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PROJECTPROPERTIESHANDLER_H
|