Commit Graph

56 Commits

Author SHA1 Message Date
Peinthor Rene 4f3855e7c8 cmake/vs2013: use winxp toolset 2015-05-05 18:47:49 +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 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
Peinthor Rene 92a8a9eec6 windows/msvc: add missing .dll to installers 2015-04-28 19:24:10 +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
Justin Clift 608f56eb3c Merge pull request #251 from schdub/master
exportsql: issue #242
2015-04-12 22:48:40 +01: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
Peinthor Rene 004d9ec4c8 cmake: remove the gen_version.h generation
to have the git hash in the dev build didn't really bring any
advantage, but make the build scripts more complicated
2015-04-10 10:25:25 +02:00
Geoff Lawrence 95416457fd Create an AppData file 2015-03-26 15:32:10 +00:00
Samir Aguiar a5d6e6df7a preferencesdialog: Add country flag to language combo box
See issue #182.
2015-02-13 23:49:33 +01:00
Samir Aguiar eb1a32ef24 localization: Rename Chinese translation file to match locale
This allows the file to be included in the language box
(Qt wasn't recognizing the "cn" suffix as a valid locale).
2015-01-21 23:06:02 +01:00
Peinthor Rene 7587127360 cmake: show antlr sqlite3 grammar in project 2014-11-25 22:01:14 +01:00
Martin Kleusberg 167d8cbd74 cipher: Fix build option and use a dialog for entering the password
Fix the sqlcipher build option in the qmake project to actually enable
the SQLCipher support.

Add a new dialog called CipherDialog which is used to ask the user for
the password and other encryption details instead of using standard Qt
input dialogs.
2014-11-02 13:12:31 +01:00
Martin Kleusberg 9ba36d02b2 Add initial SQLCipher support
Add some basic initial support for SQLCipher. Note that this is more of
a POC than a final implementation.

This commit adds an option called 'sqlcipher' to the cmake and qmake
projects which - when enabled - replaces the default SQLite3 include and
library files by their SQLCipher counter-parts. Especially on MacOS X
there might be some more work required in finding the correct include
paths. The SQLCipher library supports unencrypted databases, too, so
even if the option is enabled the program behaves like before. You can
see the difference, though, in the About Dialog where the SQLite version
string will say 'SQLCipher version xy'.

When the sqlcipher option is enabled and you try to open a file which is
neither a project file nor a normal SQLite3 database it is assumed now
that the file is an encypted database. There is no way to tell between
an invalid file and an encypted file, so in both cases a password dialog
pops up. When the correct password and page size are entered the file is
opened and can be edited like any other database before.

Creating encrypted databases isn't supported yet. So for testing you
need to fall back to the sqlcipher command line tool.

See issue #12.
2014-11-01 12:56:53 +01:00
Martin Kleusberg 722bf3797f i18n: Add Chinese translation to project files 2014-10-29 19:46:29 +01:00
Sandro Mani 1491a9318e Install icon to hicolor directory 2014-10-26 09:30:01 +01:00
Marius Cirsta 807c729910 install png icon and desktop file for Linux ( and other Unix ) 2014-10-03 00:13:02 +03:00
Justin Clift 05207b0b9f Renamed project to "DB Browser for SQLite" 2014-09-21 11:14:39 +01:00
Peinthor Rene a2e704cd01 cmake: lower minimal required version a bit 2014-09-17 22:21:07 +02:00
Martin Kleusberg 847ad46424 Enable version check for MacOS X 2014-09-16 20:04:46 +02:00
Peinthor Rene 04e08cb6d1 trans: add french translation to build process 2014-09-02 18:18:34 +02:00
Peinthor Rene b1f472fd3e Merge pull request #93 from hurzl/fbsd
Add extra path to make it compile on FreeBSD
2014-09-02 18:06:59 +02:00
Peinthor Rene 97e2025cc9 cvsparser: Newly implemented CSV Parser
Moved parser into it's own class
This parser now proper supports new lines in quoted text
and returns a QVector<QStringList> result.
2014-09-02 18:05:04 +02:00
Martin Dieringer a385872004 Add extra path to make it compile on FreeBSD 2014-09-02 17:15:24 +02:00
Peinthor Rene 34e274ee3c cmake/nsis: small improvements to the windows installer 2014-08-31 16:23:17 +02:00
Justin Clift d39ba2947b Renamed application to Database Browser for SQLite
Hopefully this will reduce the misdirected support calls to Hwaci :)
2014-08-27 23:14:16 +01:00
Justin Clift b355005b89 Update 3.0.1 version number with 999.0.0 placeholder
As suggested by Martin here: https://github.com/sqlitebrowser/sqlitebrowser/pull/71/files#r15728485
2014-08-03 12:32:11 +01:00
Markus Elfring d3ccdc2cdd Bug #58: Completed quoting for parameters of some CMake commands
A wiki article pointed out that whitespace will only be preserved for parameters
in CMake commands if passed strings will be appropriately quoted or escaped.
http://cmake.org/Wiki/CMake/Language_Syntax#CMake_splits_arguments_unless_you_use_quotation_marks_or_escapes.

Quoting was added so that more places should also handle file names correctly
which contain space characters or semicolons eventually.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
2014-08-01 15:49:11 +02:00
Martin Kleusberg 86797591ec Fix issue introduced in ba75bd16fe 2014-08-01 11:21:47 +02:00
Martin Kleusberg ba75bd16fe Use common format for all include guards and avoid leading underscores
Use a common format for all include guards, make sure each header file
has one and make sure it's named after the file name.

And as a random extra in this commit: Make sure the gen_version.h file
generated by cmake ends with a line break.

Closes #59.
2014-07-31 21:32:58 +02:00
Peinthor Rene 8d9f08a74a qt5: fix qt5 cmake build 2014-07-27 21:06:56 +02:00
Martin Kleusberg cd9a563568 i18n: Also build qm files when compiling using cmake and Qt5
Disclaimer: This is untested but looks plausible to me...
2014-07-20 17:37:31 +02:00
Sergey Muratov 87bda982c1 I18N was improved. Translation GUI to Russian was made. 2014-07-15 22:33:17 +04:00
Martin Kleusberg 17cf2018ca Remove dependency to main window from DBBrowserDB class
Get rid of the dependency to the MainWindow class in the DBBrowserDB
class. It was only used for calling the log SQL and set database state
functions anyway. The same result can be achieved emitting Qt slots.
2014-07-12 16:13:32 +02:00
Peinthor Rene 517fc1182e cmake: avoid long lines in cmake file 2014-07-06 09:34:54 +02:00
Peinthor Rene 7dc88babcd cmake: reindent file 2014-05-16 18:03:52 +02:00
Martin Kleusberg 4b12faf278 Update cmake file 2014-05-15 17:58:04 +02:00
Peinthor Rene b60465b6b6 Fix cmake 2014-05-14 07:24:51 +02:00
Martin Kleusberg 954cc2f689 cmake: Add extra lib and include paths when building on MacOS
When compiling with cmake on MacOS, search for the SQLite library and
include files in some other irectories before falling back to the standard
paths.
Maybe this fixed the issue at
https://github.com/rp-/sqlitebrowser/issues/42
2014-05-09 19:26:21 +02:00
Justin Clift 62b2b1738d Adjusted rp-/sqlitebrowser to sqlitebrowser/sqlitebrowser 2014-05-01 14:55:23 +01:00
Peinthor Rene d084646595 fix qt5 build 2014-04-23 19:35:21 +02:00
Rene Peinthor 0ecff2caa2 cmake: build qcustomplot as static lib and fix windows build 2014-04-23 08:31:53 +02:00
Peinthor Rene 88ccd48173 plotting: add a simple mechanism to visualize data
added a plotting dock, where you can select x and y axis
and it will draw a chart out of it
2014-04-19 22:19:32 +02:00
Peinthor Rene de1fb9ff2f qt5: full qt5 compability
ifdef rest of the code which can't be ported 100%
add CMake option USE_QT5 to use qt5 ;)
Thanks to stretchtiberius for initial patch
2014-02-14 00:28:42 +01:00
Peinthor Rene 67787f5e8b cmake: set default build type to Release
if non is given
2014-02-12 19:16:19 +01:00
Peinthor Rene d24ab33f2c cmake: remove unittest option
Create a CMake project just for unittest in the tests folder
2014-01-23 22:08:54 +01:00
Peinthor Rene 88f66be89e get rid of the version.sh script and also drop support for qmake building 2014-01-12 21:59:06 +01:00
Peinthor Rene 1c904145fa win32: little static link hack for windows builds 2013-12-02 18:37:59 +01:00
Peinthor Rene be1ba804c6 add a version check feature
this is only enabled on windows as there is no package manager handling the versions
and we don't want users to stay on old versions forever
2013-12-02 16:52:48 +01:00