itom
Loading...
Searching...
No Matches
manager.h
1
/* ********************************************************************
2
itom software
3
URL: http://www.uni-stuttgart.de/ito
4
Copyright (C) 2020, Institut für Technische Optik (ITO),
5
Universität Stuttgart, Germany
6
7
This file is part of itom.
8
9
itom is free software; you can redistribute it and/or modify it
10
under the terms of the GNU Library General Public Licence as published by
11
the Free Software Foundation; either version 2 of the Licence, or (at
12
your option) any later version.
13
14
itom is distributed in the hope that it will be useful, but
15
WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
17
General Public Licence for more details.
18
19
You should have received a copy of the GNU Library General Public License
20
along with itom. If not, see <http://www.gnu.org/licenses/>.
21
22
Further hints:
23
------------------------
24
25
This file belongs to the code editor of itom. The code editor is
26
in major parts a fork / rewritten version of the python-based source
27
code editor PyQode from Colin Duquesnoy and others
28
(see https://github.com/pyQode). PyQode itself is licensed under
29
the MIT License (MIT).
30
31
Some parts of the code editor of itom are also inspired by the
32
source code editor of the Spyder IDE (https://github.com/spyder-ide),
33
also licensed under the MIT License and developed by the Spyder Project
34
Contributors.
35
36
*********************************************************************** */
37
38
#ifndef MANAGER_H
39
#define MANAGER_H
40
41
#include <qobject.h>
42
43
namespace
ito
{
44
45
/*
46
This module contains the Manager API.
47
*/
48
49
class
CodeEditor;
50
51
/*
52
A manager manages a specific aspect of a CodeEdit instance:
53
- backend management (start/stop server, request work,...)
54
- modes management
55
- panels management and drawing
56
- file manager
57
Managers are typically created internally when you create a CodeEdit.
58
You interact with them later, e.g. when you want to start the backend
59
process or when you want to install/retrieve a mode or a panel.
60
::
61
editor = CodeEdit()
62
# use the backend manager to start the backend server
63
editor.backend.start(...)
64
editor.backend.send_request(...)
65
# use the panels controller to install a panel
66
editor.panels.install(MyPanel(), MyPanel.Position.Right)
67
my_panel = editor.panels.get(MyPanel)
68
# and so on
69
*/
70
71
class
Manager
:
public
QObject
72
{
73
Q_OBJECT
74
75
public
:
76
Manager
(
CodeEditor
*editor, QObject *parent = NULL);
77
virtual
~Manager
();
78
79
CodeEditor
* editor()
const
;
80
81
private
:
82
CodeEditor
* m_pEditor;
83
};
84
85
}
//end namespace ito
86
87
88
#endif
ito::CodeEditor
Definition
codeEditor.h:110
ito::Manager
Definition
manager.h:72
ito
Definition
apiFunctionsGraph.cpp:40
itom
Qitom
codeEditor
managers
manager.h
Generated on Tue Nov 12 2024 10:43:14 for itom by
1.12.0