Commit Graph

1098 Commits

Author SHA1 Message Date
Pino Toscano
ae08f772a2 cmake: use an external antlr2 if available
Look for an installed antlr v2, and if available use it instead of its
embedded copy.
2015-05-03 15:44:42 +02:00
Martin Kleusberg
dbad366d96 Merge pull request #290 from pinotree/tests-build
Improve the build of tests
2015-05-03 15:36:33 +02:00
Pino Toscano
e8b9de3212 Update build instructions for tests
Update BUILDING.md regarding the unit tests, mentioning ENABLE_TESTING
during the build, and make test or ctest for running them.
2015-05-03 14:37:21 +02:00
Pino Toscano
8d07f120bf tests: remove DBBrowserDB usage from test-import
Apparently DBBrowserDB is not really used, so remove it and cleanup
test-import from the extra sources and dependencies needed by that.
2015-05-03 14:37:18 +02:00
Pino Toscano
27df9cfa4d tests: split sqlb-unittests
Instead of a single executable running different unit tests at the
same time, split the sqlobjects and import parts out of it.
While this currently duplicates the cmake boilerplate for each,
it allows to finetune each properly (like build only the sources for
it, in the future), and to call each separately.

Add the QTEST_MAIN in each test, and remove the manual QCoreApplication
handling in TestImport (handled by QTEST_MAIN).
2015-05-03 14:34:09 +02:00
Pino Toscano
57f2622e34 tests: merge build of tests within main build
Instead of a separate CMakeLists.txt for the tests, make them built
together with the rest of the main project. This behaviour is off
by default, and can be enabled using ENABLE_TESTING.

Furthermore, the testing facilities of cmake are now used, so ctest
(invoked by `make test`) knows about the sqlb-unittests. Thus, adapt
the Travis build steps, building the main sources and executing the
tests twice, one for sqlite and one for sqlcipher.
2015-05-03 14:29:00 +02:00
Martin Kleusberg
f11acc00c5 Fix tests 2015-05-03 13:42:31 +02:00
Martin Kleusberg
861ecec527 Add option to remember last location for file dialogs
Add an option to remember the location of the last opened or saved file
and use it as the default location for the next file dialog because
always going back to the default location set in the preferences dialog
can be a real hastle.

See issues #224, #276 and #281.
2015-05-03 13:22:13 +02:00
Martin Kleusberg
f21ff619f2 Remove superfluous whitespace from Schema column in DB Structure view
In the Database Structure tab and the DB Schema pane, replace any
sequence of whitespace characters by a single space character if the
one-line Schema view is enabled.

See issue #283.
2015-05-02 20:16:28 +02:00
Martin Kleusberg
f921815e9d Merge pull request #289 from pinotree/tests-encoding
TestImport: fix unicode handling
2015-05-02 19:53:39 +02:00
Pino Toscano
584f5d66bb tests: fix encoding handling in TestImport
Make sure to write the temporary CSV file in the proper encoding
(i.e. the one specified by the test data), and to use that encoding
when reading back from it.
This way the test should behave correctly, no matter the current
system charset.

Furthermore, fix and extend unicode data: the current utf8chars is
actually UTF-16 data, so rename it and change its encoding as such.
Add a proper utf8chars data with UTF-8-only characters.
2015-05-02 16:31:09 +02:00
Martin Kleusberg
7e3d9cd0a3 sqltextedit: Enable UTF-8
See issue #282.
2015-05-01 13:38:17 +02:00
Justin Clift
413da8cab1 Updated Ubuntu PPA URL 2015-04-29 10:31:30 +01:00
Justin Clift
1d1aacf0dd Added initial pointer to the Ubuntu PPA
Thanks deepsidhu1313. :)
2015-04-29 00:32:46 +01:00
Justin Clift
32d694bc97 Updated currentrelease to 3.6.0 2015-04-28 19:34:25 +01:00
Peinthor Rene
92a8a9eec6 windows/msvc: add missing .dll to installers 2015-04-28 19:24:10 +02:00
Justin Clift
e7b9356ec2 Merge pull request #270 from mcprentiss/release-notes
fix release info in src/gen_version.h
2015-04-28 01:43:26 +01:00
Justin Clift
848f4bf034 Reverting currentrelease to 3.5.1 for now
https://github.com/sqlitebrowser/sqlitebrowser/issues/269
2015-04-28 01:39:42 +01:00
mp466
b40f88e970 fix release and development branch 2015-04-27 19:38:49 -05:00
mp466
357847207b fix release info in src/gen_version.h 2015-04-27 19:09:15 -05:00
Justin Clift
c1482fd34f Updated currentrelease to 3.6.0 2015-04-27 23:36:44 +01:00
Justin Clift
fc7a845a4b Updated for 3.6.0 release 2015-04-27 23:35:45 +01:00
Martin Kleusberg
e8328aa5a2 qmake: Enable version checking for Windows 2015-04-27 14:59:46 +02:00
Michel VERET
d6f9716cfd Update French translation 2015-04-27 11:30:58 +02:00
Martin Kleusberg
6d196c004a Support non-integer primary keys
Add support for non-integer primary keys, especially on table without
rowid column. The previous code often assumed that the rowid column or
its equivalent was a 64bit integer but SQLite allows any data, including
text, to be stored in there.

See issue #240.
2015-04-25 14:22:54 +02:00
Martin Kleusberg
d6533ba5f7 Fix Qt4 build broken in dd8dd4852d 2015-04-23 22:44:23 +02:00
Martin Kleusberg
9b2529bdf4 Remove DBBrowserDB::tableColumns() method
Remove the DBBrowserDB::tableColumns() method which queries the database
for the column names of a given table and which is used for the SQL
export only. This function isn't needed at all because it generates a
whole bunch of queries for data which is already hold in memory...
2015-04-23 22:39:05 +02:00
Martin Kleusberg
dd8dd4852d Add Browse Table popop action to Database Structure tab
In the Database Structure tab of the main window, add a new action to
the popup menu which open upon right clicking the tree view to allow
directly changing to the Browse Data tab with the current table being
selected automatically.

See issue #246.
2015-04-23 22:32:23 +02:00
Samir Aguiar
4c7703659b mainwindow: Add filter to the open file dialog
As with #230, we don't add the filter on OS X
due to Qt bugs not yet fixed.

See issue #266.
2015-04-23 20:15:11 +02:00
Martin Kleusberg
506804a74e Merge pull request #260 from sqlitebrowser/qscintilla
Use Qscintilla instead of implementing our own code editor
2015-04-23 20:10:01 +02:00
Martin Kleusberg
e714eee4c0 qscintilla: Add some missing keywords to auto completion word list 2015-04-23 19:52:07 +02:00
Martin Kleusberg
cf412a211d qscintilla: Reload settings properly after they have changed 2015-04-23 19:52:07 +02:00
Martin Kleusberg
94846336df qscintilla: Finetune auto completion
Only start auto completion after a three letter threshold.

Only take words for auto completion from the API word list, not from the
current document.
2015-04-23 19:52:07 +02:00
Martin Kleusberg
649b1790e5 Mark syntax errors in Execute SQL tab
If a syntax error is reported by SQLite during execution in the Execute
SQL tab of the main window try to locate the problematic SQL statement
and highlight it using a red squiggling line.
2015-04-23 19:52:06 +02:00
Martin Kleusberg
6fed5ec7c2 qscintilla: Enable code folding 2015-04-23 19:52:06 +02:00
Martin Kleusberg
24ce374bb0 EditTableDialog: Fix 'fooling' of list selection by dragging
See issue #261.
2015-04-23 19:52:06 +02:00
Martin Kleusberg
cde2393539 Use QScintilla instead of own implementation of a code editor
This is a first rough implementation of QScintilla support as SQL text
editor.

It should work mostly and build fine with qmake as well as cmake. The
new code supports all the features of the old one plus adding a few
subtle improvements. The main point of this, however, is reducing the
code we have to maintain and making it easier to add new features to the
editor.
2015-04-23 19:51:54 +02:00
schdub
029f01643b resize multiple (selected) cols in Browse Data tab 2015-04-20 22:15:28 +02:00
Justin Clift
1393e8ed9f Merge pull request #263 from schdub/master
exportsql: allow export schema only
2015-04-17 20:35:42 +01:00
Martin Kleusberg
599470ed41 EditTableDialog: Fix 'fooling' of list selection by dragging
See issue #261.
2015-04-17 17:21:18 +02:00
schdub
c340bb4668 exportsql: allow export schema only 2015-04-17 15:39:38 +03:00
Justin Clift
569dffbc25 Merge pull request #258 from schdub/master
Suggestion: 'Tab' indents multiline selection in SQL editor
2015-04-15 11:15:35 +01:00
schdub
2bfeb03b7e Suggestion: 'Tab' indents multiline selection in SQL editor 2015-04-15 11:13:59 +03:00
Peinthor Rene
409e0f71e5 Merge pull request #256 from schdub/master
fix: type of imported BLOB data #239
2015-04-15 07:58:39 +02:00
schdub
e23b0112d4 fix: type of imported BLOB data #239 2015-04-13 20:49:15 +03:00
Justin Clift
8a9380ef41 Typo fix - "multiply" -> "multiple" 2015-04-12 22:53:20 +01:00
Justin Clift
608f56eb3c Merge pull request #251 from schdub/master
exportsql: issue #242
2015-04-12 22:48:40 +01:00
Peinthor Rene
3ae9808289 use qt int64 type to fix build 2015-04-12 20:11:51 +02:00
Peinthor Rene
8cbc13a106 cmake: support for msvc2013 builds and installers 2015-04-12 19:59:04 +02:00
jsbot
073cf64a9d exportsql: issue #242 2015-04-11 23:54:05 +03:00