Preserve UI settings before executing the command
This commit preserves vertical scroll bar positions and the current source tab before executing the
clang-format command.
refactoring the constructor of MainWindow class.
Minor refactoring
Minor refactor