Commit Graph

1216 Commits

Author SHA1 Message Date
GeorgijK
9d7efcacfa Fixed bug issue #390 ("crash then correct table").
Some functions renamed for better readability.

See pull request #401.
2015-10-14 22:22:07 +02:00
Justin Clift
8b4eeb3cfa Merge pull request #425 from PeterDaveHello/zh_TW_l10n
Traditional Chinese (zh_TW) l10n
2015-10-09 22:38:39 +01:00
Peter Dave Hello
9280511f84 Traditional Chinese (zh_TW) l10n 2015-10-07 18:07:58 +08:00
Martin Kleusberg
1ea45a54d6 Allow escaping of filter wildcard characters
See issue #421.
2015-10-05 19:57:44 +02:00
Martin Kleusberg
afb14a6f27 Fix Qt4 build 2015-09-15 11:07:23 +02:00
Martin Kleusberg
c78c466598 Add option for changing encoding for all tables in Browse Data tab
Add a new menu option to the Browse Data tab for changing the encoding
of all tables instead of just the one table.

Also check if the encoding the user typed in exists before trying to use
it to prevent a crash when an invalid encoding is used.

See issue #414.
2015-09-15 10:58:37 +02:00
Martin Kleusberg
eaf6ff1565 Support text in different encoding in Browse Data tab
When browsing and editing a table in the Browse Data tab allow the user
to change the assumed encoding of the text in the table. We'll then try
to convert from this encoding to Unicode for display purposes and to
convert from Unicode to this encoding for editing purposes. This way the
UI and all tools will keep using Unicode while the database format is
still respected. I hope the amount conversions generated this way won't
affect the performance too much.

See issue #414.
2015-09-15 00:14:55 +02:00
Martin Kleusberg
1ebecbbc9d Add option for showing the rowid column
See issue #408.

This isn't working reliably yet on my system: If you enable the fix
restoring the previous settings when going back to a table doesn't work
and if you disable it that very way is the only way to change the
option. Don't know what's going on there :(
2015-09-11 13:30:24 +02:00
Justin Clift
b22a9cfcf6 Removed OSX 10.6 from "known to work" version list 2015-09-01 22:13:52 +01:00
Martin Kleusberg
90bb4891b9 Support read only opening of database files
When opening a read only database file show a 'Read only' note in the
status bar of the main window and disable all editing buttons in the UI.

See issue #402.
2015-08-25 19:28:40 +02:00
Martin Kleusberg
a8c52eba12 Make Data Browser font and font size configurable
See issue #383.

Also delete the custom styling sheets for the Data Browser tab in the
Preferences Dialog - no need to have these group boxes look differently
from all the others.
2015-08-23 18:19:19 +02:00
Martin Kleusberg
e833e49130 EditDialog: Fix window positioning
The old code somehow stopped working for me...
2015-08-23 18:19:19 +02:00
Justin Clift
5d652db147 Merge pull request #405 from logocomune/master
Added  pointer to the Fedora repository
2015-08-22 20:06:07 +01:00
Alessandro Lucaferro
f9461916c8 Added pointer to the Fedora repository
Repository for fedora 21 (i386 and x86_64), 22 (i386 and x86_64), 23 (i386 and x86_64) and rawhide (i386 and x86_64)
2015-08-22 20:44:26 +02:00
Martin Kleusberg
1788678732 EditDialog: Set position to center of parent dialog when opening dialog
See issues #342 and #394.
2015-08-18 23:12:48 +02:00
Martin Kleusberg
dce47b3404 grammar: Correctly parse double quotes as a means of escaping
This should parse the table and column names correctly by removing any
double quote characters and replacing them by a single one.

See issue #387.
2015-08-18 22:54:16 +02:00
Martin Kleusberg
631979c330 Improve escpaing support
When generating SQL statements properly escape all identifiers, even
those containing backticks which apparently are allowed inside
identifiers in SQLite.

See issue #387.
2015-08-17 00:17:48 +02:00
Martin Kleusberg
160bc87d3c grammar: Support escaping backticks using double backticks
This adds support for escaping backticks inside an identifier using
backticks as quote characters by adding a second backtick following the
first one (e.g. `test``test`  => 'test`test').
2015-08-17 00:16:03 +02:00
Martin Kleusberg
282c439228 Try to fix a compiler warning on MacOS X
See issue #386.
2015-08-06 15:14:43 +02:00
Martin Kleusberg
8e4371c1d9 MainWindow: Add extra shortcut for Browse Data refresh button
See issue #388.
2015-08-06 15:01:49 +02:00
Martin Kleusberg
ce40d555f1 Fix error message when renaming/moving/modifying column
When modifying a column e.g. renaming it there was a case where an error
message would be shown because of invalid SAVEPOINT handling. Try to fix
this issue by not creating a SAVEPOINT for creating a SAVEPOINT.

This should fix issue #390.
2015-08-06 14:37:12 +02:00
Martin Kleusberg
397ae1b7b9 Merge pull request #391 from sebastian-philipp/master
add UTF16 and UTF16CI collation
2015-08-03 21:40:37 +02:00
Sebastian Philipp
6388ac81ba add UTF16 and UTF16CI collation
UTF16 = Case sensitive compare
UTF16CI = Case insensitive compare

comparison is performed by QString functions
2015-07-28 10:51:16 +02:00
Justin Clift
a9670fb6ca Merge pull request #384 from jehoffmann/master
Fix sqlcipher and OSX 10.10 build.
2015-07-16 23:00:27 +01:00
Martin Kleusberg
82292c221b Add 'x rows affected' part to the Execute Query results
See issue #114.
2015-07-16 20:02:49 +02:00
Jens Hoffmann
3f4ba5982f Fix sqlcipher and OSX 10.10 build.
Building under Mac OS X 10.10 was broken using latest QT SDK. Add
missing macextras and fix INCLUDEPATH for mac.
2015-07-15 00:57:59 +02:00
Martin Kleusberg
86fb1758de Optimise success message in Execute SQL tab
Change the success message for SELECT statement so that the amount of
time taken comes before the SQL statement itself because the time is a
new information whereas the statement is just a repitition for the user.

See issue #381.
2015-07-09 10:57:04 +02:00
Martin Kleusberg
41b337c533 Put error pane under result view when horizontal tiling is enabled
See issue #380.
2015-07-09 10:53:38 +02:00
Martin Kleusberg
c235379523 Add option for horizontal tiling between code editor and result view
Add a new option to the Preferences Dialog which activates horizontal
tiling between the SQL code editor and the result view in the Execute
SQL tab, i.e. the two widgets are shown side by side instead of one over
the other.

See issue #380.
2015-07-08 21:48:14 +02:00
Martin Kleusberg
6806a9b312 Fix splitter between code editor and result view in Execute SQL tab
There was a supposed to be a splitter between the SQL code editor widget
and the result table view widget in the SQL execution areas in the
Execute SQL tab. A splitter like this allows resizing the widgets around
it. Apparently this was broken some time ago (probably by me) and is
fixed by this commit.

See #380 which is partially fixed by this.
2015-07-08 21:35:18 +02:00
Martin Kleusberg
16f037a0ed Remove deleted files from recently opened files list
See #379.
2015-07-08 21:29:12 +02:00
Martin Kleusberg
743bdf9941 Fix a few warnings 2015-07-06 22:48:18 +02:00
Martin Kleusberg
90f651d548 displayformats: Semi-fix filters
Fix the filters. For columns with a display format set they always
perform string comparisons but this is probably just something you have
to live with...
2015-07-06 20:48:33 +02:00
Martin Kleusberg
22e858d1f4 displayformats: Support more formats 2015-07-06 19:16:18 +02:00
Martin Kleusberg
0ca3319cb2 Fix Qt4 build 2015-07-06 19:02:33 +02:00
Martin Kleusberg
7c1d237d9b Support alternative display formats in the Browse Data tab
This is a proof-of-concept or even a basic first implementation of a new
feature I'd like to have in DB4S which at the moment I call display
formats.

The idea here is to allow the user to change the data in the Browse Data
tab on a per column basis before displaying it. This means even though
the data is stored in format X in the database it can be shown in format
Y in the browser. This should be useful in cases where the original
format X is hard to read or just not useful in a particular case.

This first implementation allows the user to right click on the header
of a column and open a new dialog for setting the display format which
offers a (limited) list of pre-defined formats. The selected format is
then integrated into the SELECT statement which is sent to SQLite.

While it works, this draft implementation lacks a number of features.
Here are the most prominent ones I'm currently aware of:
* Data not editable (or only via the Edit Dialog) because it isn't
  transformed back yet.
* More display formats needed; maybe customizable ones, too.
* No indication in the UI for which columns a format has been set.
* Could _maybe_ be integrated into the import/export etc. for optional
  use.
2015-07-06 18:28:30 +02:00
Martin Kleusberg
944e22a80d Add clear button to filter line edit widgets
When entering some filter value show a clear button in that line edit
widget which when clicked clears the filter value.
2015-07-06 13:52:35 +02:00
Martin Kleusberg
748f06df93 Save filter settings and sort order for each table
When changing the table in the Browse Data tab we used to remember the
column widths for that particular table. When changing the tab and then
coming back or when pressing the refresh button we used to save the
filters (but not for a table change). The sort order wasn't remembered
at all. I think this behaviour doesn't make any sense.

With this patch we remember column widths, sort order and filter values
for each table individually and restore it when the user switches back to
the table. All the settings are handled the same way and as much
information as possible is stored. It gets also saved in our project
file format.
2015-07-04 23:12:30 +02:00
Martin Kleusberg
1696ad19fc Remove all the "no error" error messages
They are kind of pointless because, really, they never should be visible
to the user. If there is no error we shouldn't show an error message and
if there is an error we should show a proper error message.

Especially during bunch executions of SQL statements by calling
DBBrowserDB::executeSQL() (like when importing a huge CSV file) this
avoids a whole bunch of string copy operations and calls to tr() and
should therefore increase the performance a bit, too.
2015-07-04 22:13:31 +02:00
Martin Kleusberg
a598e0d36c Fix sqlb::Table::fieldList()
This suddenly failed on my system and broke the CSV import. Maybe
because of some new version of some software? Either way, the new
version should work anywhere.
2015-07-04 18:57:50 +02:00
Martin Kleusberg
b08cead7c8 csvimport: Set filename as default table name
See issue #376.
2015-07-03 21:42:46 +02:00
Oleg Polivets
42583a3a7d Merge pull request #377 from schdub/browser.colors
enhancement: advanced data browser colors preferences
2015-07-02 01:23:45 +03:00
schdub
b2e8dc3500 enhancement: advanced data browser colors preferences 2015-07-01 20:20:14 +03:00
Justin Clift
334334512c Merge pull request #365 from SevenLines/sevenlines
fix: UTF-8 characters (when out of comments or quotes) are drawn with different font
2015-07-01 18:12:19 +02:00
Justin Clift
25d3db8c39 Merge pull request #372 from amoghe/patch-2
Update BUILDING.md
2015-07-01 01:00:12 +02:00
Akshay Moghe
d3bcbc0280 Update BUILDING.md
Add backtick formatting to highlight required packages and file names.
2015-06-30 13:41:29 -07:00
Geoff Lawrence
6af05770f6 Merge pull request #370 from schdub/issue369
fix: error adding new record into table with all fields has defaults
2015-06-27 07:52:10 +01:00
schdub
45b5438d27 fix: error adding new record into table with all fields has default values 2015-06-26 23:55:37 +03:00
Oleg Polivets
da6b8734ab Merge pull request #368 from schdub/issue366
fix: PRAGMA user_version is not displayed correctly
2015-06-23 18:43:09 +03:00
schdub
7527df22ff fix: PRAGMA user_version is not displayed correctly if it is higher than 10000 2015-06-23 18:10:28 +03:00