CDPBaseWidget Class
The CDPBaseWidget is a base class that provides interface callbacks that can be used by inheriting widgets. More...
Header: | #include <CDPBaseWidgets/CDPBaseWidget.h> |
Inherits: | CDPBaseControlVisible, |
Inherited By: | CDPBaseCheckBox, CDPBaseContainer, CDPBaseLoadingIndicator, CDPBaseMeter, CDPBasePicture, CDPBaseTickMarks, and CDPBaseToggleButton |
Properties
|
|
Public Functions
CDPBaseWidget(QWidget *parent = 0) | |
virtual | ~CDPBaseWidget() |
virtual void | forceWidgetStyle(int style) |
virtual bool | lockWidgetStyle() |
virtual bool | opaquePaintEvent() |
virtual const QStringList & | pushRoutables() const |
virtual void | setIQtCDPPointer(IQtCDP *pIQtCDP) |
virtual void | setLockWidgetStyle(bool enable) |
virtual void | setOpaquePaintEvent(bool enable) |
int | widgetStyle() |
- 4 public functions inherited from CDPBaseControlVisible
Public Slots
virtual void | forceWidgetStyle(double style) |
virtual void | handleVisible(double visible) |
virtual void | hideWidget() |
virtual void | setInCommand(bool cmd) |
virtual void | setSmoothPixmap(bool smooth) |
virtual void | setTimeOffsetSecs(double offsetInSec) |
virtual void | setWidgetFont(const QString &font) |
virtual void | setWidgetStyle(int style) |
virtual void | setWidgetTheme(const QString &theme) |
virtual void | showWidget() |
Signals
void | pushRoutablesChanged(const QStringList &pushers) |
Additional Inherited Members
- 1 protected function inherited from CDPBaseControlVisible
Detailed Description
The CDPBaseWidget is a base class that provides interface callbacks that can be used by inheriting widgets.
The CDPBaseWidget is inherited by most of the widgets. This is not a plugin widget for stand-alone use, but a class that provides global callbacks such as, theme, font, time offset and so on, for the widgets that inherits the class (or the ICDPWidgetBase interface itself).
Note that not all widgets implements these features though inheriting CDPBaseWidget.
Property Documentation
cdpVisibleRouting : const QString
This property holds the full path of the signal/parameter to control visible property.
Note: Values not equal to 1 are considered false.
See also visible.
lockWidgetStyle : bool
This property holds whether the widget style can be changed or not.
Access functions:
virtual bool | lockWidgetStyle() |
virtual void | setLockWidgetStyle(bool enable) |
See also widgetStyle.
opaquePaintEvent : bool
This property holds whether the widget is transparent.
Set true
to optimize painting when having no transparency in widget graphics This property should be set true
on all widgets that does not require transparency. It will prevent Qt from painting widgets behind current widget and thus increase performance.
Access functions:
virtual bool | opaquePaintEvent() |
virtual void | setOpaquePaintEvent(bool enable) |
pushRoutables : const QStringList
Access functions:
virtual const QStringList & | pushRoutables() const |
Notifier signal:
void | pushRoutablesChanged(const QStringList &pushers) |
visible : const bool
This property holds whether to show or hide the widget.
widgetStyle : int
This property holds the widget style to use in the svg file (will only have effect if the svg file provides styles).
Access functions:
int | widgetStyle() |
virtual void | forceWidgetStyle(int style) |
virtual void | forceWidgetStyle(double style) |
See also lockWidgetStyle.
Member Function Documentation
CDPBaseWidget::CDPBaseWidget(QWidget *parent = 0)
Default constructs an instance of CDPBaseWidget.
[virtual]
CDPBaseWidget::~CDPBaseWidget()
Destroys the instance of CDPBaseWidget. The destructor is virtual.
[virtual slot]
void CDPBaseWidget::handleVisible(double visible)
[virtual slot]
void CDPBaseWidget::hideWidget()
[virtual]
void CDPBaseWidget::setIQtCDPPointer(IQtCDP *pIQtCDP)
[virtual slot]
void CDPBaseWidget::setInCommand(bool cmd)
[virtual slot]
void CDPBaseWidget::setSmoothPixmap(bool smooth)
[virtual slot]
void CDPBaseWidget::setTimeOffsetSecs(double offsetInSec)
[virtual slot]
void CDPBaseWidget::setWidgetFont(const QString &font)
[virtual slot]
void CDPBaseWidget::setWidgetStyle(int style)
See also widgetStyle().
[virtual slot]
void CDPBaseWidget::setWidgetTheme(const QString &theme)
[virtual slot]
void CDPBaseWidget::showWidget()
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.