#include <FxUIDialog.h>
Class CFxUIDialog is the base class for all dialogs.
Definition at line 32 of file FxUIDialog.h.
◆ DialogCode
Description: The value returned by a modal dialog.
| Enumerator |
|---|
| Rejected | |
| Accepted | |
Definition at line 38 of file FxUIDialog.h.
◆ Gravity
| Enumerator |
|---|
| Left | Horizontally gravitate to left window border.
|
| CenterHorizontal | Horizontally gravitate to the center between left and right window borders.
|
| Right | Horizontally gravitate to right window border.
|
| Top | Vertically gravitate to upper window border.
|
| CenterVertical | Vertically gravitate to the center between upper and lower window borders.
|
| Bottom | Vertically gravitate to lower window border.
|
| Center | Gravitate to the center of the window.
|
| HorizontalMask | Bit mask for extracting horizontal gravity.
|
| VerticalMask | Bit mask for extracting vertical gravity.
|
Definition at line 40 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()
◆ adjustDialogPosition()
| void CFxUIDialog::adjustDialogPosition |
( |
| ) |
|
Adjust the position of the dialog to fit it inside the screen.
◆ adjustSize()
| void CFxUIDialog::adjustSize |
( |
| ) |
|
Adjust the size of the dialog to fit it's contents.
◆ 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.
◆ isVisible()
| bool CFxUIDialog::isVisible |
( |
| ) |
|
◆ mapToGlobal()
Translates the view coordinate pos to the coordinate system of parent.
- Parameters
-
◆ maximumHeight()
| int CFxUIDialog::maximumHeight |
( |
| ) |
|
Returns the maximum height of dialog.
- Returns
- int value.
◆ maximumWidth()
| int CFxUIDialog::maximumWidth |
( |
| ) |
|
Returns the maximum width of dialog.
- Returns
- int value.
◆ minimumHeight()
| int CFxUIDialog::minimumHeight |
( |
| ) |
|
Returns the minimum height of dialog.
- Returns
- int value.
◆ minimumWidth()
| int CFxUIDialog::minimumWidth |
( |
| ) |
|
Returns the minimum width of dialog.
- Returns
- int value.
◆ move()
| void CFxUIDialog::move |
( |
int | x, |
|
|
int | y ) |
Move the dialog at specified x,y coordinates.
- Parameters
-
◆ openHelp()
| void CFxUIDialog::openHelp |
( |
| ) |
|
Opens contextual help for the dialog.
◆ raise()
| void CFxUIDialog::raise |
( |
| ) |
|
◆ reject()
| virtual void CFxUIDialog::reject |
( |
| ) |
|
|
virtual |
Hides the modal dialog and sets the result code to Rejected.
◆ rejected()
◆ resize()
| void CFxUIDialog::resize |
( |
int | w, |
|
|
int | h ) |
Resize the dialog to width and height.
- Parameters
-
◆ resizeEvent()
This event handler can be reimplemented in a subclass to receive view resize events which are passed in the event parameter.
When resizeEvent() is called, the dialog already has its new geometry.
- Parameters
-
| event | Pointer to the resize event. |
◆ result()
| int CFxUIDialog::result |
( |
| ) |
const |
Returns result code of the modal dialog
- Returns
- The DialogCode, Accepted or Rejected.
◆ setBorderColor()
Sets the border color of dialog.
- Parameters
-
◆ setBorderWidth()
| void CFxUIDialog::setBorderWidth |
( |
float | width | ) |
|
Sets the border width of dialog.
- Parameters
-
◆ setCornerRadius()
| void CFxUIDialog::setCornerRadius |
( |
float | radius | ) |
|
Sets the corner radius of dialog.
- Parameters
-
◆ setDragging()
| void CFxUIDialog::setDragging |
( |
const bool & | bDragging | ) |
|
Sets the dragging for dialog enable/disable
- Parameters
-
◆ 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.
◆ setGeometry()
Specify a position and size of this dialog. The position is specified as an offset from an origin, which can be chosen from one of 9 positions of the main window (corners, edge centers, and center).
- Parameters
-
| x | Horizontal offset from origin, use a negative value for spacing with Right gravity. |
| y | Vertical offset from origin, use a negative value for spacing with Bottom gravity. |
| width | Width of dialog, specify -1 for default width. |
| height | Height of dialog, specify -1 for default height. |
| gravity | Gravity and origin for positioning, use bitwise or of constants from enum Gravity. Default is top left. |
◆ setMask()
Sets the mask for dialog
- Parameters
-
◆ setMaximumHeight()
| void CFxUIDialog::setMaximumHeight |
( |
int | iHeight | ) |
|
Sets the maximum height of dialog.
- Parameters
-
◆ setMaximumWidth()
| void CFxUIDialog::setMaximumWidth |
( |
int | iWidth | ) |
|
Sets the maximum width of dialog.
- Parameters
-
◆ setMinimumHeight()
| void CFxUIDialog::setMinimumHeight |
( |
int | iHeight | ) |
|
Sets the minimum height of dialog.
- Parameters
-
◆ setMinimumWidth()
| void CFxUIDialog::setMinimumWidth |
( |
int | iWidth | ) |
|
Sets the minimum width of dialog.
- Parameters
-
◆ setResult()
| void CFxUIDialog::setResult |
( |
int | iResult | ) |
|
Sets result code of the modal dialog
- Parameters
-
◆ setSizeGripEnabled()
| void CFxUIDialog::setSizeGripEnabled |
( |
bool | bEnable | ) |
|
Sets the size grip for dialog enable/disable
- 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
-
◆ show()
| virtual void CFxUIDialog::show |
( |
| ) |
|
|
virtual |
Shows the dialog as modal less widget.
◆ 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: