Code cleanup of the widget's code.

Improved function names, descriptions and ordering of the functions.
Also added override markers for C++11.


git-svn-id: http://svn.gna.org/svn/wesnoth/trunk@56475 75b3775d-3801-0410-9e12-e2e43121521d