Maki
Formally verfied low-code orchestration
Loading...
Searching...
No Matches
maki::PromptDialog Class Reference

A dialog for prompting the user with a message and options. More...

#include <prompt.h>

Inheritance diagram for maki::PromptDialog:
BaseDialog

Public Member Functions

 PromptDialog (const QString &title, const QString &accept, const QString &reject, const QString &message, QWidget *parent=nullptr)
 Constructs a new PromptDialog instance.
void setType (oclero::qlementine::StatusBadge type)
 Sets the type of the status badge.
void setExtraInfo (const QString &info)
 Sets extra information to be displayed in the dialog.
Public Member Functions inherited from BaseDialog
 BaseDialog (const QString &title, double ratio, double screenFraction, QWidget *parent=nullptr)
 Constructs a new BaseDialog instance.

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

A dialog for prompting the user with a message and options.

Constructor & Destructor Documentation

◆ PromptDialog()

maki::PromptDialog::PromptDialog ( const QString & title,
const QString & accept,
const QString & reject,
const QString & message,
QWidget * parent = nullptr )

Constructs a new PromptDialog instance.

Parameters
titleThe title of the dialog.
acceptThe text for the accept button.
rejectThe text for the reject button.
messageThe message to display in the dialog.
parentThe parent widget.

Member Function Documentation

◆ setExtraInfo()

void maki::PromptDialog::setExtraInfo ( const QString & info)

Sets extra information to be displayed in the dialog.

Parameters
infoThe extra information text.

◆ setType()

void maki::PromptDialog::setType ( oclero::qlementine::StatusBadge type)

Sets the type of the status badge.

Parameters
typeThe new type for the status badge.

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