Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ptp-dev] Handling of the disabled widgets in PTP's run configurations view

Hi Greg, how are you?  Hope you're doing good.

I need help with an issue regarding the handling of the widgets in the "Profile Configuration" view, specifically in the "Performance Analysis" tab.  I am trying to figure out the best way of avoiding setting environment variables controlled with widgets that are not enabled and, at the same time, save the value of those widgets in between the selections of the different tabs.

One thing I noticed was that the refreshing of the widget values happens a lot of time, after the initialization, even for widgets in tabs that are not displayed (selected).  It appears that the value of variables is controlled by a field called lcmap.  I don't know where the data from lcmap is mapped to corresponding env vars, but ideally, only that would happen only for the widgets that are enabled.

I tried adding a dynamic widget with text that checks whether the widget is enabled before returning the value; however, that approach does not save the initial value when the widget is not enabled.  For example, if I enable a widget, set a value, then I disable it, the text (in my case) value is displayed grayed out.  However, when I go back to enable the widget again, I want to recover that text and not need to input it again in the widget.  I don't know how to do that with a dynamic widget, as the value of the widget is controlled using the lcmap member of the AbstractUpdateModel class and that is used for both initialization, refreshing and, apparently, the setting of the corresponding env vars' values.

One train of thought would be to use the 'excluded' member of the LCVariableMap class to keep track of widgets that are not only not-visible, but not enabled as well.  Or maybe have a different member that does that.

Any help and idea highly appreciated.

Thanks so much,


Serban Maerean
HPC Tools
T/L: 293-9770, Tel.: 845-433-9770
E-mail: serban@xxxxxxxxxx


Back to the top