Maki
Formally verified low-code orchestration
Toggle main menu visibility
Loading...
Searching...
No Matches
capability_call_selector.h
1
2
#pragma once
3
4
#include <QString>
5
#include <QStringList>
6
#include <QWidget>
7
#include <memory>
8
9
#include "control_widget.h"
10
11
class
QComboBox;
12
class
QLabel;
13
class
QPushButton;
14
class
QStackedWidget;
15
class
QWheelEvent;
16
class
QTextBrowser;
17
18
class
StyledFrame
;
19
class
LibraryContainer
;
20
class
NodeSaveInfo
;
21
22
namespace
oclero::qlementine
23
{
24
class
Label;
25
}
26
27
namespace
maki
28
{
29
class
SelectorWidget
;
30
}
31
32
class
CapabilityCallSelector :
public
maki::ControlWidget
33
{
34
Q_OBJECT
35
36
public
:
37
static
CapabilityCallSelector* create(
const
QString& nodeId, QWidget* parent =
nullptr
);
38
explicit
CapabilityCallSelector(
const
QString& nodeId, QWidget* parent =
nullptr
);
39
40
void
start()
override
;
41
void
buildLibraries(
const
QVector<std::shared_ptr<NodeSaveInfo>>& nodes);
42
43
QPushButton* confirmButton()
const
;
44
maki::SelectorWidget
* eventSelector()
const
;
45
46
void
setTouring()
override
;
47
48
signals:
49
void
accepted(
const
QStringList& selected);
50
void
changedTabs(
const
int
index);
51
void
eventSelected(
const
QString& eventName);
52
53
protected
:
54
void
wheelEvent(QWheelEvent* event)
override
;
55
56
private
:
57
QStackedWidget* mStack =
nullptr
;
58
StyledFrame
* mContent =
nullptr
;
59
60
oclero::qlementine::Label* mCapabilityLabel =
nullptr
;
61
maki::SelectorWidget
* mEventCombo =
nullptr
;
62
QPushButton* mConfirmButton =
nullptr
;
63
64
std::shared_ptr<NodeSaveInfo> mSelectedCapability;
65
const
QString mNodeId;
66
QTextBrowser* mEventInfo;
67
68
void
updateTab(
const
int
tab);
69
void
selectCapability(
const
QString& instanceId,
const
QString& capabilityType);
70
void
confirmSelection();
71
void
showCapabilityPage();
72
73
QString libraryFromId(
const
QString&
id
)
const
;
74
LibraryContainer
* getLibrary(
const
QString&
id
);
75
};
LibraryContainer
A custom QGraphicsView for managing a library of nodes.
Definition
library_container.h:12
NodeSaveInfo
Represents a node that can be saved and loaded.
Definition
node_info.h:16
StyledFrame
Definition
frame.h:10
maki::SelectorWidget
A widget for selecting one value from a list of options.
Definition
widget_factory.h:451
maki
Contains UI helper widgets and layout grouping utilities used by MAKI.
Definition
macros.h:9
Generated for
MAKI
· © 2026 with
Doxygen
1.9.8
GitHub
Research