Incorporate combo boxes with pick lists in as many places as possible to minimize user typing and provide knowledge of acceptable choices
(Suggested by Laura Downey)
Setting ports and actor parameters requires user typing in a number of places
where pick lists would avoid user errors. Setting all actor parameters (e.g.
name, ports info, etc. would be easier is a single dialog were used)
#2 Updated by Christopher Brooks about 15 years ago
I've modified ptolemy.actor.gui.PortConfigurerDialog so that
is uses editable combo boxes for the port types and units.
The type lattices is infinite when array, matrices and records are
added, so I only have examples of those types. The types names
themselves come from constants listed in data.expr.Const.
The unit lattice is also infinite, so I'm only adding a few
Rowland Johnson said:
A combo box with all the possible values for units expressions isn't really
possible, because, theoretically, there are an infinite number of such
expressions. The units field of the PortConfigurerDialog should accept any
valid units expression. Currently, a units expression that is entered via
the PortConfigurerDialog is first parsed to determine its validity.
Maybe a combo box that contains commonly used units expressions with the
capability to enter a units expression that isn't on the list might work.
Different domains could each have a different list. Just figuring out what
the domains are and the contents of each domain's list would be an
art-form/research project in itself.
The editable combo boxes verify the values when the focus moves,
so we no longer need to pop up a separate dialog for editing the name, type
Other fixes that would be nice:
1) If the user drags in an ptolemy.data.unit.UnitSystem icon then
we should add to the units that are displayed in the combo box
2) Consider implementing a single dialog to configure the parameters
and port info.