Power System Platform
2026w23a-beta
Loading...
Searching...
No Matches
ControlEditorManager.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2026 Thales Lima Oliveira <thales.oliveira@uftm.edu.br>
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* any later version.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program. If not, see <https://www.gnu.org/licenses/>.
16
*/
17
18
#ifndef CONTROLEDITORMANAGER_H
19
#define CONTROLEDITORMANAGER_H
20
21
#include <vector>
22
23
class
Workspace
;
24
class
ControlEditor
;
25
class
ControlElementContainer
;
26
34
class
ControlEditorManager
35
{
36
public
:
37
explicit
ControlEditorManager
(
Workspace
* workspace);
38
~ControlEditorManager
();
39
40
ControlEditor
* Open(
ControlElementContainer
* container,
int
plotLib,
int
ioFlags);
41
42
void
Remove(
ControlEditor
* editor);
43
44
void
CloseAll();
45
46
bool
IsOpen(
ControlElementContainer
* container)
const
;
47
48
ControlEditor
* GetEditor(
const
ControlElementContainer
* container)
const
;
49
50
private
:
51
Workspace
* m_workspace =
nullptr
;
52
53
std::vector<ControlEditor*> m_editors;
54
};
55
56
#endif
ControlEditor
Definition
ControlEditor.h:122
ControlEditorManager
This class is responsible to manage the ControlEditor instances in the application.
Definition
ControlEditorManager.h:35
ControlElementContainer
Class that can contain all control elements. Can identify (using RTTI) the elements from a generic li...
Definition
ControlElementContainer.h:48
Workspace
This class manages the graphical and power elements. It is responsible for handling the user's intera...
Definition
Workspace.h:105
Project
editors
ControlEditorManager.h
Generated by
1.9.8