# adl2boy Converter

## Introduction

This tool converts the .adl files from MEDM into a .opi file for BOY. This conversion is performed by first parsing the .adl file and creating a model that contains references to all of the elements of the ADL file. The resulting model of the .adl file is then converted into an AbstractWidgetModel for BOY which is then written out by the normal file save methods of boy.

## How to use

## Widget Mapping and the limits on the conversion

The MEDM widgets map to the following BOY widgets:

- Graphics

  MEDM | BOY | Limit of conversion
  Rectangle | Rectangle | See limits on Dynamic Attributes
  Arc | Arc | See limits on Dynamic Attributes
  Polyline | Polyline | See limits on Dynamic Attributes
  Polygon | Polygon | See limits on Dynamic Attributes
  Oval | Ellipse | See limits on Dynamic Attributes
  Text | Label | Text alignment is not yet handled See limits on Dynamic Attributes
  Line | Polyline | See limits on Dynamic Attributes
  Image | Image | Image Type not handled Image Name not handled Image Calc not handled Need a better way to set the image path. See limits on Dynamic Attributes

- Monitors

  MEDM | BOY | Limit of conversion
  Meter | Meter | See conversion of Limits No way to show the value of the channel in the meter widget See conversion of color mode
  Strip Chart |  | Not yet handled
  Scale |  | Not yet handled
  Byte | Byte Monitor | This has just been started. Use caution.
  Bar | Tank | This conversion is not handled well at this point. The tank is not the best substitute but there really isn't another choice.
  Text Monitor | Text Update | Limits not handled Not all Format options handled Not all color modes are handled
  Cartesian Plot | XY Graph |

- Controllers

  MEDM | BOY | Limit of conversion
  Choice Button | Choice Button |
  Message Button | Action Button |
  Slider | Scaled Slider | Increment not handled Color Mode not handled Direction not handled Label not handled Limits not handled
  Shell Command |  | Not implemented
  Text Entry | Text Input | Limits not handled Not all format options handled Not all color mode not handled
  Menu | Menu Button | See conversion of color mode On some platforms MEDM does not set the color. This option was added to prevent interactions with CDE. If the color was set in MEDM this color will be used in the conversion. Comparison on some platforms may indicate a problem. The Windows MEDM distribution seems to have display the colors properly.
  Related Display | Action Button |
  Wheel Switch |  | See limits on Dynamic Attributes

- Others

  MEDM | BOY | Limit of conversion
  Composite | Grouping container if no Composite file is specified Linking container if a composite file is specified | Composite file not yet handled completely See limits on Dynamic Attributes

## Limits on conversions by MEDM Widget Parts

Widget Part | Limits
Object |
Bassic Attribute |
Dynamic attribute | Not handling the calc option for visibility
Monitor |
Control |
Children |
Color Mode | discrete not handled
Limits | Not yet handled
Menu Item |
Points |
Sensitive |
Related Display Item |
Pen |
Plot Com |
Plot Data |
Plot Trace |