#include <CDialog.hpp>
|
| CDialog (const CDialog &other)=delete |
|
| CDialog (CDialog &&other)=delete |
|
virtual | ~CDialog () |
|
CDialog & | operator= (const CDialog &other)=delete |
|
CDialog & | operator= (CDialog &&other)=delete |
|
void | addMsgStateMenuContext (IWidget *menuContext, const CTxtColor &txtColor) |
|
void | addOptionMenuContext (IWidget *menuContext, const std::string &txtOption, uint32_t argbColorBackground, const std::string &nameImageOpt, AbstractClickComponentGUI *componentOption, IWidget **menuOption) |
|
void | accept () |
|
void | close () |
|
void | closeDialogNonModal () |
|
void | closeDialogsRecursively () |
|
IWidget * | createComponentMenuContext (const std::string &titleMenu) |
|
void | pendingEvent () |
|
CEnumComponentsGUI::EDialogResponse | run (CEnumComponentsGUI::EDialogButtons buttons, bool isModal, bool isTransientFor, CDialog *dialogFatherRef, bool withPosition=false, double posX=0., double posY=0., unsigned char justify=5) |
|
void | runDialogNonModal (CDialog *dlgFather, const std::optional< std::function< bool()> > &closeDialogHandler=std::nullopt) |
| Run a dialog non-modal.
|
|
void | runDialogPanelIndicator (CDialog *dlgFather, bool isVisible) |
|
void | runMenuContext (IWidget **menuContext, double x, double y) |
|
IWidget * | getWidget () |
|
void | setDetectionErrors (bool bDetectErrors=true) |
|
void | setPosition (double xPos, double yPos, unsigned char justify) |
|
void | setVisibleNonModal (bool isVisible) |
|
void | setCanBeClosed (bool canBeClosed=true) |
|
|
static std::shared_ptr< CDialog > | createDialog (std::string_view title, bool isResizable, AbstractComponentGUI **panel) |
|
static CDialog * | createDialogApplication (IWidget *mainWindow) |
|
static void | runMessage (CEnumComponentsGUI::EMessageType messageType, CDialog *dlgFather, const std::string &msg, const std::string &title="") |
|
static void | runMessageError (CDialog *dlgFather, const std::string &msgError, const std::string &title="") |
|
static void | runMessageInform (CDialog *dlgFather, const std::string &msgInform, const std::string &title="") |
|
static bool | runMessageQuestion (CDialog *dlgFather, const std::string &msgQuestion, const std::string &title="") |
|
static void | runMessageWarning (CDialog *dlgFather, const std::string &msgWarning, const std::string &title="") |
|
◆ CDialog() [1/3]
CDialog::CDialog |
( |
const CDialog & | other | ) |
|
|
delete |
◆ CDialog() [2/3]
CDialog::CDialog |
( |
CDialog && | other | ) |
|
|
delete |
◆ ~CDialog()
◆ CDialog() [3/3]
◆ accept()
◆ addMsgStateMenuContext()
void CDialog::addMsgStateMenuContext |
( |
IWidget * | menuContext, |
|
|
const CTxtColor & | txtColor ) |
◆ addOptionMenuContext()
void CDialog::addOptionMenuContext |
( |
IWidget * | menuContext, |
|
|
const std::string & | txtOption, |
|
|
uint32_t | argbColorBackground, |
|
|
const std::string & | nameImageOpt, |
|
|
AbstractClickComponentGUI * | componentOption, |
|
|
IWidget ** | menuOption ) |
◆ close()
◆ closeDialogNonModal()
void CDialog::closeDialogNonModal |
( |
| ) |
|
◆ closeDialogsRecursively()
void CDialog::closeDialogsRecursively |
( |
| ) |
|
◆ createComponentMenuContext()
IWidget * CDialog::createComponentMenuContext |
( |
const std::string & | titleMenu | ) |
|
◆ createDialog()
◆ createDialogApplication()
◆ getWidget()
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ pendingEvent()
void CDialog::pendingEvent |
( |
| ) |
|
◆ run()
◆ runDialogNonModal()
void CDialog::runDialogNonModal |
( |
CDialog * | dlgFather, |
|
|
const std::optional< std::function< bool()> > & | closeDialogHandler = std::nullopt ) |
Run a dialog non-modal.
- Parameters
-
dlgFather | Dialog father. |
closeDialogHandler | Function that returns true if the dialog should be closed. By default the dialog won't be closed. |
◆ runDialogPanelIndicator()
void CDialog::runDialogPanelIndicator |
( |
CDialog * | dlgFather, |
|
|
bool | isVisible ) |
◆ runMenuContext()
void CDialog::runMenuContext |
( |
IWidget ** | menuContext, |
|
|
double | x, |
|
|
double | y ) |
◆ runMessage()
◆ runMessageError()
void CDialog::runMessageError |
( |
CDialog * | dlgFather, |
|
|
const std::string & | msgError, |
|
|
const std::string & | title = "" ) |
|
static |
◆ runMessageInform()
void CDialog::runMessageInform |
( |
CDialog * | dlgFather, |
|
|
const std::string & | msgInform, |
|
|
const std::string & | title = "" ) |
|
static |
◆ runMessageQuestion()
bool CDialog::runMessageQuestion |
( |
CDialog * | dlgFather, |
|
|
const std::string & | msgQuestion, |
|
|
const std::string & | title = "" ) |
|
static |
◆ runMessageWarning()
void CDialog::runMessageWarning |
( |
CDialog * | dlgFather, |
|
|
const std::string & | msgWarning, |
|
|
const std::string & | title = "" ) |
|
static |
◆ setCanBeClosed()
void CDialog::setCanBeClosed |
( |
bool | canBeClosed = true | ) |
|
◆ setDetectionErrors()
void CDialog::setDetectionErrors |
( |
bool | bDetectErrors = true | ) |
|
◆ setPosition()
void CDialog::setPosition |
( |
double | xPos, |
|
|
double | yPos, |
|
|
unsigned char | justify ) |
◆ setVisibleNonModal()
void CDialog::setVisibleNonModal |
( |
bool | isVisible | ) |
|
◆ m_canBeClosed
bool CDialog::m_canBeClosed {true} |
|
private |
If the dialog can be closed
◆ m_content
◆ m_dialogFatherRef
CDialog* CDialog::m_dialogFatherRef |
|
private |
◆ m_dialogRef
◆ m_dialogType
◆ m_isResizable
bool CDialog::m_isResizable |
|
private |
◆ m_panel
◆ m_title
std::string CDialog::m_title |
|
private |
◆ m_withDetectionErrors
bool CDialog::m_withDetectionErrors |
|
private |
The documentation for this class was generated from the following files: