Commit Graph

2309 Commits

Author SHA1 Message Date
Martin Kleusberg
b6c05609dc Change order of statements in exported SQL file
When exporting a database to an SQL file we used to export it like this:
- Table 1 schema
- Table 1 data
- Table 2 schema
- Table 2 data
With this commit that is changed like this:
- Table 1 schema
- Table 2 schema
- Table 1 data
- Table 2 data

This makes the resulting SQL file more robust for import because it
avoids any foreign key errors as long as foreign keys are deferred.
2018-05-16 18:18:56 +02:00
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
431c67138b Improve error messages when importing SQL files
When executing multiple SQL statements at once, e.g. when importing an
SQL file (but not in the Execute SQL tab!), and hitting an error save
the error message before reverting the transaction. This preserves the
error message which is otherwise replaced by "not an error" because the
rollback doesn't fail.
2018-05-16 17:20:15 +02:00
Martin Kleusberg
aebfc5151e No need to commit when setting defer_foreign_keys pragma
Don't commit the current transaction when setting the defer_foreign_keys
pragma in the Execute SQL tab. Not only isn't it required by SQLite but
it's quite contrary to the point of a pragma the purpose of which is
to change the current transaction.
2018-05-16 16:18:03 +02:00
Martin Kleusberg
c25ce1399a Minor wording tweak 2018-05-16 15:32:12 +02:00
Martin Kleusberg
e6a4326e9b Fix filters
Fix a bug that causes the rowid column to be always shown when changing
the filters. I *believe* this was happening since updating to Qt 5.10.
2018-05-16 15:01:22 +02:00
Justin Clift
1865272aa8 Merge pull request #1387 from karim/master
Add VERSIONINFO for Windows executable
2018-05-12 14:09:50 +01:00
Karim ElDeeb
f79f2550fb Add VERSIONINFO for Windows executable 2018-05-12 14:06:18 +02:00
Karim ElDeeb
1e7e972f7b Merge pull request #1377 from karim/master
Cosmetic changes to issue templates
2018-05-08 03:54:05 +02:00
Karim ElDeeb
82307e0d46 Cosmetic changes to issue templates 2018-05-08 03:50:25 +02:00
Karim ElDeeb
c02cbdf28b Update issue templates to add Question template 2018-05-08 03:32:00 +02:00
Karim ElDeeb
676a457db4 Update issue templates to add Feature Request template 2018-05-08 00:13:47 +02:00
Justin Clift
26795cb909 Merge pull request #1376 from sqlitebrowser/karim-patch-1
Update issue templates
2018-05-07 22:14:09 +01:00
Karim ElDeeb
4c86acd101 Update issue templates
Upgrade our legacy issue template to the new and upgraded multiple issue template builder to be able to create multiple issue templates.
2018-05-07 22:04:24 +02:00
Justin Clift
6999a9be6c Merge pull request #1375 from karim/master
Update project links to HTTPS
2018-05-07 16:59:41 +01:00
Karim ElDeeb
86960a5952 Update project links to HTTPS 2018-05-07 17:42:29 +02:00
mgrojo
85dbe7b016 Setting for line wrap in Scintilla editors
A new setting is added to the 'SQL' tab of the Preferences dialog. It
enables the line wrapping in the editors with none/character/word/
whitespace boundaries.

See comments in issue #1173.
2018-03-28 22:26:07 +02:00
Justin Clift
a242a581c5 Merge pull request #1344 from Lin-Buo-Ren/patch-1
doc: BUILDING: Debian: Don't install the entire Git distribution just for cloning the repo
2018-03-13 10:37:54 +00:00
林博仁(Buo-Ren Lin)
30fe096b85 doc: BUILDING: Debian: Don't install the entire Git distribution just for cloning the repo
The download and disk usage difference is apparent and should be avoided when possible

```
$ apt show git-core git 2>/dev/null | grep '^Installed-Size'
Installed-Size: 8,192 B
Installed-Size: 24.1 MB
```

Signed-off-by: 林博仁 <Buo.Ren.Lin@gmail.com>
2018-03-13 16:45:56 +08:00
Justin Clift
3b21f55524 Merge pull request #1342 from cknoll/cknoll-1340
Adding Debian subsection in README.md (see #1340)
2018-03-12 19:30:44 +00:00
C. Knoll
9c409c85ad Adding Debian subsection in README.md (see #1340) 2018-03-12 20:02:36 +01:00
mgrojo
2c9cf75419 Tooltip and "What's This" text for 'Execute SQL' improved. README updated.
Document the behaviour of the 'Execute SQL' button so users can discover
the feature for executing the statements in the selection.

See related issue #1336

"SQL sentences" to "SQL statements", as that is the standard term.

Add plot feature to list of features in README file and DB4S abbreviation
2018-03-09 22:16:56 +01:00
mgrojo
b51cf69cbf Avoid removing multiple line breaks inside strings for simple cases
In order to avoid removing multiple line breaks inside strings, the
replacement is only done when removeCommentsFromQuery has performed some
substitution. Otherwise the query is left as is.

This will improve the problem described in issue #1334 for simple cases.
There will be still problems when the query has comments and multiple line
breaks inside strings.
2018-03-05 21:13:08 +01:00
mgrojo
211f7341ff New XML format for browse data table settings in project files
Browse data table settings are now saved in the project files using a pure
tagged XML format. This would make easier the generation of our project
files by external tools or direct human edition of the project files.

Compatibility with the older format is preserved in the loading. Previous
software versions have been tested with the new format, and they are also
able to load the new project files ignoring these new tags.

See related issue #1306
2018-03-03 20:06:49 +01:00
mgrojo
3277174cb1 Problems with WITHOUT ROWID tables
Quoted values in DELETE FROM and UPDATE SET take into account that value
could have a single quote and they are now doubled.

Detect tables without rowid in order to make invisible the "Show rowid
column"

See issue #1332
2018-02-28 23:18:49 +01:00
mgrojo
b1ba58fcc0 'Export -> Table(s) to JSON' takes into account the column type
Use SQLite3 and Qt APIs to export the table data using appropriate JSON
data types.

See issue #1323: JSON table export converts integer and null values to
string.
2018-02-26 21:52:16 +01:00
mgrojo
379bbb81a2 Support for dark themes in default settings and restore defaults button
All the colour configurations have been reviewed under an operating-system theme
dark theme.

Some hard-coded colours in QScintilla editors and Data Browser have been
replaced by queries of the system palette or reuse of our settings.

New settings for foreground and background colours for QScintilla editors
defaulting to system colours. This is mainly needed because if the user
saves colour settings for a dark theme and then he changes the system theme
back to a light theme, then the foreground colours are preserved while the
background would fall back to the system theme leading to an incompatible
combination. This also gives more freedom to the user in defining his own
colour combinations.

Since only the default colour settings adapt to the system theme, and once
settings are saved this can no longer happen, a 'Restore Defaults' button
is added so the default adapted colour settings can be restored. This is
also useful for restoring default behaviour when wanted.

Other fixes and improvements: waiting cursor while saving; check boxes in
SQL tab for bold, italic and underline when applicable; avoid translation
of hidden colour setting names used in code.

See related issue #1324.
2018-02-25 19:13:28 +01:00
mgrojo
65c670acc0 Do not escape single cell data in clipboard copy
For single cell without-headers copy it is better to not escape the text
since there isn't any gain in trying to escape quotes, end-of-lines or
tabs. Escaping should only be done for table like data for compatibility
to spreadsheets applications.

See issue #1244.
2018-02-14 23:19:53 +01:00
mgrojo
b8e96379a7 Set disabled palette for the cell text editor when read-only
In this way the user gets a hint about the text being read-only while still
being able to select text with keyboard and mouse.

See issue #1123
2018-02-03 16:14:30 +01:00
mgrojo
52ae85dd28 Added some "What's This" information
Added some texts to the "What's This" information of some buttons or other
widgets that lacked them. This will help the user to discover the provided
features.

Specifically, help is added for the filter fields and the remote dock.
See discussions in issues #1311 and #1312.
2018-02-02 21:27:58 +01:00
Justin Clift
e43ed17162 Include the Qt XML dll in our installation package 2018-01-30 20:34:57 +00:00
mgrojo
290461778d Fix qmake compilation for XML mode PR #1275
Also, some spaces have been replaced by tabs for uniformity.

See issue #1309
2018-01-30 21:01:44 +01:00
mgrojo
5dbb7ff645 Ensure the Escape key doesn't make Plot and Remote docks go away
Override reject() as done in other dock dialogs.

Fixes #1310
2018-01-30 20:33:15 +01:00
Manuel
c8276030ae Merge pull request #1275 from sqlitebrowser/xml_cell_edit
XML mode for the cell editor
2018-01-27 20:09:36 +01:00
mgrojo
7c9fe7039c Merge branch 'master' into xml_cell_edit
# Conflicts:
#	src/EditDialog.cpp
#	src/ExtendedScintilla.cpp
2018-01-27 19:01:08 +01:00
mgrojo
0c99f32ce7 Address comments in PR XML mode for the cell editor #1275
Set breaks in nested switch where missing.

Fix editModeChanged since it was overwriting the dataType for JSON and
SVG.

Additionally, removed unnecessary conversion in fromJson.
2018-01-27 18:30:24 +01:00
Justin Clift
b5af5653fc Tweak the CentOS 7 build instructions
They should now avoid giving a warning about a missing `qwt-qt5-devel` package.
2018-01-26 17:36:38 +00:00
Manuel
87e1c2708d Merge pull request #1302 from sqlitebrowser/bar_charts
Stackable bar charts, Axis Type column and legend in plot.
2018-01-26 18:29:42 +01:00
mgrojo
42bb1c0d65 Translatable strings and default case branch
This addresses review comments by @MKleusberg in PR #1302.
2018-01-26 18:13:20 +01:00
phydroxide
74f19d7bc8 Update BUILDING.md (#1307)
* Update BUILDING.md

Package list for Yum incomplete

* Update BUILDING.md

My first git clone or contribution ever so bear with me
2018-01-26 15:29:38 +01:00
Martin Kleusberg
1110b87d95 Fix structure view after changing settings
This is fixing a follow-up issue of
012ad9217a.

See issue #1288.
2018-01-26 14:44:13 +01:00
Justin Clift
2d95ad44f7 Merge pull request #1303 from ChangJoo-Park/ChangJoo-Park-patch-1
fix typo. database in Korean
2018-01-22 16:24:38 +00:00
ChangJoo Park(박창주)
8c85ff9157 fix typo. database in Korean
database is *데이터베이스*
2018-01-22 21:40:40 +09:00
mgrojo
c5ec23e92e Stacked or grouped bars and plot legend
Two new options added to the context menu of the plot:

- Stacked bars: switches between stacked bars or grouped bars. The former
overlapped layout is avoided since it doesn't make much sense.

- Show legend: toggles the display of a plot legend with a translucent
background. Possible future improvement is dragging the legend with the
mouse.
2018-01-21 17:00:45 +01:00
mgrojo
175407645b Simplify the axis type storing, translucent additional bars and What's This
Now that we have a proper type column in the plot selection widget, the
internal type storing can be simplified.

If the plot has more than one Y selections for one X of label type (bar
charts) the first bar is opaque, but the additional are translucent in
order to be seen, since they will overlap.

What's This information added to explain all the possible selections for
plotting.
2018-01-20 18:28:03 +01:00
mgrojo
aa680622c0 Bar charts and Axis Type column in Plot Dock
String type columns are now selectable as X axis. In that case a bar chart
is plotted where the column values are used as bar labels.

A new Axis Type column is added to the axis selection table, so the user
knows before-hand how the plot will be drawn.

Line type and point shape combo-boxes are not enabled for bar charts, since
they don't make sense.

Columns that make no sense for the Y axis as strings and date/times are not
selectable for that axis.
2018-01-20 18:08:31 +01:00
mgrojo
4b3780e22a Auto-completion for column names in the SQL editor
Isolated column names are added to the list of possible auto-completions,
so they can be completed without having to enter first the table followed
by dot. "Table.field" completion is still supported for completing only for
fields inside that context.

See issue #1242
2018-01-18 22:55:59 +01:00
mgrojo
7d1ddbd717 Preserve format in Copy Create Statement
The original Create statement formatting is preserved when the menu option
"Copy Create statement" is selected, regardless of the setting that removes
the line breaks in the schema view.

The Edit Role is requested to the model for getting the original text data.

See issue #1300
2018-01-18 20:59:02 +01:00
mgrojo
be66535c20 Revert "Merge branch 'master' of https://github.com/sqlitebrowser/sqlitebrowser"
This reverts commit e9385e6f8b, reversing
changes made to d1261146b3.
2018-01-18 20:54:11 +01:00