branch 'save-as' merged into branch 'master'

Squashed commit of the following:

commit 24f014f332c91db42ab3b07d66ae19632d43cd3c
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Thu Apr 12 15:40:11 2012 +0200

    [save as] tab Sentences: fixed some layout issues.
    Derived DactTableView from QTableView instead of from QWidget.

commit f6eb9428d464345730f231fe6f1a18f542c47e34
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Thu Apr 12 15:39:35 2012 +0200

    [save as] removed "file saved" dialog

commit 790e15384fde357cbe490afb4aec93ac094150e0
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Thu Apr 12 11:07:33 2012 +0200

    [save as] code formatting

commit af76371a5f87ad6902de11edf08c96b36b392b5f
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Thu Apr 12 11:00:03 2012 +0200

    [save as] sentences: fixed save selection

commit f6e84f324efe104b9f416ade48f76af48ec78e92
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Thu Apr 12 10:49:49 2012 +0200

    [save as] flush before close

commit a0509e348cfff70ce960117b695c80b2d8731c2d
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Wed Apr 11 18:56:21 2012 +0200

    [save as] get file type choice from file save dialog; numerous lay-out tweaks
    Lay-out changes in tab Sentences:
     * white/grey instead of lines
     * align top
     * horizontal align center for column 1
     * smooth horizontal scrolling
     * don't jump when something is selected
     * save as html: green/blue colors instead of grey

commit e78aac6853f0c3be46a98277fc44d697d86308be
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Wed Apr 11 10:42:15 2012 +0200

    [save as] No save without valid file name extension

commit 9155b19086b95ef52e8cc732c7550fb611fb7168
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Mon Apr 9 15:47:20 2012 +0200

    [save as] tab Sentences: Keyword in Context: css

commit 8d42f3735a1900f6b271f7e79a013ed15b58ee7f
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Mon Apr 9 13:08:17 2012 +0200

    [save as] tab Sentences: Keyword in Context

commit 7c9c5e2293c1b9e47ad68670fd6f5a3620987160
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Mon Apr 9 12:26:52 2012 +0200

    [save as] tab Sentences: Only matches

commit 1339d3b6c4051e7c51c6f242bf2d918b33b21a70
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Sun Apr 8 14:55:52 2012 +0200

    [save as] tab Statistics: HTML

commit 9b6d134bfa61c47e6bc89fd28472172b6e6db0fa
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Sun Apr 8 14:30:59 2012 +0200

    [save as] tab Sentences: Complete sentence

commit 9267912286680527c48ab26e6bef78d33dfc50be
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Fri Apr 6 17:28:34 2012 +0200

    Tab sentences with show filenames: fixed lay-out

commit d2fd4060898ffc59447550e6166454f585ae08d3
Merge: 8fe635a 209896d
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Fri Apr 6 13:44:09 2012 +0200

    Merge branch 'save-as' of github:rug-compling/dact into save-as

    Conflicts (resolved):
    	src/FilterModel.cpp

commit 8fe635a292af64359bb7f53cbad2caf0438184f9
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Fri Apr 6 13:36:35 2012 +0200

    [save as] Tab Sentences: Renamed ListView3 to TableView, because it's a table

commit 673934429cbe779a75bae84ca05e1f6a1a631e38
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Fri Apr 6 13:19:22 2012 +0200

    Tab Sentences with/without filenames: now working. To do: fix layout.

commit 209896df5bf0befee1735dfed137bbf7215bd49a
Merge: 1dca396 a1ad32f
Author: Daniël de Kok <me@danieldk.eu>
Date:   Fri Apr 6 12:55:16 2012 +0200

    Merge branch 'save-as' of github.com:rug-compling/dact into save-as

commit 1dca396db094939f8909d1c4074cdcce85669071
Author: Daniël de Kok <me@danieldk.eu>
Date:   Fri Apr 6 12:54:46 2012 +0200

    Ensure layout changes are communicated.

commit a1ad32f498d9ccbf97ccd14428e491d375ef2581
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Fri Apr 6 12:17:43 2012 +0200

    bracketed window: stretch

commit 09901fcc63855214c448edcdb929e761d7e88f50
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Fri Apr 6 11:57:51 2012 +0200

    [save as] tab Statistics: better error text

commit a6a6b8ccde31545878e223e3d0788adbd83c1f41
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Fri Apr 6 11:43:23 2012 +0200

    changed tabs to spaces in ui/BracketedWindow.ui

commit c71222268f6354d0bc89c079c925ed23dd8e028d
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Fri Apr 6 11:34:07 2012 +0200

    tab Sentences: checkbox Show Filenames

commit 767a7ea5a3a20655acdb085cb2951a132891a4df
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Fri Apr 6 01:50:22 2012 +0200

    Addition to last commit 3284d86e7cfb301ca001099446828349de288e83

commit 3284d86e7cfb301ca001099446828349de288e83
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Fri Apr 6 01:30:47 2012 +0200

    Tab Sentences: Filenames should be visible with sentences, but the output is completely empty.
    What am I doing wrong?
    Note: DactListView3 is not a listview but a tableview.

commit 9f25b4ce2929b69c302b3b851de0aa839b0e582f
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Thu Apr 5 11:08:57 2012 +0200

    [save as] Statistics: clearer about file types

commit a8c115e7464e4b2fcada70a46f3a5789e24423d2
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Tue Apr 3 16:13:17 2012 +0200

    [save as] Statitics : csv : no quotes for numeric values

commit ef3d6167e62ef918eab58df835806d7d9e3db4cf
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Tue Apr 3 14:14:50 2012 +0200

    [save as] tab Statistics: added date+time

commit f8385cdc567bfa202d194afc420ead59fbd989d7
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Tue Apr 3 11:17:10 2012 +0200

    [save as] menu: enable/disable "save as"

commit 4ce0d923cdbbc1a988b5ec70bc9d8bdd15f75a35
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Tue Apr 3 10:33:08 2012 +0200

    [save as] Statistics tab: excel: worksheet Overview

commit 26d14092f88d3710287512b7f8e50e1c4e1f7f71
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Mon Apr 2 23:36:49 2012 +0200

    [save as] tab Statistics: excel: formulas instead of values

commit 463aba6dc9cc8430366802ad1b0a67d4f394f590
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Mon Apr 2 22:28:55 2012 +0200

    [save-as] tab Statistics: message "file saved"

commit e2274e723e65e7892ffccd97b2b174790d0719b1
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Mon Apr 2 22:01:23 2012 +0200

    [save as] output for tab Statistics done

commit fd659b3973d3f7aaedfc8feaaa4e2612811438c1
Author: Peter Kleiweg <p.c.j.kleiweg@rug.nl>
Date:   Mon Apr 2 12:40:26 2012 +0200

    [Save as...] Main window: file menu; Statistics window: file dialog
status message after file save
save-as: remember last choice of file type
Create a modal window in which the user can enter sentences
Hide webserice window when clicking [Cancel]
Connect [Load file] and [Parse] buttons
Load text from files into sentences field
Implement request and attach progress dialog
Open a corpus when it is downloaded.
Delete corpus writer when finished writing (and let it write a nice end to the file so dact won't crash while trying to read it)
Search for sentences in response data and write them to corpus
Use an XML representation for bracketing.

This also cleans up many things:

- Remove all the custom bracket parsers.
- Use a simple XML parser for constructing chunks for display output.
- Generate all other output using XSL stylesheets.
- Properly enforce MVC: the data representation is generated by the model,
    data presentation is performed by stylesheets, the controller
    is not polluted anymore.

The same should be done for saving statistics output.
Consolidate bracketed stylesheets.

Fixes #83.
Don't case match on fixed indices that may be variable.
More fine-grained locking in FilterModel.

Makes things smoother for queries with an enormous number of results.
Fix XHTML error that was introduced in the stylesheet merge.
Where did that mutex locker come from ;).
Expand CorpusWidget for 'Save as' state checking.

Avoid hardcoding of tab positions in widgets. In principle, widgets should
be completely independent of their containers.

In the past decoupling helped us to move easily from a window-driven to a
tab-driven interface.
Use Peter's suggestion to give Excel XML output the extension .xls.

This also opens fine on Excel for OS X, and uses the proper association.
Add a stylesheet for Office 2003 XML.