Segment editor