Commit Graph

3264 Commits

Author SHA1 Message Date
Justin Clift
4bd2b916da Update currentrelease file for 3.12.0 2020-06-17 16:36:12 +10:00
Martin Kleusberg
7c6ef2ae51 dbhub: Add text to upload button
Add some text ("Upload") to the push database button in the Remote dock
to make its function more obvious.
2020-06-13 11:58:30 +02:00
Martin Kleusberg
5cdda28608 dbhub: Log in by only selecting an identity, no need to press a button
This removes the login button from the dbhub dock. Instead of selecting
an identity and then clicking the login button, you are now logged in by
just selecting an identity.
2020-06-13 11:37:30 +02:00
Justin Clift
fa3a0f5756 Updated French translation 2020-06-11 15:39:52 +10:00
Martin Kleusberg
834e6508bf Refactor TableBrowser class to make it easier to read and maintain
While easier maintainability is the main point of this commit it has two
more side effects: It fixes a big which leads to the filter row being
cleared when toggling the rowid visibility and it should improve the
performance a bit by avoiding double work.
2020-06-10 21:02:26 +02:00
Martin Kleusberg
535243ad67 Remove unused code 2020-06-10 15:46:46 +02:00
Martin Kleusberg
ff37c90155 Add iif SQL function to the list of known functions in Execute SQL tab
This adds the iif function to the list of known functions for which we
offer tooltips in the Execute SQL tab. It was introduced in SQLite
3.32.0.
2020-06-10 15:28:27 +02:00
Martin Kleusberg
facbcec793 Replace more Qt containers by STL containers and fix a ton of warnings 2020-06-10 15:05:22 +02:00
Martin Kleusberg
5748e14f9e Simplify code a bit
This removes some unnecessary complexity which was left over from an
experiment which did not quite work out as expected.
2020-06-10 14:53:13 +02:00
Bernardo Sulzbach
1e88dd8d59 Updates the Brazilian Portuguese files for 3.12.0 2020-06-09 23:37:36 +02:00
mgrojo
2a6acbfaae update German translation for v3.12.x
# Conflicts:
#	src/translations/sqlb_de.ts
2020-06-09 21:39:21 +02:00
Martin Kleusberg
f559026537 Rename 'Open tab' to 'New tab' in the Execute SQL area
See issue #2276.
2020-06-09 20:38:24 +02:00
Martin Kleusberg
23b1021d34 Scale large images in ImageViewer to fit the viewport by default
See issue #2029.
2020-06-08 20:28:46 +02:00
Martin Kleusberg
d653bf9f9b Replace some more Qt containers by their STL counterparts 2020-06-08 16:06:56 +02:00
Martin Kleusberg
2f28a3ef5c Drop support for loading the old project file format
This drops support for loading project files with binary data as created
until version 3.10.
2020-06-08 15:42:23 +02:00
Justin Clift
044e4842e8 Merge pull request #2275 from scottfurry/convert
Update to Windows Icon Generation script
2020-06-07 16:21:41 +10:00
Scott Furry
90698e5dc3 Update to Windows Icon Generation script
Update script `src/tools/create_windows_icon.sh`.
Script uses Imagemagick `convert` command and requires attention to ordering of arguments.

Script update for use w/ Bash 5
2020-06-07 00:17:51 -06:00
Martin Kleusberg
fa04d72f20 Fix possible crash when loading project files
This fixes a possible crash when loading project files which occurs with
some versions of Qt when trying to set the column widths in the Browse
Data tab.

Thanks to @hertzhaft for spotting and fixing this.

See issue #2232.
2020-06-06 16:45:12 +02:00
Justin Clift
ba1c2a10ff Update Windows icon creation script at Scott suggestion :)
As per https://github.com/sqlitebrowser/sqlitebrowser/pull/2270
2020-06-06 13:33:51 +10:00
Justin Clift
454f182d28 Merge pull request #2270 from scottfurry/icon_cleanup
Application icon cleanup
2020-06-06 13:30:19 +10:00
Scott Furry
1ddb403593 Application icon cleanup
Ensure images used for application icon are a "best quality" image
with consistent square size. A sharp, square image is vital for downstream
usage/installation.

File `images/logo.svg` was taken as canonical source. File was edited in
inkscape. It's document properties were cleaned up(incl. image metadata).
Document viewport was made to be a large size and square(256px^2).
Image itself was resized to ensure an 8px margin.

File `images/logo.png` was created from svg (inkscape `export to png`
command). Image was generated with high compression as well as ensuring
an alpha layer and square sizing.

File `src/icons/sqlitebrowser.png` was copied from `images/logo.png`.
2020-06-05 04:30:19 -06:00
Martin Kleusberg
81bddb45d5 Do not show fields twice when parsing a table was incomplete
When the CREATE TABLE statement of a table could not be parsed
completely we asked SQLite for more information on this table and added
that to the table representation. This however made all fields appear
twice. With this commit we only ask SQLite for information on the table
when our parser did not yield any information at all to avoid this
problem.

See issue #2269.
2020-06-05 11:40:35 +02:00
Martin Kleusberg
f81da0d29c Remove "NULL" in margin of editor in Edit dialog for empty cells
When clicking on a cell with a NULL value while, the Edit dialog
switches into text mode and shows an empty text with "NULL" written in
the line number margin. When then changing to an empty string cell, the
text in the editor did not change (it is still empty after all). This
prevented an action from triggering which meant that the "NULL" text in
the line number marging was not removed.

See issue #2204.
2020-06-03 17:04:46 +02:00
Martin Kleusberg
d3c69ad291 Add zooming to image viewer in the Edit Dialog
This adds some basic zooming functionality to the image viewer used in
the Edit Dialog.

See issue #2029.
2020-06-03 15:03:15 +02:00
Martin Kleusberg
d0978ef462 Move image viewer from EditDialog into a separate class
This does not change any look or functionality but is only a preparation
towards adding more features to the image viewer.

See issue #2029.
2020-06-03 11:09:31 +02:00
Martin Kleusberg
61544e8905 Fix some warnings 2020-06-03 10:20:56 +02:00
mgrojo
896b0daa86 New setting for having close button on tabs (default) or not
Corner widget has been removed, since it has been agreed that it is too
stray from the tabs.

See issues #1968 and #2155
2020-06-03 00:02:39 +02:00
horst-p-w-neubauer
9b29c2f7ee fix ui mistake (4x XyMargin)
done: fix ui mistake (4x XyMargin)
2020-06-02 21:36:08 +02:00
horst-p-w-neubauer
276c0a0225 fix ui mistake (reset currenIndex to 0)
fix ui mistake (reset currenIndex to 0)
2020-06-02 21:36:08 +02:00
horst-p-w-neubauer
c4b43816a7 rearrange preferences database
rearrange preferences database:
* skip advanced button
* allways show editDatabaseDefaultSqlText and its label
* use complete southern dialogspace for sql edit widget
2020-06-02 21:36:08 +02:00
Justin Clift
98b0c767d5 Use port 443 for DBHub.io traffic, to be more enterprise firewall friendly 2020-05-30 23:54:49 +10:00
mgrojo
5e5c481fd4 Removed all translations of key shortcuts.
- Removed translation of Function keys for all languages
- Removed also remapped shortcuts for Italian

See issue #2178 and discussion in PR #2235.
2020-05-20 00:24:31 +02:00
horst-p-w-neubauer
308e6ec7d1 Update sqlb_de.ts
one missing 'Ctrl' to 'Strg' translation in explaining text
2020-05-20 00:24:31 +02:00
mgrojo
d6ab17311a Avoid unchanged translation of keyboard shortcuts to work around problems
There are some problems with some translations where the keyboard shortcut
does not work when translated. To prevent those problems, a general
reset of all the translations which are supposed to not change the actual
key combination has been made.

Only some shortcuts in Italian are clearly changed by the translation and
those have been preserved.

See issue #2178
as is.
2020-05-20 00:24:31 +02:00
Martin Kleusberg
b16017e11c Update schema after attaching/detaching a database in an Execute SQL tab
We did not detect ATTACH and DETACH statements when checking for
executed statements which require reloading of the database schemata.

See issue #2255.
2020-05-19 12:08:08 +02:00
Justin Clift
6115548a61 Update SQLCipher to new v4.4.0 release for our Windows builds 2020-05-16 09:09:48 +10:00
Martin Kleusberg
5de9a97250 Replace misleading text
Replace "Filter in all columns" by "Filter in any column".

See issue #2233.
2020-05-13 13:07:31 +02:00
Martin Kleusberg
11a4c6c880 Fix whitespace 2020-05-06 15:52:40 +02:00
Martin Kleusberg
139de6690a Fall back to asking SQLite when parsing a table schema has failed
When parsing a table schema has failed, fall back to the PRAGMA provided
by SQLite to give us some information about the layout of the table.
This does not give us as much information but it is definitely better
than no information at all. The main aim here is to fix the case where
we are dealing with a virtual table which we failed to parse, and we
now do not even know it is a virtual table.

See issue #2187.
2020-05-06 15:47:13 +02:00
Martin Kleusberg
31ded8a8d9 Fix possible crashes when loading outdated project file
Fix a couple of possible crashed when loading a project file which does
not match the database schema anymore.

See issue #2232.
2020-05-06 15:11:05 +02:00
Martin Kleusberg
112e008935 Fix crash when trying to open non-existing table via command line
This fixes a crash when trying to open a table which does not exist via
the -t/--table command line parameter.

See issue #2180.
2020-05-06 12:59:56 +02:00
Justin Clift
d33e903b05 Merge pull request #2231 from mercury233/patch-trans-zh-fixes
Fix zh translation
2020-05-04 18:58:58 +10:00
mercury233
24c1fa734a Fix zh translation 2020-05-04 15:34:39 +08:00
mgrojo
971b5ce5d2 Use Ctrl+PgUp to set focus to editor inside the SQL Execution Area.
This is the counterpart of Ctrl+PgDown in SQL editor, which focus out of
the editor.

See issue #2215
2020-05-03 16:34:54 +02:00
Manuel
81b9b5a125 Show a useful icon in SQL tabs (#2153)
The icon shows whether the tab is linked to a project file (open_sql icon)
or to a file in disk (document_open icon).

This has a lateral effect of fixing this, since the tab always has an icon
and the height of the tab bar never changes:

https://github.com/sqlitebrowser/sqlitebrowser/issues/2073#issuecomment-570900792
2020-05-03 00:48:45 +02:00
mgrojo
ebeef140fd Open SQL tabs for modifying views and triggers
Ideally there should be dialogs for editing views and triggers, but with
this feature, users will get a new SQL tab with the necessary statements
to recreate the object, so they can edit it and run it easily.
2020-05-03 00:12:50 +02:00
horst-p-w-neubauer
b0a0e34739 open a set of SQL-Files
Implements open a set of SQL-Files #2207
Allows to select more than one File in the OpenDialog and opens them in new tabs.

analyze open translations
update German translation
2020-05-02 22:32:38 +02:00
mgrojo
946d408aaf Improvements for working in the SQL Execution area using keyboard
This addresses two issued mentioned in #2215
# It's possible to focus out of the SQL Editor using Ctrl+PgDown (not used
by QScintilla)
# Ctrl+Tab and Ctrl+Shift+Tab works in all the widgets in the area and
provides the same functionality that the one provided by QTabWidget
(switch for- and backwards through the tabs)
2020-05-02 21:45:20 +02:00
Justin Clift
2622e659cf Merge pull request #2226 from horst-p-w-neubauer/de-translate-consistent-naming
update German translation
2020-05-03 04:53:56 +10:00
Justin Clift
9c3d7e3771 Merge pull request #2227 from deepsidhu1313/master
Changed grade level of snap package
2020-05-02 18:37:22 +10:00