Cut and Paste

One of the main ways of modifying Lists is by Cut (or Copy) and Paste. These operations consist of moving (or copying) Scans to the Paste List whose contents are then inserted into another list. The contents of the Paste List are unchanged by a Paste operation and Cut or Copy operations simply add new Scans to the end of the list.

A Copy operation from a Calibrator list results in a Scan being created using Scan function MergeCalibratorToSource. The resulting Scan is then appended to the Paste List.

These cut and paste operations are controlled by class GUI.ListEditPanel and invoked by the user using the Buttons, Menu Items or menu accelerator keys. Actual modification of the lists is done by class GUI.ListBox using class GUI.ChangeList objects to describe the modifications.

The last GUI.ChangeList applied is kept by the ListEditPanel to allow its effects to be reversed if the "Undo" button is hit.