23 Commits

Author SHA1 Message Date
Nyall Dawson
f6d740e9db Fix docs 2025-04-23 12:19:10 +10:00
Nyall Dawson
8c1cdcfad0 Rework QgsQueryResultWidget so that it uses a QgsPanelWidgetStack 2025-04-23 12:19:10 +10:00
Nyall Dawson
3f6b490218 Sipify 2025-04-02 11:11:10 +10:00
Nyall Dawson
090e9fb671 [feature] Saving/loading SQL queries from Execute SQL/Update SQL dialogs
This adds support for saving and loading SQL queries to a .sql text
file to the Execute SQL dialog and Update SQL dialogs.

Effectively, it ports this functionality from the DB Manager plugin
over to the core browser-based database connection facilities.

The UX has been designed to mimic the same functionality from
other standard parts of QGIS, eg the Processing Script Editor. Toolbar
actions are used accordingly, instead of the old text button approach
used in DB Manager.

Sponsored by City of Canning
2025-02-25 17:59:48 +10:00
Nyall Dawson
feb0dd789d Add a toolbar to Execute SQL dialog
Adds a toolbar to the Execute SQL window, with common actions
for cut/copy/paste/undo/redo/toggle find/clear

This matches the UI for the Execute SQL dialog to other similar
QGIS dialogs, eg the Processing script editor dialog
2025-02-25 17:59:48 +10:00
Denis Rouzaud
2562958772 sipify 2024-12-07 05:16:00 +10:00
Nyall Dawson
3a578d6712 Header update 2024-08-13 20:28:55 +10:00
Nyall Dawson
1e8c00354f Move QgsCodeEditorWidget to a new file 2024-05-08 11:56:35 +10:00
Nyall Dawson
7a0c9a39ed Allow a range of cells to be copied from SQL results window
Allows selection of a range of cells to copy to clipboard. Results
are copied as both plain text and html, so can be pasted easily
into spreadsheet apps/etc as tables
2023-04-18 14:13:44 +10:00
Alessandro Pasotti
276d1980f8 Address PR comments and add ENUM for widget mode 2021-07-22 10:18:13 +10:00
Alessandro Pasotti
387c403c2f First nail in the coffin of DB Manager
Replace DB Manager legend custom menu action with
C++ implementation for SQL layer
2021-07-22 10:18:13 +10:00
Alessandro Pasotti
f1a5014121 Catch SQL filter dialog connection errors (never seen in the wild) 2021-07-06 21:00:54 +02:00
Alessandro Pasotti
357fa9c4d8 Add progress bar and minor UX changes 2021-07-06 21:00:54 +02:00
Alessandro Pasotti
dfc5648204 Remove method and fix widget hiding 2021-07-06 20:58:36 +02:00
Alessandro Pasotti
27eb5743ad Provider QSCI APIs for sqlite and PG 2021-07-06 20:58:36 +02:00
Alessandro Pasotti
cf260226a3 Create SQL layer and widget config based on enum 2021-07-06 20:56:07 +02:00
Alessandro Pasotti
af44d35d74 Doxy 2021-07-06 20:53:59 +02:00
Alessandro Pasotti
4201942bdd Rebase 2021-07-06 20:53:59 +02:00
Alessandro Pasotti
1a94b07454 Better error handling/reporting 2021-07-06 20:53:59 +02:00
Alessandro Pasotti
9fc81ffb0f Move to thread the first phase of the query (before the iterator) 2021-07-06 20:53:59 +02:00
Alessandro Pasotti
b988ca87e2 SQL results widget: add query layers support (initial) 2021-07-06 20:53:59 +02:00
Alessandro Pasotti
cc709a0d02 Query result widget files and tests 2021-07-06 20:52:19 +02:00
Alessandro Pasotti
079264ebc4 Message bar and other improvements: working! 2021-07-06 20:52:19 +02:00