macMikey / LC-NavRad

1 stars 0 forks source link

raw svg paths #2

Closed macMikey closed 2 years ago

macMikey commented 2 years ago

the widget bootstraps itself in its editor see editMode settings for icons are in mNavData. The property is called itemArray getter getNavData setter setNavData

macMikey commented 2 years ago

getNavData() calls listToArray(mNavData) mNavData is a list. what listToArray is doing is encoding the keys

item name description
name the nave name/key
label display under icon
icon_name name of icon in the svg set
hilited_icon_name name of icon in the svg set
icon path
hilited_icon path
macMikey commented 2 years ago

setNavData calls setData(pNavData... posts "dataChanged"

macMikey commented 2 years ago

iconSVGPathFromName() populates the path if the name is empty then empty is put into the path

macMikey commented 2 years ago

drawNavRadContent() uses "hilited_icon_path" and "icon_path" drawNavRadEditMode drawEditModeContent drawDragData drawActionItemsList calculateEditModeIconRects calculateAddItemRect calculateEditModeActiønPathsFromRow calculateEditModeActionIconPaths calculateDragRow calculateIconRects

macMikey commented 2 years ago
macMikey commented 2 years ago

reopening b/c while we can do it with code, it would be better if we could do it with the editor, too.

macMikey commented 2 years ago

on second thought, trying to do this with the existing editor is going to be a PITA, so i'm going to close this and just add a to-do with the picker