Issue #2496: Support square brackets in MSSQL as an alternative way to quote identifiers.

git-svn-id: http://heidisql.googlecode.com/svn/trunk@4364 560a3889-bb33-0410-9f33-43a8a102dc09
Issue #2496: Remove square brackets per TDBConnection.DeQuoteIdent()

git-svn-id: http://heidisql.googlecode.com/svn/trunk@4365 560a3889-bb33-0410-9f33-43a8a102dc09
Issue #2496: Trim definition of MS SQL VIEWS before passing to ParseViewStructure(), so its regex may expect CREATE at the very beginning.

git-svn-id: http://heidisql.googlecode.com/svn/trunk@4366 560a3889-bb33-0410-9f33-43a8a102dc09
Move code from several action events to new functions GetFocusedObjects and DBTreeClicked. Detect here whether tree or database tab was the one where user clicked the context menu, instead of just checking which of both is focused. See http://www.heidisql.com/forum.php?t=12351

git-svn-id: http://heidisql.googlecode.com/svn/trunk@4367 560a3889-bb33-0410-9f33-43a8a102dc09
Issue #2496: Revert r4366, do not trim definition of MS SQL views. Instead, let the regex in ParseViewStructure() expect CREATE at any point instead of the very beginning of the code. That way the view definition may contain a BOM or any space at the start.

git-svn-id: http://heidisql.googlecode.com/svn/trunk@4368 560a3889-bb33-0410-9f33-43a8a102dc09
Issue #2697: Make database + table tree filter case insensitive. See pm from Martin Bedrač.

git-svn-id: http://heidisql.googlecode.com/svn/trunk@4369 560a3889-bb33-0410-9f33-43a8a102dc09
Cast TEXT columns as VARCHAR in data grid selection, as MSSQL supports only VARCHAR in LEFT() function. Fixes issue #3141.

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