You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The feature could also be usefull for implementing mutually exclusive menus.
For instance, by defining a default value of property display_menu_a to true, one can implement the following toggling menus:
<menuname="A">
<visibilityproperties="display_menu_a" />
<actions>
<!--Do something meaningful--><!--Change the property to only show B.-->
<propertyname="display_menu_a"value="" />
<propertyname="display_menu_b"value="true" />
</actions>
</menu>
<menuname="B">
<visibilityproperties="display_menu_b" />
<actions>
<!--Do something meaningful--><!--Change the property to only show A.-->
<propertyname="display_menu_a"value="true" />
<propertyname="display_menu_b"value="" />
</actions>
</menu>
The text was updated successfully, but these errors were encountered:
* issue24:
Renamed <defaults> xml element to <default> xml element. Issue #24 - Support custom or default properties defined at load time.
Renamed Defaults class to DefaultSettings class. Issue #24 - Support custom or default properties defined at load time.
Updated CHANGES
Updated UserManual.md for <defaults> section.
Cleanup code.
Fixed failing unit test: TestConfiguration.testIsValidConfigFile()
Simplified implementation of `Configuration::applyDefaults()`. Implemented a filter in `ObjectFactory::parseDefaults()` to force only parsing <property> actions.
Modified code to apply defaults properties when loading a configuration file.
Added missing test files.
Implemented parsing of Defaults class. Implemented unit test TestObjectFactory.testParseDefaults().
Implemented Defaults class for storing default Actions.
It would be interesting to be able to define default properties (defined by the user) when a file is loaded.
The proposed method is as follows:
The feature could also be usefull for implementing mutually exclusive menus.
For instance, by defining a default value of property
display_menu_a
totrue
, one can implement the following toggling menus:The text was updated successfully, but these errors were encountered: