CDPBaseButtonPopDlg Class
The Popup Dialog Button is a button widget that can load an ui file when clicked. Note features like pin protection and global cache. More...
Header: | #include <CDPBaseWidgets/CDPBaseButtonPopDlg.h> |
Inherits: | CDPBaseButtonMarker, DialogLoader, and RoutingContainerBase |
Inherited By: |
Properties
|
|
- 21 properties inherited from CDPBaseButtonMarker
- 5 properties inherited from CDPBaseButtonMsg
- 31 properties inherited from CDPBaseButton
Public Functions
CDPBaseButtonPopDlg(QWidget *parent) | |
virtual | ~CDPBaseButtonPopDlg() |
Reimplemented Public Functions
virtual void | setIQtCDPPointer(IQtCDP *pIQtCDP) |
- 3 public functions inherited from CDPBaseButtonMarker
- 11 public functions inherited from DialogLoader
- 3 public functions inherited from RoutingContainerBase
- 9 public functions inherited from CDPBaseButtonMsg
- 48 public functions inherited from MultiMarker
- 62 public functions inherited from CDPBaseButton
- 17 public functions inherited from CDPBaseCom
- 26 public functions inherited from CDPBasePadLauncher
- 3 public functions inherited from StateChanger
- 4 public functions inherited from CDPBaseControlVisible
Public Slots
virtual void | setUiFileName(QString filename = "?", IQtCDP *pInterface = 0, QWidget *parent = 0) |
virtual void | showDialog(bool show = true) |
virtual void | showDialogOnMatch(double pin = 0) |
- 3 public slots inherited from CDPBaseButtonMarker
- 5 public slots inherited from CDPBaseButtonMsg
- 15 public slots inherited from CDPBaseButton
Signals
void | clickedPinProtected(int) |
- 2 signals inherited from CDPBaseButtonMarker
- 3 signals inherited from CDPBaseButtonMsg
- 6 signals inherited from CDPBaseButton
Protected Functions
virtual void | updateChecked() |
- 2 protected functions inherited from CDPBaseButtonMarker
- 1 protected function inherited from CDPBaseButtonMsg
- 13 protected functions inherited from CDPBaseButton
- 4 protected functions inherited from CDPBaseCom
- 1 protected function inherited from CDPBasePadLauncher
- 1 protected function inherited from CDPBaseControlVisible
Additional Inherited Members
- 2 static public members inherited from CDPBaseCom
- 9 protected slots inherited from CDPBaseButton
Detailed Description
The Popup Dialog Button is a button widget that can load an ui file when clicked. Note features like pin protection and global cache.
The Popup Dialog Button have all the properties and functionality of CDPBaseButtonMsg and CDPBaseButton. Visit this documentation and have a look at the Button Examples for more information about styling and other button features.
Note: Make sure that all objects that are connected using signals and slots have unique names across .ui files. Failing to do so might cause source objects to connect wrong targets. In addition, be aware that connections are error prone when maintaining projects as they are not visible in normal mode and not possible to copy.
Property Documentation
cdpFullTargetRouting : const QString
cdpTargetRouting : const QString
pinCode : const double
This property holds the pin code to be used when loading pin pad.
Note: pinCode will change num pad property to PinPad when set.
This will popup a pin code dialog when the button is clicked. When a matching pin code is entered, the ui specified in uiFileName is loaded.
pinTimeoutSec : const int
This property holds an optional time period the user does not have to retype the pin.
preferParent : const bool
This property holds whether to strive to set main window as parent for the loaded dialog or not.
routingReplacement : const QString
This property holds the string to use when replacing routing in loaded dialog.
This feature is most often used when loading global dialogs. The string added here will replace the replaceable routing string in all base widget children in the dialog (when clicked and opened).
Click here for further details.
uiFileName : QString
This property holds the path to the dialog we want to load when clicking the button.
Note: Make sure that all objects that are connected using signals and slots have unique names across .ui files. Failing to do so might cause source objects to connect wrong targets. In addition, be aware that connections are error prone when maintaining projects as they are not visible in normal mode and not possible to copy.
Access functions:
virtual void | setUiFileName(QString filename = "?", IQtCDP *pInterface = 0, QWidget *parent = 0) |
useCache : const bool
This property holds whether to reuse dialogs from global cache.
Setting dialog cache will make the widget reuse dialogs from the global cache (if the file name exists). Note that the dialog will get added to global cache if not already there. The dialog cache feature is usually enabled along with the replaceable routing feature.
Member Function Documentation
CDPBaseButtonPopDlg::CDPBaseButtonPopDlg(QWidget *parent)
Default constructs an instance of CDPBaseButtonPopDlg.
[virtual]
CDPBaseButtonPopDlg::~CDPBaseButtonPopDlg()
Destroys the instance of CDPBaseButtonPopDlg. The destructor is virtual.
[signal]
void CDPBaseButtonPopDlg::clickedPinProtected(int)
[virtual]
void CDPBaseButtonPopDlg::setIQtCDPPointer(IQtCDP *pIQtCDP)
[virtual slot]
void CDPBaseButtonPopDlg::showDialog(bool show = true)
[virtual slot]
void CDPBaseButtonPopDlg::showDialogOnMatch(double pin = 0)
[virtual protected]
void CDPBaseButtonPopDlg::updateChecked()
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.