-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable showing parameters in the dialog #2211
Comments
Comment by beutlich on 21 Oct 2017 06:56 UTC |
Comment by beutlich on 21 Oct 2017 07:07 UTC |
Comment by beutlich on 21 Oct 2017 20:34 UTC |
Comment by henrikt on 21 Oct 2017 22:09 UTC |
Comment by hansolsson on 23 Oct 2017 08:17 UTC One traditional solution for this has been to use a tab "Advanced"; the idea is that novice users will stay away from it. If we then look at examples e.g. https://stackoverflow.com/q/38528492/8520615 it seems that the goal is that that only the library developer can set the parameter; but in that example-package you need to set the parameter to use the connector-class. |
Comment by henrikt on 23 Oct 2017 08:30 UTC |
Comment by hansolsson on 20 Mar 2018 16:41 UTC Agreement. |
Comment by hansolsson on 20 Mar 2018 17:29 UTC |
Comment by hansolsson on 22 Mar 2018 09:36 UTC
|
Comment by hansolsson on 22 Mar 2018 10:23 UTC
Poll:
|
Comment by hansolsson on 22 Mar 2018 10:29 UTC |
Modified by beutlich on 23 Mar 2018 08:03 UTC |
Modified by beutlich on 23 Mar 2018 08:05 UTC |
Modified by beutlich on 23 Mar 2018 09:24 UTC |
Will return to on Friday November 30th, 2018. (With more use-cases.) |
2018-11-30 poll among MAP-LANG subgroup: Do nothing: 1 Conclusion: MCP for Ternary. |
Changed labels, since there was a decision, but the decision was to make an MCP. |
Modified by beutlich on 23 Mar 2018 09:24 UTC
Sometimes users want to disable showing a public parameter from the dialog window because the parameter is hard to use, but keep it possible to modify it using the textual layer for models extending from the model.
Current ways to disable showing a parameter in the dialog pop-up:
final
(but then you can't modify it in textual layer)protected
(but then you can't modify it in textual layer)enable=false
(still shows it, but cannot be modified)constant
(removes it, but causes problems when you have array sizes which are parameters since you cannot easily mix parameters with constants)What seems to be missing is simply
hide=true
in the annotation (or giving special meaning fortab=""
), to not show the component in the Dialog pop-up.Buildings/IBPSA used the approach to make the component
constant
, but then models only work in tools which help the type-checking by evaluating certain parameter expressions and treating them as constant (or something similar).Reported by sjoelund.se on 21 Oct 2017 05:10 UTC
Sometimes users want to disable showing a public parameter from the dialog window because the parameter is hard to use, but keep it possible to modify it using the textual layer for models extending from the model.
Current ways to disable showing a parameter in the dialog pop-up:
final
(but then you can't modify it in textual layer)protected
(but then you can't modify it in textual layer)enabled=false
(still shows it, but cannot be modified)constant
(removes it, but causes problems when you have array sizes which are parameters since you cannot easily mix parameters with constants)What seems to be missing is simply
hide=true
in the annotation (or giving special meaning fortab=""
), to not show the component in the Dialog pop-up.Buildings/IBPSA used the approach to make the component
constant
, but then models only work in tools which help the type-checking by evaluating certain parameter expressions and treating them as constant (or something similar).Migrated-From: https://trac.modelica.org/Modelica/ticket/2211
The text was updated successfully, but these errors were encountered: