Commit Graph

1629 Commits

Author SHA1 Message Date
Vladislav Tronko c7942dabb8 Specify monospace font for SQL editor correctly
If Monospace is not available(which happens with Monospace on Windows),
Qt's font matching algorithm tries to find another matching font
2016-08-28 14:12:20 +03:00
Vladislav Tronko 6dd2e596be Revert "Set a default font in the SQL tab too"
This reverts commit 49786e1309.
2016-08-28 14:12:20 +03:00
Justin Clift 04947c3dc4 Improve the robustness of the Preferences dialog font selection 2016-08-27 22:58:24 +01:00
Justin Clift 49786e1309 Set a default font in the SQL tab too
Copied from Vlad's fix yesterday
2016-08-27 20:34:10 +01:00
Justin Clift 4f70f6a7a8 Fix an old typo in a comment 2016-08-27 19:00:54 +01:00
Justin Clift 0d32d91363 Enable the /SOLID compressor option for NSIS 2016-08-27 18:57:16 +01:00
Vladislav Tronko b15c7f20a5 Fixed default font obtaining 2016-08-27 00:24:48 +03:00
Martin Kleusberg 5775fc5f25 tests: Fix build errors 2016-08-26 17:09:43 +02:00
Martin Kleusberg 5fe2876479 Simplify code 2016-08-26 17:09:30 +02:00
Martin Kleusberg 9a7e042302 grammar: Consolidate constraint handling 2016-08-26 16:56:04 +02:00
Justin Clift 3e000fb38a Added Martin and Vlad to the "Travis go BOOM!" list :D 2016-08-26 14:42:15 +01:00
Martin Kleusberg e1ff34e286 grammar: Add support for multiple constraints on the same field(s)
Example:
CREATE TABLE `y` (
	`a` int,
	`b` int,
	CONSTRAINT `c1` UNIQUE(`a`,`b`),
	CONSTRAINT `c2` UNIQUE(`a`,`b`)
);
2016-08-26 14:31:33 +02:00
Martin Kleusberg 5e6900ef5a grammar: Support named unique constraints
Also restructure the unique constraint handling a bit to be more
parallel to the foreign key handling.

Note that this (intentionally) introduces a bit of unnecessary
code duplication which is to be eliminated in one of the next commits.
2016-08-26 14:28:40 +02:00
Martin Kleusberg ce75ccf035 grammar: Support named foreign keys 2016-08-26 14:16:07 +02:00
Martin Kleusberg a1e08b37c9 Rename ExportCsvDialog to ExportData dialog
Sorry for the big change but I think it's preferable to not call it CSV
dialog when it's not just doing CSV.
2016-08-25 23:12:36 +02:00
Vlad 3ef9491d64 Use references for safety (#747) 2016-08-25 23:02:40 +02:00
Vladislav Tronko 281cf5cb73 Close database only if it was opened 2016-08-25 13:46:24 +03:00
Vladislav Tronko 50a1231580 Remove magic numbers 2016-08-25 12:07:58 +03:00
Martin Kleusberg f91773b291 Add basic JSON export feature
This adds some basic functionality for exporting JSON files by extending
the CSV export dialog. There is still a bit of work required for
fine-tuning the JSON export feature though. But a standard export of a
table s working well already.

See issue #688.
2016-08-25 01:04:12 +02:00
Justin Clift 0ff6a44f61 Updated for 3.9.0 release 2016-08-24 21:46:27 +01:00
Justin Clift e21dc40256 Updated currentrelease to 3.9.0 2016-08-24 18:11:42 +01:00
Justin Clift 2dbd92257b Updated for 3.9.0 release 2016-08-24 18:03:48 +01:00
safaalfulaij d6784f8994 Update Arabic translation 2016-08-24 12:05:49 +01:00
lulol 4482c0f4f0 Updated spanish translation to match v3.9.x 2016-08-24 11:09:49 +01:00
Justin Clift 078c48d679 Delete [object] button's tooltip now changes with object type 2016-08-22 16:00:26 +01:00
Martin Kleusberg 64e07ad99e Show warning in Edit Table dialog when the grammar parser had trouble
The grammar parser returns a bool value to indicate if it encountered
some SQL feature that it doesn't understand yet. We might as well use
that bit of information and show it to the user.
2016-08-20 17:37:59 +02:00
Martin Kleusberg fe36ac0675 grammar: Mark named table constraints as unimplemented 2016-08-20 17:35:55 +02:00
Martin Kleusberg bb5b976ac3 grammar: Jump over column definitions after parsing them 2016-08-20 17:26:39 +02:00
Martin Kleusberg 89f7286220 tests: Stupid fix for Qt4 2016-08-20 14:22:11 +02:00
Justin Clift c4c9d39570 Remove an un-needed apostrophe from the Korean translation 2016-08-19 22:14:23 +01:00
Gihun Ham 87454325b0 Updated korean translation (#736) 2016-08-19 22:07:46 +01:00
Martin Kleusberg d98338ce89 Move all foreign key handling form the fields to the tables
Foreign keys used to be stored along with the column information even
though it's more or less a table constraint. However, as we only support
single column foreign keys it was easier to store it inside that single
column. Now with multi-column foreign keys coming, a mechanism has been
introduced to store those multi-column foreign keys in the table data.
This lead to two different storing places for foreign key information:
inside the field for one-column foreign keys and inside the table for
multi-column foreign keys. This commit deletes the foreign key storage
inside fields and changes all code to use the table storage.
2016-08-19 20:01:25 +02:00
Martin Kleusberg 57a41edbe0 Don't pretend to move columns when they aren't to be moved
This is purely a performance optimisation. It reduced the number of
calls to Table::setField() from three to two when the user only wants to
rename a field in EditTableDialog and not move it.
2016-08-19 19:53:10 +02:00
Justin Clift c0fe719bd5 Remove an un-needed apostrophe from further submitted translations 2016-08-19 17:32:17 +01:00
Justin Clift 48643430a5 Add SQLCipher FAQ option in the Help menu
This new Help menu option only displays for SQLCipher enabled
builds.  For non-SQLCipher ones, it's not shown.

Closes #734.
2016-08-19 16:16:29 +01:00
Vladislav Tronko fabb460abf Remove redundant virtual keywords 2016-08-19 14:39:50 +03:00
Vladislav Tronko 345a75118a Enable Apply button when changes are made in editor 2016-08-19 13:57:39 +03:00
Vladislav Tronko f4590da1d8 Slight changes on editing permissions 2016-08-19 13:22:58 +03:00
Martin Kleusberg 91615f940f Try fixing compilation with Qt4 2016-08-18 23:29:37 +02:00
Martin Kleusberg 6a4d58042c Parse foreign keys based on multiple columns
See issue #558.
2016-08-18 23:17:35 +02:00
Martin Kleusberg beff43acfc tests: Add test case for unique table constraints 2016-08-18 20:44:12 +02:00
Martin Kleusberg 225d3437e0 Add parsing support for UNIQUE table constraints
See issue #540.
2016-08-18 20:33:39 +02:00
FriedrichFroebel f1dbd2e8ac Update German translation (#733) 2016-08-18 11:27:14 +01:00
Justin Clift c5475de71c Merge pull request #727 from justinclift/update_french_translation
Updated French translation
2016-08-18 11:12:26 +01:00
Bernardo Sulzbach b0d6c7971c Should have a complete Brazilian Portuguese translation (#730) 2016-08-17 22:30:18 +01:00
Martin Kleusberg 4d29271954 Introduce enum for main window tabs 2016-08-16 23:54:54 +02:00
Martin Kleusberg 8b0decff6e Remove useless variable assignment
The variable never gets read afterwards.
2016-08-16 23:19:48 +02:00
Martin Kleusberg bbc14d61ba Don't set model for Browse Data view at startup
No nee to bother with this. It gets cleared again later during startup
anyway.
2016-08-16 22:54:16 +02:00
Martin Kleusberg 27f8b96edc Simplify code
The parameter for populateTable isn't needed anymore
2016-08-16 22:51:21 +02:00
Martin Kleusberg efd4fc4820 Bugfix
This fixes a bug in the foreign key handling in the Browse Data tab
which I introduced during my optimisations.
2016-08-16 22:46:28 +02:00