Commit Graph

20 Commits

Author SHA1 Message Date
Martin Kleusberg
b384027378 Only allow selection of tables in Export SQL dialog
Only allow the user to select which tables to export in the Export SQL
dialog instead of tables and views. The selection of views wasn't
respected anyway, so the list including views is just confusing.
2018-05-16 18:01:19 +02:00
Martin Kleusberg
28baba8ec8 Fix icons in Export SQL dialog
Fix the type icons in the Export SQL dialog which weren't show before.
2018-05-16 17:49:12 +02:00
Martin Kleusberg
c25ce1399a Minor wording tweak 2018-05-16 15:32:12 +02:00
Martin Kleusberg
ccb1fd4ca8 Fix loading settings in Export SQL dialog
Due to a copy-paste error we weren't loading the values of the
checkboxes in the Export SQL dialog correctly.
2017-11-17 13:35:40 +01:00
Martin Kleusberg
1ca92cdde3 Use our Settings class everywhere
Don't use the QSettings class directly. This keeps the code more
consistent and makes it a bit easier to read. It also means that all
parts of the code profit from the settings cache that we have
implemented in the Settings class.
2017-10-30 13:37:34 +01:00
Martin Kleusberg
3bd2dc3bc1 Replace 'foreach' by range-based for loop from C++11 2017-10-30 13:10:08 +01:00
Martin Kleusberg
532fcd3f6b Add initial support for multiple database schemata
This adds initial basic support for handling different database schemata
at once to the backend code. This is still far from working properly but
shouldn't break much either - mostly because it's not really used yet in
the user interface code.
2017-09-03 13:22:21 +02:00
Martin Kleusberg
037b3c0113 Some improvements to the Export SQL dialog
When possible, don't write 'CREATE TABLE/VIEW/... `name`' but 'CREATE
TABLE/VIEW/... IF NOT EXISTS `name`' to the file.

Add an option to add DROP TABLE statements before each create statement.
This needs to be enhanced to apply to views, indices, and triggers as
well. See issue #629.

Clean up code.
2017-05-12 15:38:46 +02:00
Martin Kleusberg
38144bbcad Finish main part of the recent refactoring effort
This finally gets rid of the DBBrowserObject class entirely and moves
all its functionality to the newer classes in the sqlb namespace.

I'm still not entirely happy with this but at least things should be a
little more consistent now.
2017-01-23 20:59:12 +01:00
Martin Kleusberg
e43dbddbd3 Remove unnecessary includes
Hopefully this reduces the compile time a little bit.
2017-01-20 22:37:59 +01:00
Martin Kleusberg
85934dee77 Simplify code
This simplifies some of the super long iterator declarations by using
the auto keyword from C++11.
2016-10-18 20:07:48 +02:00
Martin Kleusberg
c8f020331a export: Allow exporting only the data in an SQL export
In the SQL Export dialog and process, allow the user to export the data
only, i.e. not the schema.

See issue #556.
2016-04-23 20:32:08 +02:00
James Wierzba
b095fd4f70 - Add Select-All and Deselect-All options to ExportSQL dialog menu 2016-03-30 09:56:57 -06:00
Martin Kleusberg
1a7aad0ff0 Make current filename a private class member 2016-01-27 23:08:48 +01:00
Martin Kleusberg
910c15ae25 Try suggesting file names when saving some files
When exporting tables, saving project files, etc. suggest default file
names where appropriate.

See issue #484.
2016-01-27 23:02:30 +01:00
Bernardo Sulzbach
abc432fcd6 Fixed a few typos. 2015-05-20 10:17:52 -03:00
Martin Kleusberg
861ecec527 Add option to remember last location for file dialogs
Add an option to remember the location of the last opened or saved file
and use it as the default location for the next file dialog because
always going back to the default location set in the preferences dialog
can be a real hastle.

See issues #224, #276 and #281.
2015-05-03 13:22:13 +02:00
schdub
c340bb4668 exportsql: allow export schema only 2015-04-17 15:39:38 +03:00
Justin Clift
8a9380ef41 Typo fix - "multiply" -> "multiple" 2015-04-12 22:53:20 +01:00
jsbot
073cf64a9d exportsql: issue #242 2015-04-11 23:54:05 +03:00