Uses the new notifications to send the events, this means only the
widget getting or losing the focus gets the event not it's parents.
Also comment out the old code to handle mouse focus.
The textbox history now uses CTRL+TAB and CTRL+SHIFT+TAB so the arrow
keys are no longer overloaded. It would be nice to make these keys
configurable, but that will be postponed until post 1.6.
The easy close feature closes windows by a single mouse click, without
the need for a close button. Also converted the test dialog for the
remove addons to use this feature and commenting out the button in the
config (it will be needed later again).
The maximum length got implemented in font::ttext instead of the
gui2::ttext_ class since that simplified the length checks to one
location. Also add return values to indicate what happened upon
insertion. Added the maximum length to the user name in the mp selection
dialog.
When the text was too long the cursor would be drawn out of bounds which
caused an assert which terminated Wesnoth. Now the text will no longer
be drawn out of bounds and be ellipized. (The ellipses are always drawn
at the end, which will be fixed later.)
With this change a lot of helper code can be moved to pango. This is
also required since the text size between pango and the old SDL_TTF
library might differ. Also fixes some crashing bugs when special
characters were used in the text boxes.
* Added code allow the mouse the click in a text and set the cursor at the
proper location.
* Added the selection indication.
* Added mouse dragging to select a range.
* Mouse double click selects all (doesn't work due to bug in event code).
* ctrl-C, ctrl-X and ctrl-P do copy paste (doesn't work yet on Mac).
* On UNIX based sytsems select does copy (middle mouse paste doesn't work yet).
* Fixed some minor bugs.