FlowArithmeticCalculator 1.0.0
Flow Arithmetic Calculator
Loading...
Searching...
No Matches
gui::window::prompt::TextInputDialog Class Referencefinal

Utility class for prompting the user for input. More...

#include <TextInputDialog.h>

+ Inheritance diagram for gui::window::prompt::TextInputDialog:
+ Collaboration diagram for gui::window::prompt::TextInputDialog:

Public Member Functions

 TextInputDialog ()=delete
 
- Public Member Functions inherited from gui::window::prompt::QAppSingletonProto
virtual ~QAppSingletonProto ()=default
 

Static Public Member Functions

static std::optional< std::string > promptForTextInput (const std::string &title, const std::string &prompt, const std::string &defaultValue, business_logic::delegate::IWindowDelegate *windowDelegate)
 
static std::optional< FloatingPointpromptForFloatingPointInput (const std::string &title, const std::string &prompt, const std::optional< FloatingPoint > &defaultValue, business_logic::delegate::IWindowDelegate *windowDelegate)
 
- Static Public Member Functions inherited from gui::window::prompt::QAppSingletonProto
static std::unique_ptr< QApplication > createTempQApplication ()
 Create a temporary QApplication instance.
 

Detailed Description

Utility class for prompting the user for input.

See also
gui::window::prompt::QAppSingletonProto

Definition at line 20 of file TextInputDialog.h.

Constructor & Destructor Documentation

◆ TextInputDialog()

gui::window::prompt::TextInputDialog::TextInputDialog ( )
delete

Member Function Documentation

◆ promptForFloatingPointInput()

std::optional< FloatingPoint > gui::window::prompt::TextInputDialog::promptForFloatingPointInput ( const std::string &  title,
const std::string &  prompt,
const std::optional< FloatingPoint > &  defaultValue,
business_logic::delegate::IWindowDelegate windowDelegate 
)
static

Definition at line 31 of file TextInputDialog.cpp.

References promptForTextInput().

Referenced by gui::window::GLFWQtWindowImpl< RendererImpl, Canvas >::promptFloatingPointInput().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ promptForTextInput()

std::optional< std::string > gui::window::prompt::TextInputDialog::promptForTextInput ( const std::string &  title,
const std::string &  prompt,
const std::string &  defaultValue,
business_logic::delegate::IWindowDelegate windowDelegate 
)
static

Definition at line 4 of file TextInputDialog.cpp.

References gui::window::prompt::QAppSingletonProto::createTempQApplication(), and business_logic::delegate::IWindowDelegate::focusWindow().

Referenced by promptForFloatingPointInput().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: