Commit Graph

2370 Commits

Author SHA1 Message Date
Justin Clift
9174abea4d Merge pull request #1443 from hasufell/PR/configurable-install-paths
Make install paths configurable
2018-07-03 23:36:59 +01:00
Manuel
719416e7e7 Merge pull request #1436 from sqlitebrowser/identifier_quotes
Preference for quoting identifier mechanism (issues #683 and #1280)
2018-06-30 18:15:29 +02:00
mgrojo
a45a7a39c1 Issue #1450: resize Name column in DB Schema tab to contents
Resize also the Name column in the Dock since it has usually short content
and there is little space there, so it's better to resize it after every
schema population.
2018-06-30 18:06:35 +02:00
mgrojo
588363b7f6 Get the encoding name from a combo box in the "Set encoding" dialog
User can enter the encoding name with completion or select it from the
list using the mouse. This will help users to discover available codecs
and to find a suitable one in an easier way. This should help with encoding
issues like #1453.
2018-06-29 22:37:25 +02:00
mgrojo
98f4b88fd6 Issue #1450: adjust SQL Schema column in DB Schema dock to content
The SQL Schema column in DB Schema dock is set to resize automatically
to adjust to the content, like it is already done for the same column in
the Database Structure tab.
2018-06-25 20:52:30 +02:00
mgrojo
e11b32ed54 Issue #1432: Popup menu in "Open Database"
A popup menu has been added in the "Open Database" button. A normal click
selects the "Open Database..." action as before. A delayed click opens the
popup menu for selecting either the "Open Database..." action or the
"Open Database Read Only..." action.
2018-06-24 20:43:17 +02:00
mgrojo
58a6dba100 Pref: "SQL editor font" and its size on the same row and other improvements
"SQL editor font" and "SQL editor font size" are located at the same row
for saving vertical space in the Preferences dialog.

Accelerator keys for "Wrap lines" and "Quotes for identifiers" have been
added.

Some buddies have been fixed.
2018-06-23 19:04:27 +02:00
mgrojo
2803e163e0 New tests for the new standard quoting and for the other quoting styles
Modified some tests for taking into account the new standard quoting and
added some more for testing the quoting configuration and for correct
parsing of different quoting styles.

Default branch in escapeIdentifier() for trying to avoid warning.
2018-06-23 17:57:18 +02:00
Julian Ospald
873d705e03 Make install paths configurable 2018-06-22 13:50:56 +02:00
mgrojo
01f0146bbe Reset SQL results table when the query has not returned data
When we know that the just executed query has not returned data, reset the
table results model, so the results view is also reset.

Added QAbstractItemModel::beginResetModel() and
QAbstractItemModel::endResetModel() to the model's reset method. This
resets completely the table view.

This improves the situation for #1431, without addressing the underlying
problem of not detecting correctly the type of query. In any case, any
query not returning data should reset the results from previous queries.
2018-06-21 11:52:46 +02:00
Martin Kleusberg
9e0e3309df Move font size settings into the same row in settings dialog 2018-06-21 11:11:47 +02:00
mgrojo
614068a57a Improve messages in incorrect editor modes for better feedback
The messages in the invalid modes for the current data type in "Edit
Database Cell" are improved for giving hint to the user about the correct
modes.

For this commit and 885f4f7847 see issue
#1438
2018-06-21 00:24:34 +02:00
mgrojo
885f4f7847 Export dialog in Edit Database Cell uses data type for extension filter
The extension filter is adjusted to the type of data loaded in the editor.
Previously, only image extensions were adjusted, remaining were treated
as text. Now the following are used: *.bin, *.txt, *.json and *.svg.

For coherence, the *.bin filter is added to the import dialog.
2018-06-20 23:50:34 +02:00
mgrojo
da8057c964 Revert to grave accents as default quoting
The former quoting is expected by the tests, so the former behaviour is
restored as default, until a decision about the best default value is made.
2018-06-18 19:40:53 +02:00
mgrojo
265b077a5f Revert to grave accents as default quoting
The former quoting is expected by the tests, so the former behaviour is
restored as default, until a decision about the best default value is made.
2018-06-18 19:03:35 +02:00
mgrojo
5c7238d3d0 Preference for quoting identifier mechanism
A new option is added to the SQL tab in Preferences for choosing which
quoting characters must be used by the application when it inserts an
identifier in SQL code. The three options supported by SQLite are
available.

Default quoting characters have been changed from `Grave accents` to
"Double quotes" (SQL standard).

This options also affect the highlighting of double quoted strings: when
the SQL standard is selected, double quoted expressions are highlighted as
identifiers, otherwise as literal strings.
2018-06-18 17:49:12 +02:00
Martin Kleusberg
48d3cc6c7e Fix buddy in cipher dialog
Fixes a minor oversight in 9c2cec628b.
2018-06-08 23:51:14 +02:00
Martin Kleusberg
28b8652ad6 Improve loading of all data
The multithreading patch didn't properly load all data into the cache
when this was necessary. It would only do so if the chunk size was
sufficiently high. This is fixed in this commit.

Show a progress dialog while loading all data which can be cancelled by
the user.

When cancelling the loading of all data in those cases which require all
data to be loaded, stop whatever process needs the data too.
2018-06-08 22:46:47 +02:00
Martin Kleusberg
115d1f185a Tweak enabling/disabling of insert and delete record buttons
Improve the enabling and disabling code for the insert and delete record
buttons in the Browse Data tab. With this the buttons should be enabled
if and only if they can actually be used. The commit also makes the code
easier to read because the final state of the buttons don't depend on
the call order of the involved functions anymore. Instead there is only
one function now which enables and disables them.

This also fixes one TODO in the multithreading patch.
2018-06-08 22:46:47 +02:00
Martin Kleusberg
3da520cdd1 Clean up multi threading patch, fix build and some bugs
Make strings translatable, remove some more debug code, fix tests,
reduce size of patch slightly, remove weird tooltip, don't crash when
closing database, simplify code, fix filters, don't link agains pthread
on Windows.
2018-06-08 22:46:47 +02:00
Martin Kleusberg
51dbe72e23 Multi-threading patch
This was done by Michael Krause.
https://lists.sqlitebrowser.org/pipermail/db4s-dev/2018-February/000305.html

In this commit I only fixed two compiler warnings, some whitespace
issues and removed some debug messages.
2018-06-08 22:46:47 +02:00
Iulian Onofrei
9c2cec628b Make sure only powers of two are entered for the page size (#1405)
* Make sure only powers of two are entered for the page size

* Replace QSpinBox with QComboBox

Having a QSpinBox didn't make too much sense when we only have 8 valid
values. Forcing the user to type a valid value would have required a
warning message too, along with translations.

Having a QComboBox makes it clear (obviously) what values we are
expecting, without any risk of invalid values or confusion.

* Add thousands separator for page size values
2018-06-08 16:31:11 +02:00
Iulian Onofrei
c92a981164 Add Slack integration for Travis CI 2018-06-08 12:42:36 +03:00
Iulian Onofrei
dfc7df471c Fix YAML file syntax 2018-06-08 12:42:00 +03:00
Justin Clift
21a0cd7cf1 Add Patreon image to the buttons line 2018-06-08 09:23:27 +01:00
Iulian Onofrei
2165dd61a0 Remove tracking attributes from Gitter link 2018-06-07 21:31:34 +03:00
Iulian Onofrei
c07652e418 Add correct link for the Slack image's alt attribute 2018-06-07 20:21:53 +03:00
Justin Clift
6eeffc421d Merge pull request #1417 from sqlitebrowser/hotfix/slack-link
Add Slack invite link in the README file
2018-06-07 16:34:04 +01:00
Martin Kleusberg
f51b44d8d7 Add support for deleting rows in views which are unlocked for editing
If a view has been unlocked for editing by specifiying a pseudo primary
key, with this commit you can now delete records from the view if an
appropriate trigger exists.

See issue #141.
2018-06-07 16:08:08 +02:00
Iulian Onofrei
2b75b18426 Add Slack invite link in the README file 2018-06-07 16:43:18 +03:00
Martin Kleusberg
ea25618f22 Don't ask for PK again when chaging back to a editing-enabled view
When unlocking a view for editing by specifying a pseudo-PK, then
switching to another table, and then coming back to the original view,
you would be asked again for the pseudo-PK even though it was stored.
The same applies when loading a project file for this case. This is
fixed by this commit.
2018-06-07 14:44:30 +02:00
Martin Kleusberg
72506fb902 Fix table view after unlocking view editing 2018-06-07 14:38:25 +02:00
Justin Clift
6466aac5ea Use Base64 encoding for BLOBs in JSON export (#1413) 2018-06-07 13:39:58 +02:00
Justin Clift
4c368b305b Merge pull request #1414 from karim/msi-shortcuts
Make the application shortcuts configurable on Windows
2018-06-05 18:32:45 +01:00
Justin Clift
f8ff92c8e9 Use -sval when building .msi files
Otherwise our nightly build process throws errors.
2018-06-05 18:26:48 +01:00
Karim ElDeeb
0ee336670b Make the application shortcuts configurable on Windows 2018-06-05 17:09:05 +02:00
Justin Clift
7b3a50eb14 Merge pull request #1411 from karim/msi-desktop-shortcut
Add Desktop shortcut to Windows Installer
2018-06-04 12:19:04 +01:00
Karim ElDeeb
bb57d04489 Add Desktop shortcut to Windows Installer 2018-06-04 11:15:58 +02:00
Justin Clift
5719f0522a Merge pull request #1410 from karim/msi-welcome-dialog
Update the welcome dialog text for Windows Installer
2018-06-03 23:57:45 +01:00
Justin Clift
7c0a7daab9 Adjust welcome message for white space. 2018-06-03 23:55:28 +01:00
Karim ElDeeb
09c668a112 Update the welcome dialog text for Windows Installer 2018-06-03 22:51:50 +02:00
Justin Clift
5eee8cee3f Update winbuild.bat to create nightly MSI files as well 2018-06-03 03:35:34 +01:00
Justin Clift
5d6f60d816 Merge pull request #1403 from karim/msi-sqlcipher
Update Windows Installer to include SQLCipher
2018-06-03 03:16:29 +01:00
Karim ElDeeb
8fe09f152d Update Windows Installer to include SQLCipher 2018-06-02 23:13:51 +02:00
Justin Clift
0f207cebae Add the windows nightly build script 2018-06-02 18:36:04 +01:00
Karim ElDeeb
c8eddc43e0 Add support to create MSI installer for Windows build (#1400) 2018-06-02 18:32:17 +01:00
mgrojo
e50022c11e Export to CSV the currently browsed data as displayed
A new option is added to the Browse Data tab toolbar for exporting the data
of the browsed table as currently displayed (after filters, display formats
and order column) to a CSV file. This is done in coherence to the same
popup options in the SQL tab for execution results.

See issue #1402
2018-06-02 01:04:55 +02:00
Martin Kleusberg
39302f5b60 Also fix rowid column being shown when changing the sort order
Apply the same fix as in 189b750a00 for
the filters for the sort order.
2018-05-25 23:47:47 +02:00
Martin Kleusberg
3995ad2442 Add option to disable automatic type detection in CSV import
Because there are some circumstances under which the automatic type
detection can cause problems with the imported data and because it is
not accurate when the data changes a lot after the first couple of rows,
we need an option to disable it.

See issue #1382.
2018-05-25 22:11:43 +02:00
Martin Kleusberg
e851c161d6 Implement better default behaviour for CSV import
This changes the default behaviour for the CSV import to follow a set of
rules which hopefully makes most people happy.

It also add an "Advanced" section to the settings bits of the dialog to
modify this new default behaviour.

See issue #1395.
2018-05-25 21:06:16 +02:00