Up to [Local Repository] / interchange / code / Widget
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
fixed copy&waste introduced with last commit
* New Multiple CodeDef flag to indicate that a widget can return multiple
selections. Usage example:
CodeDef checkbox Multiple 1
* Set new Multiple flag for checkbox, movecombo, check_nbsp and multiple
widgets.
* Option editor will now correctly generate variants for options that use
widgets capable of multiple selections (ie, multiple or checkout widgets).
* New [widget-info] UI tag:
[widget-info name attribute]
name: Name of widget to fetch info on, eg: checkbox, if not specified
then a hashref of hashrefs will be returned with all attributes for all
defined widgets.
attribute: Info to get for widget, eg: Multiple. If not specified then
all attributes will be returned for the named widget in a hashref.
Fix incorrect license in headers GPL v2 -> GPL v2 "or later". Update copyrights.
Fix incorrect license in headers GPL v2 -> GPL v2 "or later". Update copyrights.
* Add header and license information
* Move all widgets out to code/Widget.
* Can specify multiple variants of widgets with something like:
CodeDef movecombo Widget 1
CodeDef movecombo Description Combo move
CodeDef movecombo Help Selects any/all of many options, puts in text box
CodeDef movecombo MapRoutine Vend::Form::movecombo
CodeDef movecombo_replace Widget 1
CodeDef movecombo_replace Description Combo move (one value)
CodeDef movecombo_replace Help Selects one of many options, puts in text box
Note the movecombo_replace variant has no Routine or MapRoutine.
It is parsed by the internal parser to type of movecombo with
option "replace".
Ideally we would be able to have a parser associated with each
type, specified outboard as well. I will work on this.
The major effect of this is that you can put anywhere:
CodeDef text_40 Widget 1
CodeDef text_40 Description Text box, 40 columns
This adds the entry to the widget type selector, but the parser
still makes it a { type => 'text', width => 40 }.
* Change the meta editor so that it uses a movecombo_replace
for the widget selector. This allows you to select a text
widget, but add the "_40" on manually to allow easy widget
specification.
* Add a movecombo_replace variant (i.e. { type => 'movecombo', replace => 1}
which calls a different mode of addItem to only allow one value
to be selected.