Commit Graph

1248 Commits

Author SHA1 Message Date
Martin Kleusberg
69e1c87f7a EditDialog: Update dock after inline editing of cell
When having set the edit dialog to work in dock mode but changing the
content of a cell using the inline editor of the grid view, update the
text in the editor of the docked dialog, too.

See issue #441.
2015-12-24 14:27:39 +01:00
Martin Kleusberg
e67e2ed1a6 Merge pull request #461 from MilosSubotic/master
Unquoting text pasted from clipboard in Browse Data table.
2015-12-24 13:55:17 +01:00
Martin Kleusberg
b04d52b99c EditTableDialog: Don't allow two columns with the same name
Don't allow the user to type in a field name that is already used in
the edited table. Show a warning and reset the name if he tries do so
anyway.

Also fix the warning for the foreign key check. Here a warning was shown
and the renaming cancelled but the field name wasn't reset to the old
value.
2015-12-24 13:48:35 +01:00
Martin Kleusberg
5af384f0a2 EditTableDialog: Don't suggest field name that already exists
See issue #460.
2015-12-24 13:42:18 +01:00
Martin Kleusberg
d7c035874a Fix bug when cancelling the database closing
See issue #432.
2015-12-24 13:30:12 +01:00
Milos Subotic
fb8814729a Unquoting text pasted from clipboard in Browse Data table. 2015-12-24 12:11:01 +01:00
Peinthor Rene
7ccae1a926 prepare release 3.8.0 2015-12-23 20:05:12 +01:00
Martin Kleusberg
300142a421 Merge pull request #453 from MilosSubotic/master
Paste and erase in Browse Data table
2015-12-23 14:04:16 +01:00
Milos Subotic
fe4302cb22 Paste in Browse Data table 2015-12-23 12:32:46 +01:00
Martin Kleusberg
4727b0bb92 Minor text fix 2015-12-22 22:56:19 +01:00
Martin Kleusberg
f0a9143b3b Change format of hex display format
See issue #373.
2015-12-22 22:51:07 +01:00
Martin Kleusberg
84cd516bdf Fix Show Rowid menu item
This took me way too long to fix but it feels good that it's working
now.

See issue #408.
2015-12-22 22:42:00 +01:00
Martin Kleusberg
00ee9b8da4 Actually fix tests
I'm stupid.
2015-12-22 19:10:31 +01:00
Martin Kleusberg
dd92f16012 Fix building of tests 2015-12-22 18:38:58 +01:00
Martin Kleusberg
0fed833e55 Move a connect in SqlTextEdit to avoid unnecessary slot calls
Move the connect for updating the line number area width from the reload
settings method to the constructor to make sure it's only called once.
Otherwise there would be more and more unnecessary connections made
whenever the settings are reloaded.
2015-12-22 18:19:55 +01:00
Martin Kleusberg
3376bd9353 Add option to execute arbitrary SQL when loading any database
This adds an option to execute arbitrary SQL statements whenever a
database is opened or created.

See issue #451 for a possible use case.
2015-12-22 17:49:51 +01:00
Martin Kleusberg
63c08d027d EditDialog: Reset values when pressing escape in dock mode
See #441.
2015-12-22 15:09:33 +01:00
Martin Kleusberg
540b12a57a EditDialog: Allow opening dialog/updating dock in read-only mode for views
See #441.
2015-12-21 11:22:43 +01:00
Martin Kleusberg
f84305ccbb Tidy up generated SQL statements when filtering 2015-12-21 01:44:39 +01:00
Martin Kleusberg
b9bef48b0e Fix bug in the filter bar
See the comment in the code for more details.
2015-12-21 01:38:24 +01:00
Martin Kleusberg
d923c5dfe7 Add keyboard shortcuts for recently opened files actions
See issue #432.
2015-12-21 01:08:40 +01:00
Martin Kleusberg
0e17990583 EditDialog: Better behaviour when pressing escape key in dock mode
See issue #441.
2015-12-20 12:15:13 +01:00
Martin Kleusberg
9582786237 Add dropping of URLs and text on the data browser view
See issue #441.
2015-12-19 19:02:38 +01:00
Martin Kleusberg
672b6f693b EditDialog: Make edit dock more keyboard friendly to use
See #440, #441.
2015-12-19 14:05:45 +01:00
Martin Kleusberg
f26df79961 Add edit cell dock to main window
Add a new option for replacing the edit data dialog by an edit data dock
widget which is added to the main window and remains visible. This might
be interesting for people who otherwise would have to open the edit
dialog many times by doing tons of double clicks.
2015-12-15 22:29:15 +01:00
Martin Kleusberg
e74645bb1f Browse Data: Add keyboard shortcuts for deleting value
Add keyboard shortcut for setting the values of the selected cells to
empty string (Delete key) or to NULL (Alt+Delete).

See issue #443.
2015-12-14 21:53:12 +01:00
Martin Kleusberg
258938a799 Don't create savepoint when releasing all savepoints
See issue #447.
2015-12-14 21:31:05 +01:00
Peinthor Rene
03497dd304 Merge pull request #444 from manisandro/signal_loop
Fix stack overflow due to signal infinite loop
2015-11-18 08:48:52 +01:00
Sandro Mani
29800310c7 Fix stack overflow due to signal infinite loop 2015-11-17 18:07:58 +01:00
Justin Clift
8bfd2852ae Added instructions for CentOS / Fedora 2015-10-22 14:52:05 +01:00
Martin Kleusberg
159605e2f8 Automatically add % wildcards to filter queries
Automatically add a % wildcard to the beginning and the end of a filter
query if the user hasn't typed in any wildcards by their own.

See issue #415.
2015-10-15 22:07:14 +02:00
Martin Kleusberg
71b7806f03 Delay applying a changed filter value
When changing a filter value delay the application of the new value on
the table for a couple of milliseconds. This makes the filter process
much smoother for fast typing users working on large tables.

See issue #415.
2015-10-15 11:42:59 +02:00
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