RoutingContainer Class
The RoutingContainer enables relative routing in widget children More...
Header: | #include <CDPBaseWidgets/RoutingContainer.h> |
Inherits: | RoutingContainerBase and |
Properties
- cdpFullTargetRouting : const QString
- cdpTargetRouting : const QString
Public Functions
RoutingContainer(QWidget *parent = nullptr) |
- 3 public functions inherited from RoutingContainerBase
Detailed Description
The RoutingContainer enables relative routing in widget children
Adding routing to the cdpTargetRouting property in the RoutingContainer makes it possible to use relative routings in child widget properties. In the child widget routing properties, a relative routing is started using a dot (.) character. To illustrate this with an example, imagine having a container with widgets showing the configuration of a Sine component. If the container is configured with cdpTargetRouting set to Application.Sine, a bar that is to show the Sine amplitude can be configured with .Amplitude.Value (the .Value part is added automatically). The full routing set on the bar would then resolve to Application.Sine.Amplitude.Value.
The main reason to use the RoutingContainer is to make reusable GUI elements that target control system objects with a fixed structure. Copying such GUI elements will only require setting the target routing on the RoutingContainer.
The RoutingContainer supports relative routing when placed inside other RoutingContainers. Widget children can use both relative and absolute paths in their routing properties.
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.