calc_values is split in two separate functions for future use
BUG: Need to pass self as parent to objects

Otherwise they might get deleted in the wrong order.
These removes the QTimer warning messages when exiting.
Added paste functions

If a 2xN or Nx2 table is pasted then the values
are assumed to be the same as currently selected
int the input box.
BUG: fixed warning when bad data is pasted

The warning dialog was never reached when bad data was used.
validates pasted data

BUG: fixed issue where warning dialog poped up twice.