Encapsulate pattern editing in new class.
initial gui work on trip attributes.