Commit Graph

3361 Commits

Author SHA1 Message Date
Justin Clift a1296bc6e5 Tweak the Portuguese translation .ts file after the earlier spelling fixes 2020-02-15 23:55:32 +11:00
Justin Clift d8b25e0b8e Translation tweak by Michel VERET for 3.12 release 2020-02-15 23:54:03 +11:00
Justin Clift daedace373 Updated translation by Michel VERET for 3.12 release 2020-02-15 17:11:47 +11:00
Justin Clift 485a1b514b Merge pull request #2126 from bernardosulzbach/pt-br-translation-for-3.12
Brazilian Portuguese translation updates for 3.12
2020-02-15 16:49:48 +11:00
Bernardo Sulzbach 0c6f513091 Finishes all pending translations to Portuguese 2020-02-14 23:30:08 -03:00
Bernardo Sulzbach 353672c868 More Portuguese translations for the 3.12 release 2020-02-14 23:29:10 -03:00
Bernardo Sulzbach cbedf321ce Adds more Portuguese translations 2020-02-14 23:25:50 -03:00
Bernardo Sulzbach 445ba754d6 Updated some more Portuguese translations 2020-02-14 23:23:51 -03:00
Bernardo Sulzbach 8a9d055525 Started updating Portuguese translations 2020-02-14 23:23:51 -03:00
Justin Clift fe88463cba Fix spelling mistake noticed by Bernardo Sulzbach 2020-02-15 12:48:35 +11:00
Justin Clift 29cc46c7d3 Merge pull request #2125 from bernardosulzbach/bad-sentence-fix
Adds a missing space between sentences
2020-02-15 12:36:35 +11:00
Bernardo Sulzbach 1d1afaad21 Adds a missing space between sentences
Also rewords the second sentence to be more grammatically correct.
2020-02-14 21:00:52 -03:00
Iulian Onofrei 281cfe78dc Fix dotenv not working when not specifying the plaintext header size 2020-02-15 01:34:07 +02:00
mgrojo 763a4a0b92 Update Japanese translation file with post v3.11.2 strings 2020-02-14 21:02:27 +01:00
mgrojo cfb712dbfd Japanese Localization. #2122
Merge branch 'hrwatahiki-master'
2020-02-14 20:52:13 +01:00
WATAHIKI Hiroyuki 9a1cc66503 Japanese Localization. 2020-02-15 02:34:58 +09:00
Martin Kleusberg 5f016f5814 Update translation files 2020-02-14 10:31:51 +01:00
Martin Kleusberg cee3523f37 Fix the recordset numbers in the Browse Data tab
This improves the accuracy of the number of the last row in the
recordset number label at the bottom of the Browse Data tab by using the
seemingly more accurate visualIndexAt approach instead of the rowAt
approach from before and by taking the horizontal scrollbar into
account.

It also updates the label when resizing the row heights or column
widths.

See issue #232.
2020-02-13 13:27:02 +01:00
mgr b0065300e4 Never mark the DB dirty if it is read-only. Issue #1514
Setting save points does not make sense for read-only databases, so
do never set a save-point while executing a user query if the database has
been opened in read-only mode.

If setSavePoint is ever called in read-only mode, a warning is printed and
the save-point is not set.

If ever a read-write query is executed, it would be rejected by SQLite so
there is no risk of immediately committing any change to the DB.
2020-02-13 12:12:24 +01:00
Martin Kleusberg 4070c5505d libs: Update JSON library to version 3.7.3 2020-02-13 11:11:27 +01:00
Scott Furry 6c309cb2c5 Bump revision of internal QCustomPlot from 2.0.0(2017Sep04) to latest available, 2.0.1(2018Jun25). 2020-02-13 10:26:00 +01:00
Martin Kleusberg d522de70db parser: Add support for parsing GENERATED ALWAYS AS columns
This adds support for parsing, storing, and generating GENERATED ALWAYS
AS columns as added in SQLite 3.31.0.

See issue #2107.
2020-02-09 14:13:45 +01:00
Justin Clift cbced65931 Restore FileIO Extension, as SQLite 3.31.x has been released 2020-02-03 13:52:29 +11:00
Justin Clift 784bdc759d Merge pull request #2109 from deepsidhu1313/master
Fix for #2102
2020-02-02 17:17:58 +11:00
Navdeep Singh Sidhu b69e31f0a8 Code Cleanup 2020-02-01 15:49:01 -06:00
Navdeep Singh Sidhu cc943d9dc9 Using QT wayland in stage packages and disabling native wayland
Reference: 
https://github.com/pbek/QOwnNotes/commit/cb81541fd1c9ee2b45bc1f52bbd3ef764205fcd4#diff-f1fd68f18392b31bad1319ef4ea6d66e
2020-02-01 15:41:45 -06:00
Navdeep Singh Sidhu 681b74da3b Merge pull request #1 from sqlitebrowser/master
Changes from upstream
2020-02-01 15:27:16 -06:00
Justin Clift 3efaed5751 Merge pull request #2093 from sqlitebrowser/github/macos-case
Update macOS casing in bug report template
2020-01-18 10:03:10 +11:00
Iulian Onofrei e0b276c391 Update macOS casing in bug report template 2020-01-18 00:31:09 +02:00
mgrojo fd4ddfe035 New icons for record insertion and deletion
The new icons are believed to be more easy to parse and identify.

They are derived from @damieng's Silk Companion 1 (icon table_row.png) and
the Silk's bullet icons for (+) and (-).

https://damieng.com/creative/icons/silk-companion-1-icons

See issue #2083
2020-01-17 19:55:04 +01:00
Justin Clift cac58e003b Remove FileIO Extension for now, as its breaking Win32/64 compilation 2020-01-18 02:40:09 +11:00
Martin Kleusberg ac0b74cea0 Fix regexp implementation to work with Unicode characters
After switching from QRegExp to QRegularExpression matching Unicode
characters was broken. This functionality is now restored.

See issue #2054.
2020-01-17 12:22:36 +01:00
Martin Kleusberg 8c0788d82a qmake: Fix build on some platforms
Building with qmake did not work on macOS or at least not on all macOS
systems. This can be fixed by not compiling the header-only json library
into an empty static library - which is not needed anyway.

See issue #2014.
2020-01-17 11:05:43 +01:00
Martin Kleusberg 6143925d7e Fix handling of databases with a view and a trigger with the same name
This fixes editing and browsing views which have the same name as a
trigger in the same database.

See issue #2091.
2020-01-16 17:35:12 +01:00
Martin Kleusberg 2888530a10 Do not accidentally check "Unlock View editing" in Browse Data tab
When switching to a view for a second time, the "Unlock view editing"
menu item was suddely checked. This is now fixed.

See issue #2091.
2020-01-16 17:27:05 +01:00
Martin Kleusberg 54866e1827 Disable editing of cells in views in Browse Data tab when not enabled
See issue #2091.
2020-01-16 17:20:19 +01:00
Justin Clift a657d2bff6 Merge pull request #2071 from wojnilowicz/master
Update Polish translation
2020-01-07 01:46:06 +11:00
mgrojo 08fd226d6f Avoid getting notifications of files just saved by us
Closing the file in the destructor seems to be done after the watch is
in place, so it can get a notification in some platforms.
2020-01-06 00:55:33 +01:00
mgrojo e4d57f741e Set SQL editor in Modify Table dialog as read-only programmatically
Otherwise the UI dynamic property does not seem to work, although it
use to and should. Please, improve it if a way to return to the correct
behaviour.

Fixes issue #2078
2020-01-06 00:53:25 +01:00
mgrojo 9b670b4b94 Support for control characters as quote and separator in CSV import
New options and spin boxes are added for entering any non-printable
character in the Import CSV dialog.

This adds support for Concordance DAT files and similar cases. See issue
#2012
2020-01-06 00:50:33 +01:00
mgrojo d0e0ee3f64 Take into account Windows line separator in Execute SQL
QScintilla text(line) returns the string of the passed line including the
line terminator. Given the differences in platforms in that regard, we
only supported the case for a single character separator.

This should solve issue #2073 for Windows.

It also should solve #1768 and #1632, which were only reproduced in Windows
or editing files with lines ending in "\r\n" in general.
2020-01-04 19:36:41 +01:00
mgrojo ff86e525b3 Optimize simplification of Schema column
According to documentation
https://doc.qt.io/qt-5/qstring.html#simplified

> Whitespace means any character for which QChar::isSpace() returns true.
> This includes the ASCII characters '\t', '\n', '\v', '\f', '\r', and ' '.

So replacing '\n' is redundant and can be removed without effect.
2019-12-30 20:48:58 +01:00
mgrojo b4e8898dfa Revert to savepoint when applicable, also after failed statements
The end of the function is unified for failed and successful cases, so
the savepoint reversion is always made when it has to be.

Reported in issue #2073
2019-12-30 20:33:33 +01:00
mgrojo 81ee07355d Skip whitespace at the beginning of a failing query for the indication
For the error indicators and scrolling to the failing query, all the
whitespace present at the starting end of the query is skipped. Otherwise
the point indicated to the user could be very far to the actual query.

See issue #2073
2019-12-30 20:29:44 +01:00
mgrojo a287d8a27b Use correct syntax when format applied to string containing apostrophe
The string has to be correctly quoted so contained apostrophes are doubled.

This prevented applying a format to cells containing apostrophes (single
quotes) since the SQL code raised a syntax error in SQLite.
2019-12-27 13:02:49 +01:00
mgrojo 0efb1aecdd Update MIME types in desktop entry and Spanish translation
New MIME types according to IANA and our own MIME entry in
distri/mime/packages/db4s-sqbpro.xml

See issue #2024
2019-12-23 15:10:15 +01:00
mgrojo 71fc484c32 Be more specific in dialogs asking for saving or not the changes
The Discard option will be more specific about losing changes than an
ambiguous No, if user does not read the dialog message.

In my platform it is displayed as a "Close without saving"
button.
2019-12-23 14:02:09 +01:00
mgrojo 45e86d3bec Clean-up and better message in openDataWithExternal
Related issue #1791
2019-12-23 13:57:50 +01:00
mgrojo 709c74669f Allow activating "Adjust rows" in views
The contextual menu will show all options for writable tables, and only
"Adjust rows" option for views or read-only DBs.

See issue #2006
2019-12-23 13:55:30 +01:00
mgrojo a085d99b64 Enhancement: save to temporary file, open external application and reload
A new button has been added in "Edit DB Cell" dock, which saves the cell
data to a temporary file with extension according to detected data and
opens default external application for the file type. It then asks user to
reload the data in a dialog when they have finished editing the data. It
can be also used for viewing if the user cancels the reload.

See related issues #1791 and #1746
2019-12-23 12:35:13 +01:00