Add "Save as textfile" action, and include that in routine editor > "CREATE code" tab > context menu. Fixes issue #3486.

git-svn-id: http://heidisql.googlecode.com/svn/trunk@4770 560a3889-bb33-0410-9f33-43a8a102dc09
Run ValidateControls() even when it was executed shortly before, otherwise some actions ("run sql" after query execution for example) won't update. See http://www.heidisql.com/forum.php?t=15651

git-svn-id: http://heidisql.googlecode.com/svn/trunk@4771 560a3889-bb33-0410-9f33-43a8a102dc09