made path record distance in mainwindow.ui and planet.cpp equivalent.