Maki
Formally verfied low-code orchestration
Loading...
Searching...
No Matches
event_dialog.h
1#pragma once
2
3#include <QComboBox>
4#include <QLineEdit>
5#include <QTableView>
6
7#include "property_info.h"
8#include "widgets/base_dialog.h"
9
10class FlowSaveInfo;
11class QTableWidget;
12
13namespace maki
14{
15class WidgetGroup;
16}
17
21class EventDialog : public BaseDialog
22{
23 Q_OBJECT
24public:
31 EventDialog(const QString& title, QWidget* parent = nullptr);
32
38 void setup(std::shared_ptr<FlowSaveInfo> event);
39
45 std::shared_ptr<FlowSaveInfo> getInfo() const;
46
47public slots:
48 void accept() override;
49
50private:
51 std::shared_ptr<FlowSaveInfo> mStorage;
53
58
62 void createNameInput();
63
67 void createTypeInput();
68
73
78
79 void addArgumentToTable(QTableWidget* table, std::shared_ptr<PropertyInfo> field);
80 void removeArgumentFromTable(QTableWidget* table);
81};
BaseDialog(const QString &title, double ratio, double screenFraction, QWidget *parent=nullptr)
Constructs a new BaseDialog instance.
Definition base_dialog.cpp:19
EventDialog(const QString &title, QWidget *parent=nullptr)
Constructs an EventDialog with the given title and parent widget.
Definition event_dialog.cpp:25
void setup(std::shared_ptr< FlowSaveInfo > event)
Sets up the dialog with event information.
Definition event_dialog.cpp:36
void createTypeInput()
Creates and configures the type input widget.
Definition event_dialog.cpp:66
void createReturnTypeInput()
Creates and configures the return type input widget.
Definition event_dialog.cpp:92
void createArgumentInput()
Creates and configures the argument input widget.
Definition event_dialog.cpp:108
void createNameInput()
Creates and configures the name input widget.
Definition event_dialog.cpp:56
int mEnterCount
Pointer to the stored FlowSaveInfo object.
Definition event_dialog.h:52
void populateNodeList()
Counter for enter key presses.
std::shared_ptr< FlowSaveInfo > getInfo() const
Retrieves the stored FlowSaveInfo object.
Definition event_dialog.cpp:31
Represents the save information for a flow.
Definition flow_info.h:15
A labelled container widget that groups widgets in a generic layout.
Definition widget_factory.h:146
Contains UI helper widgets and layout grouping utilities used by MAKI.
Definition generator.h:10