iVis-at-Bilkent / newt

A web application to visualize and edit pathway models
http://newteditor.org
GNU Lesser General Public License v3.0
53 stars 27 forks source link

Preference persistence to consider infobox defaults #435

Closed ugurdogrusoz closed 5 years ago

ugurdogrusoz commented 5 years ago

Currently one can save all sorts of preferences to a .newtp file but infobox related ones are ignored (since they came later with SIF support). Changes to infobox style are done through this popup dialog: image

And "Set as Default ..." button in this pop-up can be used to use the current infoboxes style for new infoboxes of the same type (notice that defaults can be different for state variables and units of information).

If set such defaults should also be persisted in Preferences under Object Properties. Notice that these defaults are per node type. In other words, I could set the style of State Variables of Macromolecules different from the style of State Variables of Simple Chemicals. Let's assume if the user is interested in saving preferences for a specific object type, then any available style for infoboxes of that object are also saved in this file. So, the GUI of the preferences dialog need not change.

ugurdogrusoz commented 5 years ago
nasimsaleh commented 5 years ago

@ugurdogrusoz should we save prefrences for info boxes if they are set as default in the info boxes windows despite of 'Set Default' for that specific element class was clicked or not?

ugurdogrusoz commented 5 years ago

yes I think so