Commit Graph

1907 Commits

Author SHA1 Message Date
Michel VERET
d1577facdd Updating French translation for 3.10.0-beta1
Closes #1066.
2017-08-07 15:03:13 +01:00
Justin Clift
175942b373 Regenerate czech translation file with most recent source strings 2017-08-07 14:50:25 +01:00
Petr Tykal
eac8775e32 80% of czech translation is complete 2017-08-07 14:47:57 +01:00
Martin Kleusberg
f458ac37bf dbhub: Fix wrong certificate being used
When changing the client certificate we need to clear the authentication
and access cache of our Qt network access manager instance. If we don't
do so, Qt might decide to use the old certificate information which is
still in the cache for some recurring queries.
2017-08-03 20:31:18 +02:00
Martin Kleusberg
e08ebffd63 dbhub: Improve UI for pushing databases
This improves the user experience for pushing database files. Before
this you had to type in the entire URL for pushing, e.g.:
https://db4s-beta.dbhub.io:5550/username/databasename
With this the host name as well as the user name is taken from the
currently active client certificate. So all you have to type in now is
the database name. And for this we make a sensible automatic suggestion
based on the name of the local file you're trying to push.

Note that while this makes pushing databases a lot easier, it still
doesn't implement proper version control or any extra code for handling
conflicts etc.
2017-08-03 19:02:42 +02:00
Martin Kleusberg
d14fb1fbb1 dbhub: Remove remote menu, add push button to remote dock
This commit removes the File -> Remote menu entirely. The only menu item
that was left was the Save to Remote item which is replaces by a button
in the remote dock.

The button is only enabled when a database file is opened and the user
has logged in using a certificate.

Clicking the button opens the same dialog and performs the same actions
as before. The only difference is that we don't use the first client
certificate - no matter which one it is - but instead use the client
certificate that was used for logging in.
2017-08-03 17:35:36 +02:00
Martin Kleusberg
dfa9ad7c03 dbhub: Remove the browse mode combo box from the remote dock
Remove the browse mode ("Remote" / "Local") combo box from the remote
dock as it's currently not used for anything and probably won't be used
for the time being. So before it causes any confusion as to what it does
we should probably just get rid of it for now.
2017-08-02 17:47:27 +02:00
Martin Kleusberg
917e33ff95 dbhub: Fix local version control code 2017-08-02 17:43:40 +02:00
Martin Kleusberg
7195acf488 Fix scroll button tooltips in main window
See issue #1067.
2017-07-31 23:41:55 +02:00
Martin Kleusberg
ff4f8d7dbf dbhub: Use different icon for user's directory 2017-07-31 23:11:42 +02:00
Martin Kleusberg
bb9f0cc09a Update translation files 2017-07-31 23:01:34 +02:00
Martin Kleusberg
5cb308207c Fix typos in Edit Table dialog
See issue #1073.
2017-07-31 23:00:04 +02:00
Justin Clift
f690f710ee Merge pull request #1074 from mafagafogigante/pt-br-3-10
Should have up-to-date Portuguese translations
2017-07-31 19:38:44 +01:00
Bernardo Sulzbach
1d4df397f3 Should have up-to-date Portuguese translations
Also fixed mixed plot symbols translation.
2017-07-31 14:41:04 -03:00
Justin Clift
52f23a03a0 Added 3.10.0-beta1 to the issue template 2017-07-31 15:05:20 +01:00
Genyk
0678f7627c Updated Ukrainian translation for 3.10.0 2017-07-31 12:00:55 +01:00
Justin Clift
8e41fbb87f Merge pull request #1071 from MrJiggers/master
70% of czech translation is complete
2017-07-31 11:51:15 +01:00
Petr Tykal
531e45fd0b 70% of czech translation is complete 2017-07-31 11:48:29 +01:00
Martin Kleusberg
e17fb6f8ca dbhub: Use commit id instead of version number
This changes all the code to use the commit id of a database version
instead of a version number. This means changing the UI, the code for
the communication with dhhub.io, and the internal database for storing
information on downloaded databases.

The last step makes it necessary to delete that database file on your
system, so it will be recreated! Please do that :)
2017-07-28 14:22:10 +02:00
Martin Kleusberg
9fe9bf9381 Improve design and handling of the remote tab in the preferences dialog
In the remote tab of the preferences dialog all items in the root ca and
the client cert table views were shown as disabled. The grey text made
them hard to read and the disabled look and feel could be confusing as
to what DB4S tries to tell you by doing that. It also made it hard to
select the entire row in the client cert table view when you wanted to
delete it. All this is fixed by this commit which 'enables' the items.
2017-07-28 13:55:36 +02:00
Martin Kleusberg
441a08a44d Add build date to --version command line output
See #1065.
2017-07-28 11:21:27 +02:00
FriedrichFroebel
912ae91161 Add commandline argument for version output (#1065) 2017-07-27 14:16:19 +01:00
Justin Clift
7baea3bef1 Merge pull request #1062 from lulol/master
Update Spanish translation
2017-07-24 13:00:31 +01:00
lulol
07928d6fec update Spanish translation 2017-07-23 19:42:00 +02:00
probonopd
4198de307d Fix AppImage build (#1061) 2017-07-23 10:11:52 +01:00
Justin Clift
9cdb977b80 Merge pull request #1060 from FriedrichFroebel/german-translation
Update German translation
2017-07-22 13:00:06 +01:00
FriedrichFroebel
18d6191513 update German translation 2017-07-22 13:44:54 +02:00
Justin Clift
590219df13 Update translation files for our translators v3.10.0-beta1 2017-07-21 17:41:17 +01:00
Justin Clift
0a5eef8241 Use the new Czech language, add the Czech flag 2017-07-21 17:40:22 +01:00
Justin Clift
8eb07240cb Merge pull request #1050 from MrJiggers/master
Begin of czech translation
2017-07-21 17:08:46 +01:00
Justin Clift
e990875bc3 Update version number to 3.9.100, which we're using for 3.10.0-beta1 2017-07-21 17:03:46 +01:00
Justin Clift
74848d085e Remove AppImage creation from Travis CI, as it's causing Travis to fail 2017-07-21 16:59:57 +01:00
Justin Clift
1dd4d189f0 Add minimum width to the Preferences dialog remote tab panels
Otherwise the display is fairly messed up on OSX
2017-07-21 16:58:41 +01:00
Justin Clift
608b8486c1 Add development Certificate Authoritiy cert chain 2017-07-21 16:57:30 +01:00
Petr Tykal
708c54f1d0 Begin of czech translation 2017-06-30 23:48:38 +02:00
Martin Kleusberg
e64eb8a118 Only load extra byte in the CSV parser when there's more data available 2017-06-30 22:32:13 +02:00
Martin Kleusberg
26ddcf2c04 Allow setting PRAGMAs from the Execute SQL tab
As per popular request, this adds support for setting PRAGMAs from the
Execute SQL tab. Since most PRAGMAs won't work inside a transaction we
make sure that we're not in one while the PRAGMA statement is executed.
If this means we need to commit any pending changes, the user get a
message box.

See issues #1021, #980, #966.
2017-06-30 21:59:47 +02:00
Martin Kleusberg
c6deca1242 Fix CSV import when line breaks appear at the buffer boundary
We're reading CSV files not all at once but in chunks. And when we're
encountering a \r char we're checking if it is followed by a \n char. So
far so good. But now it might happen that we're hitting a \r char that's
right at the end of the current buffer. In this case the lookahead check
isn't working as expected because there isn't more data available yet.
This commit fixes the issue by checking for these conditions and loading
an extra byte when needed.

See issue #1033.
2017-06-30 00:59:03 +02:00
Martin Kleusberg
abd7d4e689 When importing CSV data into existing tables, don't insert empty strings
When importing a CSV file into an existing table (i.e. a table where we
have a table schema), check the data type of a field before inserting
empty values. If it is an integer field, don't insert empty string like
we did before but 0 or NULL depending on the NOT NULL flag.

See issue #195.

Please note that this isn't perfect. The preview in the dialog doesn't
reflect these changes yet, it just show you the contents of the file as
is. It's a little tricky to change this and I somehow think it's better
the way it is now anyway. Also the import doesn't check for other
constraints like UNIQUE or CHECK which might cause trouble. But then
again it didn't do that before either.
2017-06-29 22:22:57 +02:00
Martin Kleusberg
08f15b3bf1 Enforce quote chars in CSV export for fields with line breaks
See issue #1037.
2017-06-29 21:08:37 +02:00
Martin Kleusberg
a92a32157a Fix two problems in the CSV import
When importing a CSV file and using the first row as the field names,
the row would be imported as the first data row again. It's now skipped
when the checkbox is set.

When importing a single CSV file the checkbox asking whether to import
into a single table or separate tables is hidden. However, the last set
values are loaded anyway when the dialog is opened. This means the
checkbox could be set, even though it's invisible. If it's set, however,
and we're importing a single CSV file this would mean that it's
impossible to manually set the table name to import into. This is fixed,
too.

Also this simplifies the code a bit and removed a large loop from the
import dialog code.
2017-06-29 00:19:08 +02:00
Martin Kleusberg
e3764c920f Change wording of a message box 2017-06-28 22:45:16 +02:00
Martin Kleusberg
3c40a12103 Rework the Execute SQL tab handling
Allow opening new tabs, opening SQL files, and saving SQL files even
when no database is opened. Execution of SQL statements obviously is
still not allowed. But this should make it possible to use DB4S as a
simple SQL text editor if no better alternative is available on the
system.

Don't close SQL tabs when closing the databse.

When opening a database only close empty tabs, keep all non-empty tabs
opened. This should make sure that no SQL statements are accidentally
lost when opening a new database or simply closing the old one.

When opening a project file, close all tabs and load the new tabs from
the project file.

See issue #1035.
2017-06-28 22:17:38 +02:00
Martin Kleusberg
df8219de09 In Edit Index dialog don't remove expression columns by accident
Don't allow removing expression columns by double clicking as this it
too error-prone. Instead require a button click for removal and only
start editing the expression when double clicking.

See issue #1012.
2017-06-28 16:56:26 +02:00
Martin Kleusberg
803a1fa5cb Add 'Set to NULL' context menu action
Add a new action 'Set to NULL' to the table browser context menu for
setting all selected items to NULL.
2017-06-28 16:40:09 +02:00
Martin Kleusberg
2421fef219 Add context menu to all table views
Add a context menu to all table view widgets in the program (Browse Data
tab and Execute SQL tab) which opens when right clicking a table item.

Currently the menu only allows you to copy and paste the selected
item(s).

Only activate the paste action when the current view is writable.
2017-06-28 16:30:03 +02:00
Martin Kleusberg
4de01c1e73 Add helper function to make the code more self-explanatory 2017-06-28 16:29:28 +02:00
Martin Kleusberg
4f676ae206 Check for errors when reading or writing sQL files
See issue #1036.
2017-06-28 15:35:30 +02:00
Martin Kleusberg
f4fad4afcf Fix possible crash when loading project files
This fixes a crash when loading project files that haven't set the
current tab to the Browse Data tab.

See issue #1019.
2017-06-26 12:39:50 +02:00
Justin Clift
004f715828 Add qt5-qtbase-devel to the dnf package list for CentOS 7. Thanks @architectcom. :)
As pointed out by @architectcom, CentOS 7 needs qt5-qtbase-devel installed else compiling will fail:

  c74204c700 (commitcomment-22747681)
2017-06-25 12:13:01 +01:00