Reviewed the mainwindow.cpp and modified mainwindow.cpp and configurationform.cpp

Hello,I tried to review the source code(mainwindow.cpp).And then modified mainwindow.cpp and configurationform.cpp.
1.All the places call ConfigurationForm::getConfigurationWidget,I used constant to replace the literal number.
2.Used count and sizeof(array's name)/sizeof(array's item's type) to replace the literal number.
3.Tried to translate portuguese comment to english comment.