54 Commits

Author SHA1 Message Date
Nyall Dawson
7be2e7cc7b
Remove dead code from DB Manager plugin
This is all functionally dead code -- it is not called from anywhere
2025-02-26 11:54:56 +10:00
Denis Rouzaud
0f032e5f2d run pre-commit on all files 2024-11-29 15:38:02 +01:00
Nyall Dawson
b369f1e1b0 Port dbmanager away from compiled resources
These are not recommended, and removed in PyQt6
2024-02-28 11:23:47 +10:00
Nyall Dawson
310b9172fb pyqt5to6: raise warnings on fragile addAction calls
The object.addAction variants with multiple arguments have changed
signature in Qt 6. It's safer to explicitly create a QAction first
and then add to an object using:

    my_action=QAction(...)
    obj.addAction(my_action)

It's a considerably less fragile syntax to use in any case!

Fixes errors when trying to show context menu in Python console
on Qt 6 builds
2024-01-31 10:55:33 +10:00
Nyall Dawson
e42abf7dc5 Update python files 2024-01-22 05:46:15 +10:00
Nyall Dawson
c16a1e2b3d Update enums 2024-01-19 19:44:48 +10:00
Julien Cabieces
9d12ae8e6d [PyQt6] Add scope for enums and get rid of PyQt5.XXX import
this has been done automatically with the following comand line

./scripts/3to4/3to4.py --only-qgis3-compatible-changes ./python/plugins/
./scripts/3to4/3to4.py --only-qgis3-compatible-changes ./tests/src/python/
2024-01-10 21:15:27 +10:00
Etienne Trimaille
8f33d5ee70 Upgrade DBManager and Grass plugins to Python 3.X 2023-04-26 08:24:00 +10:00
Harrissou Sant-anna
d6b5b070d8 Remove unicode string notifier from python files 2022-12-11 08:58:21 +01:00
Nyall Dawson
b6a7a10703 Fix some more python formatting issues, remove more flake exceptions 2020-05-11 11:41:50 +10:00
Alexander Bruy
bba874cd42 prompt before closing SQL editor tabs with unsaved changes (fix #14636) 2020-05-06 12:49:18 +03:00
Nyall Dawson
ac651ee0d9 Followup 8d51a693, fix broken plugins 2019-03-27 07:20:43 +10:00
Denis Rouzaud
8d51a693a1 missing changes of QgsMapLayer::Type => QgsMapLayerType 2019-03-26 14:09:19 -05:00
Alessandro Pasotti
8639bcf853 [db-manager] Use QgsDataItem implementation for GPKG layer rename
- Removes code duplication
- Uses a tested and robust implementation (from OGR)
- Takes care of renaming QGIS styles
- Updates the information view in the plugin

Fixes #21227
2019-02-13 12:49:55 +01:00
nirvn
5b655b3548 [dbmanager] remove button text if toolbar is vertical 2018-07-02 12:51:44 +07:00
nirvn
48d897f91a [dbmanager] rename tree label to providers for clarity 2018-07-02 12:51:44 +07:00
nirvn
7e8ec00c9b [dbmanager] vectorize icons to fix toolbar in hidpi context 2018-07-02 12:51:44 +07:00
Harrissou Sant-anna
e2da696ab6 Make translatable some GUI texts
fix #17957
2018-05-01 16:09:22 +02:00
Salvatore Larosa
a34b46bc7b [dbmanager] fix toolbar icon size 2018-02-28 23:25:02 +01:00
Juergen E. Fischer
6dfedc38e9 translation string fixes and cleanups 2018-02-15 22:31:15 +01:00
Nyall Dawson
ea40f1e82a More capitalization homogenization 2018-02-13 19:49:15 +11:00
Nyall Dawson
6b4e734d95 [dbmanager] Fix inconsistent capitalization, HIG violations,
and unprofessional strings
2018-02-13 19:49:15 +11:00
Denis Rouzaud
3dc3d9d1b2 unite QgsMessageLog::Level and QgsMessageBar::MessageLevel in Qgis::MessageLevel
make enum items lower case
remove unused QgsMessageLog::None and All
2018-02-06 08:56:40 -04:00
Alessandro Pasotti
7a1b9f970b DBManager -> Browser synchronization
Reload/refresh the browser tree and source select connection
items when connections, tables etc. change in the DBManager

Note that this is uni-directional: changes in the browser tree
are not (yet) propagated to the DBManager
2017-09-15 17:08:11 +02:00
Mario Baranzini
78af413dcc Remove python future compatibility layer 2017-08-07 10:27:15 +02:00
Matthias Kuhn
973d3515d1
Avoid endless wait cursors 2017-07-30 21:51:22 +02:00
Etienne Trimaille
9c832adc51 disable export button if we try to export a raster layer (#4319) 2017-04-07 09:14:36 +10:00
Juergen E. Fischer
f00a87cb8a update translation strings 2017-03-05 10:21:24 +01:00
Juergen E. Fischer
a10c890383 More QgsSettings updates:
* revives WMS
* QgsSettings::clear() added
* section added to QgsSettings::contains()
* type parameter added to sip binding of QgsSettings.value()
* TODO: customization & evis
2017-03-04 02:37:59 +01:00
Juergen E. Fischer
31df84aa6b run 2to3 on source 2016-09-21 23:30:04 +02:00
rldhont
c1cdfe860d [DB Manager] Add the ability to update SQL Layer 2016-07-20 12:20:01 +02:00
Denis Rouzaud
8071acd064 move PyQt compat folder to python/qgis 2016-04-29 14:10:26 +02:00
Juergen E. Fischer
c55f8b73f0 db_manager: cleanups 2016-03-21 17:00:24 +01:00
Juergen E. Fischer
8bda5c00a5 db_manager: migrate to new style signals 2016-03-15 23:46:54 +01:00
Giuseppe Sucameli
eea81e81c5 [DBManager] remove layers from QgsMapLayerRegistry once refreshing a table, previewing a different layer or closing the DBManager main window (fix #12938) 2015-09-04 23:52:23 +02:00
Giuseppe Sucameli
80a13e3852 [DBManager] fix add new SL/GPKG connection from "New connection" context menu entry 2015-09-04 00:32:49 +02:00
Juergen E. Fischer
b39055b39c indentation update (now including autopep8) 2015-08-22 14:29:41 +02:00
Giuseppe Sucameli
4dc7eba107 DBManager: fix minor issues due to Query dialogs repleaced with Query tabs (ref commit 5fb52fa1edc)
In detail:
* hide close button from Info, Table and Preview tabs (it should work on Mac as well),
* always display dbtype icon into query tab
* show database name in tab text (otherwise we dunno which db the query is executed against)
* restore original tab text when query name becomes empty
2015-08-22 02:34:53 +02:00
Nathan Woodrow
5fb52fa1ed Remove query dialog. Replace with tabs 2015-08-17 18:10:59 +10:00
Nathan Woodrow
297a94fc58 Fix formatting of db manager python code 2015-03-21 20:35:29 +10:00
Juergen E. Fischer
956c155e8f fix python pep8 warnings and fix some revealed errors
pep8 --ignore=E111,E128,E201,E202,E203,E211,E221,E222,E225,E226,E227,E231,E241,E261,E265,E272,E302,E303,E501,E701 \
     --exclude="ui_*.py,debian/*,python/ext-libs/*" \
     .
2015-02-01 20:46:47 +01:00
Salvatore Larosa
a778e265a7 [dbmanager] followp 1646f67: fixes some string and changes more messageboxes 2014-09-26 07:18:19 +10:00
Salvatore Larosa
5fc78bfe59 [dbmanager] messagebox => messagebar 2014-09-26 07:18:19 +10:00
Denis Rouzaud
0ca7316371 DB Manager: remove text under icons 2014-01-15 13:54:35 +01:00
Juergen E. Fischer
f0c605e0fa dbmanager: add i18n 2013-06-09 18:51:47 +02:00
Giuseppe Sucameli
80b5a07e55 DBManager: updated to new SIP API 2013-06-04 07:20:54 +02:00
Juergen E. Fischer
9721736fd8 remove trailing blanks 2012-12-10 00:12:07 +01:00
Giuseppe Sucameli
c3c79b939e dbmanager: minor fixes 2012-12-05 20:06:04 +01:00
Giuseppe Sucameli
de3ea74ab6 dbmanager: allow to import layer from canvas (fix #6824),
add dialog to choose vector file to be imported (fix #6825),
allow to export table to vector file (fix #6826)

Thanks to Silvio Grosso for the sponsorship!
2012-12-05 03:51:02 +01:00
Giuseppe Sucameli
563cce9111 dbmanager: display info about missing modules on the info panel instead of on the status bar 2012-11-29 01:16:33 +01:00