• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
CDP Studio logo

CDP Studio

The no-code and full-code software development tool for distributed control systems and HMI

  • Why CDP
    • Software developers
    • Automation engineers
    • Managers
  • Product
    • Design UI
    • Develop
    • Analyze and test
    • Deploy
    • Framework and toolbox
    • Compatibility
  • Services
  • Use cases
  • Pricing
  • Try CDP

CDP Studio Documentation

  • GUI - CDP Widgets
  • CDPBaseButtonPopDlg

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 and DialogLoader
Inherited By:

CDPBaseButtonMenu and CDPBaseButtonWithLamp

  • List of all members, including inherited members

Properties

  • pinCode : const double
  • pinTimeoutSec : const int
  • preferParent : const bool
  • routingReplacement : const QString
  • uiFileName : QString
  • useCache : const bool
  • 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
  • 9 public functions inherited from CDPBaseButtonMsg
  • 48 public functions inherited from MultiMarker
  • 60 public functions inherited from CDPBaseButton
  • 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
  • 7 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
  • 1 protected function inherited from CDPBasePadLauncher
  • 1 protected function inherited from CDPBaseControlVisible

Additional Inherited Members

  • 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

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()

The content of this document is confidential information not to be published without the consent of CDP Technologies AS.

CDP Technologies AS, www.cdpstudio.com

Get started with CDP Studio today

Let us help you take your great ideas and turn them into the products your customer will love.

Try CDP Studio for free
Why CDP Studio?

CDP Technologies AS
Hundsværgata 8,
P.O. Box 144
6001 Ålesund, Norway

Tel: +47 990 80 900
E-mail: info@cdptech.com

Company

About CDP

Contact us

Services

Partners

Blog

Developers

Get started

User manuals

Support

Document download

Release notes

Follow CDP

  • LinkedIn
  • YouTube
  • GitHub

    © Copyright 2022 CDP Technologies. Privacy and cookie policy.

    Return to top