Commit Graph

24 Commits

Author SHA1 Message Date
mgrojo
e436cb2516 Move query in results panel of Execute SQL to the bottom
This gives precedence to the results of the query. It also removes the
comment characters that only made sense in the SQL User log. The text is
splitted so the texts are only translated once. The output of a multi-query
execution is also improved, because the results and line are constant
while the query part is quickly changing.

After the execution of a multi-query text, the final text is not separated
by a blank line so the result message is visible in the second.

For users wanting more space in the editor and query table, the results
panel is now collapsible, since the SQL Log can be used instead.

See issues #1709 and #1670.
2019-02-23 21:22:12 +01:00
mgrojo
dfb7974d27 Reduce (and unify) margins in the main tabs and in Execute SQL widgets
The margins have been set to 3 for the layouts of all the main tabs. It has
been generally reduced from the default (9), except for the DB Structure
which was set to 0 and now has been increased to 3 for uniformity with the
other tabs.

The margins of interior widgets in Execute SQL tab has also been reduced to
3 from the default.

See issues #1762 and #620.
2019-02-23 17:08:54 +01:00
mgrojo
b4667b6bac Change the maximum size of the SQL results pane to a more flexible approach
Set a default equal to the previous maximum, but allow user to grow this
pane to any value, permitted by the other widgets.

See issue #1670
2018-12-18 22:53:56 +01:00
Oscar Cowdery Lack
14da8dcf98 Remove hardcoded styles from hyperlinks (#1286)
These hardcoded styles are unnecessary, as Qt will automatically
add styling to hyperlinks that matches the system theme.
2018-01-05 15:56:37 +01:00
mgrojo
24a573dc68 Minor icon changes
New icons in resources from our icon set: Silk from
famfamfam.com

Icon for close. Applied to the find bar (see issue #191).

New icon for special copy. Applied to the "Copy with
Headers" option.

Removed the execution permission from some icon files.
2017-11-19 14:59:55 +01:00
mgrojo
87e1b9bc7c Usability improvements for Extended Table Widget and SQL
results pane

Copy for multi-line text data surrounds the text with the
<pre> tag in the HTML version for avoiding line white-space
adjustments in the pasted text. See #1058

Do not use binary data in the "Use as Filter" option.

Indicate the existence of an error in the background of the
SQL results frame. The error-indicators is reused for
disabling this functionality.

When nothing is shown, a placeholder text hints the
objective of the results pane.

The preference label for the font size of this pane is
modified for consistency (SQL Log is another widget).
2017-11-19 00:57:42 +01:00
mgr
e242fc84ee Search bar improvements
New button and key sequence (ESC) to close the search bar.

Clear selection (by not avoiding the search) when the text to search is
deleted, as expected by @pamtbaau at #1220.
2017-11-17 22:56:15 +01:00
Martin Kleusberg
bbc1954f16 Fine-tune layout of the search bar
Remove the splitter between editor and find bar.
2017-11-11 19:31:33 +01:00
mgr
5b6cdf231e Execute SQL tab: Add search bar for SQL code #191
The find operations in QScintilla are used for implementing a find frame
in the SQL Editor of the main window. A checkable tool button is added
in the SQL Editor toolbar for showing and hiding this frame.

There are check boxes for Whole Words, Case Sensitive and Regular
Expressions. The QScintilla facilities in the findFirst method are used
for the implementation.
2017-11-11 19:31:33 +01:00
Martin Kleusberg
f60c059b87 Fix horizontal tiling in Execute SQL tab
See issue #380.
2017-10-13 10:40:31 +02:00
Martin Kleusberg
ce18198bbf Improve splitter in Execute SQL tab
Set a maximum height for the error area in the Execute SQL tab. This way
it doesn't occupy as much space by default.

Use two separate splitters instead of just one. This fixes the
horizontal tiling option.

See issue #380.
2017-10-11 19:06:54 +02:00
Martin Kleusberg
f28bb151b3 Regenerate some .ui files
This shouldn't change anything at all. It's just that Qt Designer keeps
insisting to do these changes and I have finally given in.
2017-09-10 15:06:20 +02:00
Martin Kleusberg
e9d4b3912a Move button for saving Execute SQL results to the toolbar
In the Execute SQL tab, move the button for saving the results of a
query as either a CSV file or a view from the bottom of the results view
to the toolbar at the top.

See issue #1122.
2017-09-10 15:00:31 +02:00
Martin Kleusberg
62bfeb03fa Make SQL status pane resizable in Execute SQL tab
See issue #906.
2016-12-19 18:34:04 +01:00
Chris Locke
fd7cd1e2de Tab order changes in dialogs (#676)
All dialogs have had their tab order verified to ensure controls flow
'correctly'.
2016-07-26 17:45:48 +01: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
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
cde2393539 Use QScintilla instead of own implementation of a code editor
This is a first rough implementation of QScintilla support as SQL text
editor.

It should work mostly and build fine with qmake as well as cmake. The
new code supports all the features of the old one plus adding a few
subtle improvements. The main point of this, however, is reducing the
code we have to maintain and making it easier to add new features to the
editor.
2015-04-23 19:51:54 +02:00
Peinthor Rene
0b2a61d213 better visualize the log from the execute sql tab 2014-04-19 22:20:04 +02:00
Peinthor Rene
f373340c0b activated() is old qt3 support signal use triggered() 2014-01-18 19:28:25 +01:00
Martin Kleusberg
7a81189d50 PreferencesDialog: New settings for font size of SQL editor and log
Add two new settings to allow changing the font size inside the SQL log
and the SQL editor.

Increase the default font size from 8 to 9 - better a bit too big on
some systems than too small on others.

Also do some restructuring in the MainWindow to avoid duplicate code to
reload settings.
2013-06-07 20:57:58 +02:00
Martin Kleusberg
606b5bd953 SqlExecutionArea: Show status messages in text edit instead of label 2013-05-17 14:35:20 +02:00
Martin Kleusberg
9536e7a095 SqlExecutionArea: Support exporting result to CSV file
Add a button which allows the user to save the query results to a CSV
file.

Add some basic preparations for saving the result as a view.
2013-05-06 18:44:58 +02:00
Martin Kleusberg
e548becda1 SqlExecutionArea: Use Qt Designer for layout design 2013-05-06 18:17:59 +02:00