#include <FxUIDialog.h>
Class CFxUIDialog is the base class for all dialogs.
Definition at line 29 of file FxUIDialog.h.
◆ DialogCode
Description: The value returned by a modal dialog.
Enumerator |
---|
Rejected | |
Accepted | |
Definition at line 35 of file FxUIDialog.h.
◆ CFxUIDialog()
CFxUIDialog::CFxUIDialog |
( |
| ) |
|
◆ ~CFxUIDialog()
CFxUIDialog::~CFxUIDialog |
( |
| ) |
|
◆ accept()
virtual void CFxUIDialog::accept |
( |
| ) |
|
|
virtual |
Hides the modal dialog and sets the result code to Accepted.
◆ accepted()
◆ done()
virtual void CFxUIDialog::done |
( |
int |
r | ) |
|
|
virtual |
Hides the modal dialog and sets the result code to r.
- Parameters
-
◆ exec()
virtual int CFxUIDialog::exec |
( |
bool |
bEnableViewOperation = false | ) |
|
|
virtual |
Shows the dialog as modal widget.
- Parameters
-
bEnableViewOperation | - the parameter allows view modifications with pan and pinch gestures. |
The parameter works only on touch platforms.
- Returns
- The DialogCode.
◆ finished()
This signal is emitted when the dialog's result code has been set,
either by the user or by calling done(), accept(), or reject().
◆ GetHelpId()
virtual unsigned int CFxUIDialog::GetHelpId |
( |
| ) |
const |
|
virtual |
Returns help id of the dialog.
ByDefault it's value will be Zero.
- Returns
- The dialog's help id
◆ GetHelpURL()
virtual const char* CFxUIDialog::GetHelpURL |
( |
| ) |
const |
|
virtual |
Returns help URL of the dialog.
- Returns
- The dialog's help URL
◆ GetLayout()
Returns layout of the dialog.
- Returns
- The dialog's layout
◆ hide()
void CFxUIDialog::hide |
( |
| ) |
|
◆ hideEvent()
This event handler can be reimplemented in a subclass to receive dialog hide events which are passed in the event parameter.
Hide events are sent to dialogs immediately before they are hidden.
◆ openHelp()
void CFxUIDialog::openHelp |
( |
| ) |
|
Opens contextual help for the dialog.
◆ reject()
virtual void CFxUIDialog::reject |
( |
| ) |
|
|
virtual |
Hides the modal dialog and sets the result code to Rejected.
◆ rejected()
◆ result()
int CFxUIDialog::result |
( |
| ) |
const |
Returns result code of the modal dialog
- Returns
- The DialogCode, Accepted or Rejected.
◆ setFloating()
void CFxUIDialog::setFloating |
( |
bool |
floating | ) |
|
A floating dialog is presented to the user as an independent window "on top" of its parent, instead of being docked.
The function works only on touch platforms.
◆ setResult()
void CFxUIDialog::setResult |
( |
int |
iResult | ) |
|
Sets result code of the modal dialog
- Parameters
-
◆ setupUi()
virtual void CFxUIDialog::setupUi |
( |
| ) |
|
|
pure virtual |
It will contain creation logic of all widgets in a dialog.
◆ setVisible()
void CFxUIDialog::setVisible |
( |
bool |
bVisible | ) |
|
Sets visibility of the modal dialog.
- Parameters
-
bVisible | The dialog is visible if the value of the parameter is true, otherwise it will be invisible. |
◆ setWindowTitle()
Sets title of the modal dialog
- Parameters
-
◆ showEvent()
This event handler can be reimplemented in a subclass to receive dialog show events which are passed in the event parameter.
Show events are sent to dialogs immediately before they are shown.
◆ windowTitle()
Returns title of the modal dialog
The documentation for this class was generated from the following file: