Maki
Formally verfied low-code orchestration
Loading...
Searching...
No Matches
EventDialog Class Reference

Dialog for managing event information. More...

#include <event_dialog.h>

Inheritance diagram for EventDialog:
BaseDialog

Public Member Functions

 EventDialog (const QString &title, QWidget *parent=nullptr)
 Constructs an EventDialog with the given title and parent widget.
void setup (std::shared_ptr< FlowSaveInfo > event)
 Sets up the dialog with event information.
std::shared_ptr< FlowSaveInfo > getInfo () const
 Retrieves the stored FlowSaveInfo object.
Public Member Functions inherited from BaseDialog
 BaseDialog (const QString &title, double ratio, double screenFraction, QWidget *parent=nullptr)
 Constructs a new BaseDialog instance.

Private Member Functions

void populateNodeList ()
 Counter for enter key presses.
void createNameInput ()
 Creates and configures the name input widget.
void createTypeInput ()
 Creates and configures the type input widget.
void createReturnTypeInput ()
 Creates and configures the return type input widget.
void createArgumentInput ()
 Creates and configures the argument input widget.

Private Attributes

int mEnterCount
 Pointer to the stored FlowSaveInfo object.

Additional Inherited Members

Protected Member Functions inherited from BaseDialog
void setSize (double ratio, double screenFraction)
 Sets the size of the dialog based on the given ratio and screen fraction.
void setSize (double ratio, double screenFraction, qreal heightFraction)
 Sets the size of the dialog based on the given ratio, screen fraction, and height fraction.
QVBoxLayout * layout ()
 Returns the layout of the dialog.
QDialogButtonBox * createButtons (const QString &ok, const QString &cancel)
 Creates a button box with OK and Cancel buttons.
void limitWidth (int minWidth)
 Defines the width limits for the dialog.
void limitHeight (int minHeight)
 Defines the heigth limits for the dialog.

Detailed Description

Dialog for managing event information.

Constructor & Destructor Documentation

◆ EventDialog()

EventDialog::EventDialog ( const QString & title,
QWidget * parent = nullptr )

Constructs an EventDialog with the given title and parent widget.

Parameters
titleThe title of the dialog.
parentThe parent widget.

Member Function Documentation

◆ getInfo()

std::shared_ptr< FlowSaveInfo > EventDialog::getInfo ( ) const

Retrieves the stored FlowSaveInfo object.

Returns
const std::shared_ptr<FlowSaveInfo>& The stored FlowSaveInfo object.

◆ populateNodeList()

void EventDialog::populateNodeList ( )
private

Counter for enter key presses.

Populates the node list with available options.

◆ setup()

void EventDialog::setup ( std::shared_ptr< FlowSaveInfo > event)

Sets up the dialog with event information.

Parameters
eventShared pointer to the FlowSaveInfo object containing event data.

The documentation for this class was generated from the following files:
  • /__w/maki/maki/app/widgets/structure/event_dialog.h
  • /__w/maki/maki/app/widgets/structure/event_dialog.cpp