Refactor duplicate code in line number panel
Refactor the editor widget:
 - remove unneeded visibleBlocksChanged signal
 - make some panel update method private and provides a public method to refresh the list of panels