RoutingReplacementWidget Class
The Routing Replacement Widget can be used along with the CDPBaseUiLoaderWidget to replace and emit strings when new replacementRouting is selected. More...
Header: | #include <CDPBaseWidgets/RoutingReplacementWidget.h> |
Properties
- routings : QStringList
Public Functions
RoutingReplacementWidget(QWidget *parent = 0) | |
QStringList | routings() const |
void | setRoutings(const QStringList &routings) |
Signals
void | routingChanged1(const QString &routing) |
void | routingChanged2(const QString &routing) |
void | routingChanged3(const QString &routing) |
void | routingChanged4(const QString &routing) |
void | routingChanged5(const QString &routing) |
void | routingChanged6(const QString &routing) |
void | routingChanged7(const QString &routing) |
void | routingChanged8(const QString &routing) |
void | routingListChanged(const QStringList &routings) |
Protected Slots
void | connectRoutingChanged(RoutingReplacementObject *object, int index) |
void | emitRoutingListChanged(const QString &routing) |
Detailed Description
The Routing Replacement Widget can be used along with the CDPBaseUiLoaderWidget to replace and emit strings when new replacementRouting is selected.
Though the class and property names indicate communication, the widget does not connect the routings to CDP and can thus be used for any string replacements.
How to use the widget to change a text label
The first routing in the RoutingReplacementWidget has value "Click to enable REPLACE" and the signal named routingChanged1 is connected to QLabel. Now, if the widget is loaded by a CDPBaseUiLoaderWidget that has for instance a replacement string that includes REPLACE=Winch1, selecting that string index will make the RoutingReplacementWidget change the label text to "Click to enable Winch1".
Note that there is no point in adding more routing strings than the number of routingChanged signals. In that case, more than one widget is required.
Property Documentation
routings : QStringList
Access functions:
QStringList | routings() const |
void | setRoutings(const QStringList &routings) |
Member Function Documentation
RoutingReplacementWidget::RoutingReplacementWidget(QWidget *parent = 0)
Default constructs an instance of RoutingReplacementWidget.
[protected slot]
void RoutingReplacementWidget::connectRoutingChanged(RoutingReplacementObject *object, int index)
[protected slot]
void RoutingReplacementWidget::emitRoutingListChanged(const QString &routing)
[signal]
void RoutingReplacementWidget::routingChanged1(const QString &routing)
[signal]
void RoutingReplacementWidget::routingChanged2(const QString &routing)
[signal]
void RoutingReplacementWidget::routingChanged3(const QString &routing)
[signal]
void RoutingReplacementWidget::routingChanged4(const QString &routing)
[signal]
void RoutingReplacementWidget::routingChanged5(const QString &routing)
[signal]
void RoutingReplacementWidget::routingChanged6(const QString &routing)
[signal]
void RoutingReplacementWidget::routingChanged7(const QString &routing)
[signal]
void RoutingReplacementWidget::routingChanged8(const QString &routing)
[signal]
void RoutingReplacementWidget::routingListChanged(const QStringList &routings)
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.