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
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.
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
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
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.
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.
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
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
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.
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.
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
When opening a relative filename from "Edit DB Cell" or Table Browser the
relative paths are interpreted from the DB file location. This allows
portability of DB and linked files to a new location.
Refactoring so the open URL code is centralised in MainWindow and a status
message is displayed with error or opening notification.
See issue #1597
The "Import file" in the Edit Dialog dock is converted to a menu (after
long click) with a new action for selecting a file to be imported as a
reference in the cell. Then this filename reference can be used to open
the file using the default application with the present "Open in
Application" action. (In Linux, paths containing non-US-ASCII are known
not to work. This seems a bug in Qt QUrl class).
New icon composed from our document-open.png and link.png from Silk icon
set.
Related issue #1597
A new button is added in the "Edit DB Cell" dock for interpreting the
current value as a URL or filename and opening it using the default
application for the file or a web browser for the URL.
The same can be directly invoked in the table browser using the same
shortcut as the FK navigation.
Related issue #1597
A new option is added to the contextual menu of row header to auto-adjust
the row heights to fit the contents.
When no setting is loaded for a table, the new default for column width
will take into account the contents.
This is related to #2006
Before setting any cell value to NULL, the existence of a NOT NULL
constraint is checked in the selected columns of the current table. This
avoid raising several warning messages when the DB rejects the individual
values.
See issue #2021.
Speed up the new REGEXP implementation based on QRegularExpression for
SQL queries by adding a cache for compiled regular expression objects.
See issue #2052.
This gives us some more space in the tab bar and should reduce the risk
of accidentally closing a tab. It looks prettier too. We could add an
option for this in the Preferences dialog but in order to not add too
many rarely used options, let's try it without an option first.
See issue #1968.
In this way the entire column has the same alignment and gives a hint of
the column datatype. Note that if the DB has data incoherent with the
affinity, it will not be reflected in the text alignment.
See issue #2032
Replace the old QRegExp class by the newer QRegularExpression class in
the implementation of SQLite's REGEXP operator. This should fix some
problems with greediness and similar options.
See issue #2040.
This adds a replace bar to the already existing find bar in the Browse
Data tab. It allows the user to replace the matching text in a cell by
some other text.
See issue #1608.
Although a project cannot be saved without an associated DB file, we allow
to keep the project open when the current DB file is closed. The only
action that closes the project is opening another project or closing the
application.
The window title must reflect the three situations:
- Nothing is open
- DB file is open
- Project is open with a DB file or not
See discussion in issue #2027
When handling the Ctrl+Space and Shift+Space keyboard shortcuts in
ExtenededTableWidget, make sure to not do anything if there is 1) no
table selection, or 2) if the table widget has no focus.
See issue #2038.