Commit Graph

3479 Commits

Author SHA1 Message Date
mgrojo dafa873dea CSV Import: fix importing into existing table
The previous commit broke the application of the type affinity rules for
already existing tables. Now the problem is at least restricted to
the case when the new "Use local number conventions" is used.

See issue #2140.
2020-12-20 00:58:14 +01:00
mgrojo f9314b6dbe CSV Import: give option to use system locale conventions
This will allow to import numbers in CSV which use ',' as decimal separator
and '.' as thousands separator, when the system locale is Spanish (Spain),
for example.

Additionally this commit detects the full range supported by SQLite for
INTEGER and REAL numbers, that is, 64 bit integers are not converted to
REAL and double precision reals are not converted to TEXT.

See issues #1347 and #2140.
2020-12-20 00:20:22 +01:00
mgrojo 4a2179baad Spanish translation: errors in translation of functions and iif translated 2020-12-18 21:53:56 +01:00
mgrojo e5734d4fd1 Export SQL: fix quoting of BLOB values and non-printable strings
This ensures that the export is accurate and consistent, and that the data
can be duplicated without any loss.

See issue #1201#issuecomment-742570014
2020-12-12 19:59:59 +01:00
Martin Kleusberg 11058633eb Allow opening recent files in read-only mode using a different shortcut
This adds a shortcut for opening recent files in read-only mode when
they were opened in read-write mode before and vice versa by pressing
Ctrl + Shift + %n instead of Ctrl + %n.

It also allows you to hold the Shift key while clicking a recent file
menu item to achieve the same effect.

See issue #2484.
2020-12-11 14:41:35 +01:00
Martin Kleusberg 9356d00939 Enable URI filenames in SQLite
Enable usage of URI filenames in SQLite calls. In theory, this should
not break any current use case as we tend to pass full paths to SQLite
and they should never start with "file:" or similar.

This should make it possible to attach databases using full URI
specifiers.

See issue #2493.
2020-12-11 14:13:03 +01:00
mgrojo 2742dcfa89 New follow mode for the SQL editor
Answering "Yes to all" will follow any further external file change until
the file is internally edited.

See issue #1839
2020-12-07 21:39:55 +01:00
mgrojo 2bd82cb4db Improvements in the file system watcher
- Add "No To All" option for ignoring all future modifications
- Do not watch the file while the dialog is still open

See issue #1839
2020-12-07 20:59:53 +01:00
mgrojo 629c7ff677 Message for trying to reduce the number of invalid issues 2020-12-06 22:03:08 +01:00
Justin Clift 11ba9d397c Update to Qt 5.15.2 for our macOS builds 2020-12-07 07:58:57 +11:00
mgrojo 1e4a88dd0a Warn user to apply or discard unsaved changes in cell editor
Additionally disable the entire widget when not associated to any valid
index.

See issue #2488
2020-12-06 20:17:06 +01:00
mgrojo af84e89b1f Add Ctrl+Enter as shortcut for executing query
See issue #2502
2020-12-06 20:12:17 +01:00
mgrojo 8b98df145a Avoid type conversion warnings in Plot Dock 2020-12-06 20:01:09 +01:00
mgrojo 7d04102092 Allow selecting fixed format for big integer numbers
The default format changes to scientific format when the width of the
number would be longer. The user will be able to select fixed format for
integer numbers in the contextual menu. Note that precision is set to 0,
because in the fixed format trailing zeros are not omitted.

See issue #2498
2020-12-05 17:21:33 +01:00
Martin Kleusberg efb9f9c9e0 Add new menu item to show the row counts of all tables
This adds a new action to the Tools menu which creates a new SQL tab
with a statement to count the number of rows of all tables and views.

See issue #2464.
2020-12-04 11:15:08 +01:00
YFdyh000 4a4757575d Update Chinese (Simplified) translations 2020-11-30 16:40:28 +01:00
mgrojo 2390b9e662 Store a relative filename if the path to project and to DB is the same
See issue #1478
2020-11-27 17:44:35 +01:00
mgrojo 9a70af7973 Evaluation mode in the Edit Database Cell editor
Entered expressions are evaluated using SQLite and the result is saved in
the cell.

The SQL Evaluation mode reuses the class used for the "Execute SQL" editor
so syntax highlighting and call-tips are supported.

See issue #2387
2020-11-27 17:44:35 +01:00
Martin Kleusberg 9b387d2061 Fix saving the list of extensions in the Preferences dialog
Thanks to @sandman7920 for providing the analysis and fix.

See issue #2467.
2020-11-25 23:38:16 +01:00
mgr 6a6412970b Typo in French
See issue #2486
2020-11-24 00:05:25 +01:00
mgr e31d9fe7a0 Update French translation
Cherry-picked from v3.1.x branch.

# Conflicts:
#	src/translations/sqlb_fr.ts
2020-11-23 23:46:41 +01:00
mgr 4435457ccf Update after review by @lulol
See issue #2405

Cherry-picked from v3.12.x branch.

# Conflicts:
#	src/translations/sqlb_es_ES.ts
2020-11-23 23:44:19 +01:00
mgr c894c4cb8a Update the Japanese translation for v3.12.1 (#2407)
* Update the Japanese translation for v3.12.1
* Remove translated shortcuts.

Cherry-picked from v3.12.x branch.

# Conflicts:
#	src/translations/sqlb_ja.ts
2020-11-23 23:38:02 +01:00
mgr 1a2de3749e Fix formatting and syntax of the help message in Spanish 2020-11-23 22:36:42 +01:00
mgr 579ab4e01c Update of Spanish translation for v3.12.1
Cherry-picked from the v3.12.x branch.

# Conflicts:
#	src/translations/sqlb_es_ES.ts
2020-11-23 22:35:41 +01:00
mgr 759efc6865 Update French translation for 3.12.0
Merged from v3.12.x branch.

# Conflicts:
#	src/translations/sqlb_fr.ts
2020-11-23 22:31:26 +01:00
Nikolay Zlatev 1dc7ffee4e Enable HiDPI on Windows (#2469)
* Enable HiDPI on Windows

* Fix build with MSVC2019 (use of overloaded operator'=' is ambiguous)

Co-authored-by: Nikolay Zlatev <nik@astrapaging.com>
2020-11-11 19:20:22 +11:00
Justin Clift 7b7cefd382 Initial Qt 5.15.1 update for the macOS build script 2020-11-10 21:02:39 +11:00
Justin Clift 0e7c93c016 Add version 3.12.1 to the issue report template 2020-11-09 18:02:06 +11:00
Martin Kleusberg 9d87b963a4 Add new menu item to import from CSV data in the system clipboard
This adds a new menu item to the File -> Import menu for importing a
table from the CSV data in the system clipboard instead of a file on
disk.

See issue #2462.
2020-11-08 18:47:24 +01:00
Martin Kleusberg b07621195d Fix possible crash when trying to modify a table
This should fix a possible crash when trying to modify a table which has
at least one field without a default value.

See issues #2457 and #2470.
2020-11-08 18:07:30 +01:00
Justin Clift cedb84dc33 Merge pull request #2461 from esemeniuc/patch-1
Update Arch installation instructions
2020-10-30 14:41:15 +11:00
Eric Semeniuc d0661cb469 Update Arch instructions for installation 2020-10-29 20:37:17 -07:00
Martin Kleusberg 9a3e5b1a2a parser: Fix unquoting when using square brackets
Unquoting field names which use [square brackets] for quoting was not
implemented correctly. This means that the quote characters appeared in
unexpected situations leading to invalid SQL statements.

See issue #2422.
2020-10-24 10:41:45 +02:00
SeongTae Jeong 94336018e4 Update code according @mgrojo's review 2020-10-14 23:42:26 +02:00
SeongTae Jeong bdabc44612 Fix to 'Window Layout' options work properly 2020-10-14 23:42:26 +02:00
Pino Toscano acd23e1fc3 Install SVG logo as hicolor scalable icon
Install the SVG logo as scalable icon in the global hicolor icon theme:
this way, application launchers/browsers that show icons bigger than
256 pixels can show a good-looking icon from the SVG logo instead of
upscaling the 256px PNG icon.
2020-10-10 16:16:09 +02:00
mgr 852faf6b38 Fixed incorrect display of SQL calltips containing non-US-ASCII characters
There is a further problem when the calltip is displayed after clicking
one of the arrows for overloaded functions.

This was first reported in #1107 (Russian) and #1206 (Korean). The subcase
has been reported in PR #2424.

Patch reported in the QScintilla list, so there is no need to keep a new
patch. It is assumed to come in new QScintilla versions.
2020-10-09 22:27:27 +02:00
SeongTae Jeong a1100b4f41 Remove unused translation items
Run : `lupdate -no-obsolete -pro src/src.pro -ts src/translations/*.ts`
2020-10-10 01:06:04 +09:00
Christof Böckler 48c8de6e37 Update German translation for minor change (#2428) 2020-10-09 23:05:45 +09:00
SeongTae Jeong bd8e6bfd8d Correct to tab instead of space 2020-10-09 01:45:28 +09:00
Codifier 30413802de Add Dutch translation
* Initial Dutch (nl) translation for v3.12.1
* Added missing translation phrase for AddRecordDialog and fixed a typo
* Added the proper references in configuration files to compile the Dutch translation into the build.
* Amended translations with changes requested in review 504832399.
* Fix CMakeLists.txt
* Correct one untranslated item

Co-authored-by: SeongTae Jeong <seongtaej98@gmail.com>
2020-10-09 01:16:00 +09:00
SeongTae Jeong 04d53c6ead User can disable 'Save Project' dialog (#2420)
* Add new checkbox in Preferences

* Update PreferencesDialog.cpp for new checkbox

* Add default value for new setting.

* Update MainWindow.cpp for handle new checkbox

* Update Korean translation for this branch

* Correct the label text clearly and add hints
2020-10-04 17:42:36 +02:00
SeongTae Jeong f99f128ebe Add Homebrew Cask command for nightly build 2020-10-03 01:35:22 +09:00
SeongTae Jeong b5a0d531cb Adjust the bottom buttons layout
This commit fixes an issue where the bottom buttons of
'PreferencesDialog' are positioned erratically on non-macOS platforms.
For further information, refer to 'Need Help' section of #2394 PR.
2020-10-01 21:44:39 +09:00
Justin Clift 47b61d25c1 Merge pull request #2414 from xxsl/DEBIAN_DOC
Add note about -DFORCE_INTERNAL_QSCINTILLA=ON to Ubuntu and Debian in…
2020-09-28 17:29:14 +10:00
xxsl 992142218f Add note about -DFORCE_INTERNAL_QSCINTILLA=ON to Ubuntu and Debian instructions 2020-09-28 15:07:01 +09:00
mgr 7c147456c5 Open in external application: apply saved data directly to the cell
And not to the cell editor. This will avoid a redundant click to Apply,
when the user has just pressed Apply instead of Cancel in the dialog.

See issue #2402
2020-09-27 18:29:04 +02:00
Martin Kleusberg 80b4215bae travis: Change my email address 2020-09-27 17:21:58 +02:00
Safa Alfulaij f0e7fe22c4 Update Arabic translation (#2406)
#2405
2020-09-22 23:13:15 +02:00