Commit Graph

2359 Commits

Author SHA1 Message Date
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
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
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
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
Martin Kleusberg
b647026051 Show warning when opening a project file with the old file format
Thanks to Iulian for idea!
2018-05-25 18:49:27 +02:00
Remi Rampin
17f1eabb65 Import CSV: Add option to insert missing values as NULL (#1349)
* Add a combo box for missing values in import ui

* Add ui pieces to .cpp file

* Insert NULL values if requested

* Allow inserting NULLs in new table also
2018-05-22 20:56:11 +02:00
Martin Kleusberg
189b750a00 Fix e6a4326e9b
Fix the fix for a Qt issue which messes up the table view when using the
filters. Without any fix, the rowid column is always shown when changing
the filters, but because the filter bar isn't regenerated the filters
are all displaced. With the first commit this is fixed, however changing
the filters always regenerated the filter bar which in turn deleted the
current filter value. With this commit this is fixed. The filters are
now working as expected.
2018-05-20 20:22:55 +02:00
Martin Kleusberg
a117c11064 Simplify qmake files 2018-05-20 15:58:24 +02:00
GortiZ
e7752d7398 KUbuntu 14.04 support restored (#1298)
* - [NEW] Add new interface and functionality to manage database file extension. (Implements feature request #659)

* - [FIX] Fixed CMake file to src.pro

* - Applied changes requested by mgrojo to uniform code with sqlitebrowser standards
- Add "history" when closing editor window, but reopen before closing preferences
- Revert some changes done by QtCreator

* Refuse from previous commit

* Additional changes requested by MKleusberg:
- [CHG] Always add "All files (*)" to filters
- [FIX] Removed unused include

* merged from master

* Merge sqlitebrowser master

* [FIX] Fixed compatibility to compile on KUbuntu 14.04 with Qt 5.2.1

* [FIX] Fix Qt version for QOpenGLWidget support on previous commit

* [CHG] Uniformed QT_VERSION_CHECK style
[CHG] Reverted macOS check on Mainwindow for OpenGL context creation
2018-05-20 15:56:01 +02:00
Karim ElDeeb
b69e7cd034 Add build version to the nightly builds (#1390)
Make the Windows nightly build versioning information meaningful. ;)
2018-05-20 13:54:24 +01:00
Martin Kleusberg
4ab2bee2ac When selecting an entire row and deleting it, remove the record
When selecting an entire row or multiple entire rows in the table view
and hitting the delete key, delete the records and not just the cell
contents.

See issue #1391.
2018-05-20 13:22:13 +02:00
Martin Kleusberg
abf70ea7bd Use nullptr instead of NULL 2018-05-16 19:20:36 +02:00
Karim ElDeeb
817de2d3f5 Update Report bug link to include the system information (#1388)
When reporting an issue from the application, via the menu 'Help | Bug report', the new link will add the label 'bug' and include the system information automatically.

See issue #1386
2018-05-16 19:01:13 +02:00
Martin Kleusberg
13d9f98aab Fix the text of the toolbar actions for deleting and modifying objects
When selecting an object other than a table the toolbar actions would
say "Modify/Delete Table" nonetheless. I don't remember it being this
way, so I suspect this was changed by updating to Qt 5. Either way, this
commit makes absolutely sure the texts are updated properly.
2018-05-16 18:39:51 +02:00
Martin Kleusberg
a5d36694db Simplify code 2018-05-16 18:26:48 +02:00