pad parenthesized expressions with spaces

made changes on mainwindow header and docinterface.ccp file , i did
spaces where they are needed