Support for new Icons in Data-Model/Cybetracker Export
Client has requested that we need basic support for getting the new icons associated with the Data model and exported into Cyber Tracker Beta for 6.X
Leave a comment
Description from related bug:
CyberTracker Support
To support these icons in CyberTracker we would need to upgrade SMART to allow images to be mapped to data model elements (categories, attribute tree nodes, attribute list items). Then when creating a configurable model SMART would provide the option to use the default data model icons or supply a custom icon. When exporting the configurable model to CyberTracker the svg images would be included, SMART already provides support for jpeg/bmp images with the Configurable model, so we would only need to upgrade this to support SVG.
Issues: we would need to figure out how to upgrade images in old configurable models
The old version of CyberTracker requires bmp/jpeg images, Justin suggests the new version would support svg images (these scale better), so I would suggest in SMART use svg images and when exporting to the old CyberTracker SMART automatically converts the svg images into jpeg.
CyberTracker Support
To support these icons in CyberTracker we would need to upgrade SMART to allow images to be mapped to data model elements (categories, attribute tree nodes, attribute list items). Then when creating a configurable model SMART would provide the option to use the default data model icons or supply a custom icon. When exporting the configurable model to CyberTracker the svg images would be included, SMART already provides support for jpeg/bmp images with the Configurable model, so we would only need to upgrade this to support SVG.
Issues: we would need to figure out how to upgrade images in old configurable models
The old version of CyberTracker requires bmp/jpeg images, Justin suggests the new version would support svg images (these scale better), so I would suggest in SMART use svg images and when exporting to the old CyberTracker SMART automatically converts the svg images into jpeg.
For the DataModel users will be able to define Icon Sets. By default there will be 3 Icon Sets - color, black, line. Each item in the DataModel can optionally have an image for each IconSet (one will be identified as the default).
For a Configurable Model users can pick one of the Icon Sets as the base icon set for the configurable model. Each item can then overwrite the default image. Users can change the base icon set - doing this will not overwrite custom supplied images.
The base icons for the DataModel will be stored in the SMART software. This means that they will not be duplicated for each Conservation Area. If SMART updates these icons in a new version all DataModels/ConfigurableModels will get these updates automatically. Custom icons supplied by the user will be stored with the Conservation Area.
For a Configurable Model users can pick one of the Icon Sets as the base icon set for the configurable model. Each item can then overwrite the default image. Users can change the base icon set - doing this will not overwrite custom supplied images.
The base icons for the DataModel will be stored in the SMART software. This means that they will not be duplicated for each Conservation Area. If SMART updates these icons in a new version all DataModels/ConfigurableModels will get these updates automatically. Custom icons supplied by the user will be stored with the Conservation Area.
Added the ability to define icon sets, associated icons and link these icons with data model element (and thus configurable models).
Each Conservation Area contains one or more icons sets. By deafult 3 icon sets are added to all Conservation Areas on upgrade or when a new CA is created. These icons sets are Full Color, B&W, Outline. Icons sets can be added, removed or modified as necessary. Each CA also has a set of icons - each icon has a representation for each icon set. Icons are given a name and key (automatically populated). Each data model object (Category, Attribute, Attribute List Item, Attribute Tree Node) can be linked to an Icon (this link is optional).
By default an Icon Set is added to each Configurable Model. The icon set can be modified or left blank. By default the Configurable nodes (category, attribute, list items, nodes) are automatically linked to the same icon (for the cm iconset) as the underlying data model item.
Items to test:
Each Conservation Area contains one or more icons sets. By deafult 3 icon sets are added to all Conservation Areas on upgrade or when a new CA is created. These icons sets are Full Color, B&W, Outline. Icons sets can be added, removed or modified as necessary. Each CA also has a set of icons - each icon has a representation for each icon set. Icons are given a name and key (automatically populated). Each data model object (Category, Attribute, Attribute List Item, Attribute Tree Node) can be linked to an Icon (this link is optional).
By default an Icon Set is added to each Configurable Model. The icon set can be modified or left blank. By default the Configurable nodes (category, attribute, list items, nodes) are automatically linked to the same icon (for the cm iconset) as the underlying data model item.
Items to test:
- creating a new data model automatically configures the icons
- importing DM from another CA imports the icon links (if they exist) - note that icons are not imported/exports only links to the icons. Each icon is given a key and that key is used to find the icon in the CA.
- upgrading CA automatically links data model items (both on desktop and via connect)
- old DM xml files and CM xml files can be imported into 6.2 (icon's won't be set, but it shouldn't produce an error)
- merging DM also merges the icons (both Desktop and Connect)