Commit Graph

110 Commits

Author SHA1 Message Date
Martin Kleusberg 0c8cb4ec1d Revert "Move fetching data for data browsing to a separate thread"
This reverts commit 6da71b6788.

This was causing just too many problems for one. The ones I noticed
were:
- Messing up the table view when scrolling down very large table where
the prefetching code is triggered.
- Crashing when setting an auto increment PK in the Edit Table dialog
because the sqlitetablemodel is used for a check in there.
- Probably more crashed in other places but for the same reason.
- Easy to fix but an issue nonetheless: when doing plotting a number of
empty rows would be inserted into the data browser.
- It just feels a little laggy.
2017-05-05 15:08:51 +02:00
Martin Kleusberg 6da71b6788 Move fetching data for data browsing to a separate thread
This moves the data fetching code into a separate thread for
asynchronous execution. The Browse Data and the Execute SQL tabs are
affected by this.

Note that this is a somewhat naive implementation that is meant for some
first testing.
2017-05-04 18:58:38 +02:00
Justin Clift 46555bc819 Launch DB4S as user not Admin for Win installer
See #338 for details
2017-05-03 00:53:41 +01:00
Justin Clift becd385c86 Update Windows build path for Qt 5.8 2017-05-02 22:59:00 +01:00
Андрій Кондратьєв dd685afef1 Ukrainian translation 2017-04-06 19:19:44 +01:00
Martin Kleusberg 3e4f3fc3d2 dbhub: Add remote dock with directory browsing support
This adds a new dock to the main window that contains all the remote
functionality (or is supposed to contain it all in the future).

It also adds a directory browsing feature which allows you to browse
through the folders and files on the dbhub server.

By double clicking a database you can download and open it. The Open
Remote menu action isn't needed anymore and has been removed.

This also fixes an issue with pushing databases where, after sending the
file is completed, the save dialog was opened.

Note that this is still WIP and is far from polished.
2017-03-18 20:40:59 +01:00
Martin Kleusberg 85334330a5 cmake: Add options to disable usage of distribution's libraries
This adds two new options to the cmake script which, when set, force
cmake to use the version of the Antlr or QScintilla library in our
repository and not search for a system-wide version of the library.

See issue #961.
2017-02-15 22:13:35 +01:00
Martin Kleusberg c0d2e9131e Try using the system version of libscintilla2
See issue #832.
2017-01-20 18:57:20 +01:00
Martin Kleusberg 2c7f32c699 Rename Create Index dialog to Edit Index dialog
Just like the Edit Table dialog, this dialog handles both creating and
editing. For consistency's sake this dialog is therefore renamed to Edit
Index dialog.
2017-01-20 12:35:07 +01:00
Martin Kleusberg 45580865d3 Merge branch 'plotrefactoring' 2017-01-16 12:46:52 +01:00
Martin Kleusberg a6f2a7d9a0 Move plot code into a separate set of files
This cleans up the main window class a bit which was getting quite large
and a bit harder to maintain than necessary.

This commit also includes two minor fixes to the plot system:
- The plot widgets are now disabled when no database file is opened.
- The progress bar shown when fetching all data is now initialised with
the correct row numbers.

Other than that this commit should in theory not change any
functionality.
2017-01-13 18:00:39 +01:00
Vladislav Tronko 4f7473fbed Enhanced UI for creating and editing foreign keys 2017-01-13 12:59:31 +02:00
Martin Kleusberg 02019e391b Fix cmake build
Also simplify the cmake file for the unit tests.
2016-11-01 20:31:43 +01:00
Martin Kleusberg c2a9608c80 dbhub: Add basic HTTPS support
This adds basic support for fetching databases via HTTPS using client
certificates. You can include CA certificates to verify any responses
from a server. For now, one test CA certificate is included but it's
easy to add more.

It's also possible to authentify the client using a client certificate,
a client key and a password. As of this commit all three items are
hardcoded.

It's still possible to access any remote database via HTTP but if a
request URL starts with 'https' this new mechanism will be used.

All certificates, keys, and password included in here are taken from my
node.js test server repository. They will be replaced soon-ish.
2016-10-25 20:42:31 +02:00
Martin Kleusberg 4d26624bda dbhub: Add very basic support for opening remote files
This adds some initial support for opening remote files. You can enter a
URL and DB4S will try to download the file. When successful you'll be
able to specify a place and name to save the file under, and after
saving it locally to disk it'll be opened just like any local database
file.

See the included TODO comments for missing features. Most notably
missing is the HTTPS and certificate handling code. Also any support
for storing the remote source of a database is lacking.
2016-10-24 22:49:32 +02:00
Martin Kleusberg b9e4433318 Drop Qt4 support
This commit removes all code and configuration that was required for
building with Qt4. Hopefully noone really needs it anymore.

See issue #603.
2016-10-18 18:07:38 +02:00
Justin Clift b1b9f61d30 Updated project name for Windows nightly builds 2016-10-17 00:52:48 +01:00
Martin Kleusberg 2563d67868 Fix cmake file 2016-10-12 23:26:56 +02:00
Martin Kleusberg 5dddffd7a0 travis: Fix building 2016-09-06 17:07:06 +02:00
Vladislav Tronko 997bab5dab Fixing Travis build
Adding Settings to CMakeLists and missing header in Settings.cpp
2016-09-03 23:09:35 +03:00
Justin Clift 2957974974 Rename main CMake project name variable back to "sqlitebrowser".
Builds are breaking on *nix systems otherwise. eg #755 #758
2016-08-31 11:19:17 +01:00
Justin Clift 8a9130883b Update installer variables on Windows, update Qt5 path
This should update the master branch to use "DB Browser
for SQLite" naming, and fix the problem with the
uninstaller not showing up in Add/Remove programs on
Windows (issue #742)
2016-08-29 15:43:20 +01:00
Justin Clift c0014041d1 Use the DB4S icon for the Windows install package too 2016-08-28 18:16:48 +01:00
Justin Clift 4f70f6a7a8 Fix an old typo in a comment 2016-08-27 19:00:54 +01:00
Justin Clift 0d32d91363 Enable the /SOLID compressor option for NSIS 2016-08-27 18:57:16 +01:00
Martin Kleusberg a1e08b37c9 Rename ExportCsvDialog to ExportData dialog
Sorry for the big change but I think it's preferable to not call it CSV
dialog when it's not just doing CSV.
2016-08-25 23:12:36 +02:00
Justin Clift c6121c8d64 Renamed Arabic language file for now, so flag icon shows on windows
(cherry picked from commit ac0b8b9a4f)
2016-08-14 15:34:47 +01:00
Justin Clift aa29f1e4a3 Updated version number to 3.9.99 2016-08-11 19:31:39 +01:00
DelphiGit 41e172df72 Fix for unquoted path vulnerability
See issue #621 for details.

I built a new installation package and during installation on Windows 7
I could  see that the previously unquoted path is now quoted.
2016-07-13 20:29:12 +02:00
M. Hasbini 56c3dfb6b6 Update CMakeLists.txt 2016-07-11 03:11:18 +03:00
Geoff Lawrence cb79aba0c2 Minor change to BUILDING.md and undid an extra wrap to CMakeLists.txt 2016-05-03 20:44:15 +01:00
Justin Clift 0d42664043 Ensure correct Debug vs Release configuration Qt5 dlls are installed 2016-05-03 02:26:22 +01:00
Justin Clift 5d98a19901 Add SQLite source & library paths for Qt Creator 3.6.1 on Windows 2016-05-01 17:14:47 +01:00
lulol 0b8c5d8c8d Added spanish translation and flag (#560)
* First spanish translation

* Added flag of Spain

* Enable build of spanish translation

* Enable build of spanish translation 2nd

* Enable build of spanish flag

* Enable build of spanish translation 3rd

* Enable build of spanish translation fix 4rd

* Enable build of spanish translation fix 5th

* Enable build of spanish translation - travis hiccup
2016-04-11 14:27:48 +01:00
Firat Eski f33a988530 Turkish translation 2016-03-20 18:25:13 +00:00
Rene Peinthor 58c5b43ed2 lcms not needed for new nightly anymore 2016-01-04 05:46:03 +01:00
Gihun Ham c2f78b682c Korean translation
Includes the updated CMakeList for Korean ts file
2016-01-03 14:59:13 +00:00
Peinthor Rene 7ccae1a926 prepare release 3.8.0 2015-12-23 20:05:12 +01:00
Martin Kleusberg 71b7806f03 Delay applying a changed filter value
When changing a filter value delay the application of the new value on
the table for a couple of milliseconds. This makes the filter process
much smoother for fast typing users working on large tables.

See issue #415.
2015-10-15 11:42:59 +02:00
Peter Dave Hello 9280511f84 Traditional Chinese (zh_TW) l10n 2015-10-07 18:07:58 +08:00
Martin Kleusberg 7c1d237d9b Support alternative display formats in the Browse Data tab
This is a proof-of-concept or even a basic first implementation of a new
feature I'd like to have in DB4S which at the moment I call display
formats.

The idea here is to allow the user to change the data in the Browse Data
tab on a per column basis before displaying it. This means even though
the data is stored in format X in the database it can be shown in format
Y in the browser. This should be useful in cases where the original
format X is hard to read or just not useful in a particular case.

This first implementation allows the user to right click on the header
of a column and open a new dialog for setting the display format which
offers a (limited) list of pre-defined formats. The selected format is
then integrated into the SELECT statement which is sent to SQLite.

While it works, this draft implementation lacks a number of features.
Here are the most prominent ones I'm currently aware of:
* Data not editable (or only via the Edit Dialog) because it isn't
  transformed back yet.
* More display formats needed; maybe customizable ones, too.
* No indication in the UI for which columns a format has been set.
* Could _maybe_ be integrated into the import/export etc. for optional
  use.
2015-07-06 18:28:30 +02:00
Justin Clift 7acc0c7b36 3.7.0 is built, so updating the master branch version numbers to 3.7.99 2015-06-14 18:10:29 +01:00
Peinthor Rene 3cefaf4476 prepare release 3.7.0 2015-06-14 12:13:37 +02:00
Peinthor Rene fb9e04dfd8 win: ask for uninstall 2015-06-14 12:12:06 +02:00
Geoff Lawrence 700741af71 Added English (United Kingdom) translation
Not a huge change from the default US English but also added the flag.
This was done to document the process for the wiki!
2015-06-13 15:15:01 +01:00
Peinthor Rene d99d83f269 windows installer will now also silently install the vc redist package 2015-05-23 10:31:32 +02:00
Peinthor Rene bedb1b0fca rise package version 2015-05-23 10:31:27 +02:00
Peinthor Rene 4223d5d5da gen_version.h is no longer generated so rename it to version.h 2015-05-23 10:27:15 +02:00
schdub b0abd07d01 preparation to Brazilian Portuguese translation 2015-05-20 01:09:57 +03:00
Peinthor Rene dd333ce88c Merge pull request #310 from schdub/issue304
fix: translations are not being installed via make install
2015-05-12 21:52:20 +02:00