diff --git a/CenRa_FLUX/metadata.txt b/CenRa_FLUX/metadata.txt index d42c4ca..19f77ec 100644 --- a/CenRa_FLUX/metadata.txt +++ b/CenRa_FLUX/metadata.txt @@ -6,7 +6,7 @@ name=CenRa_FLUX qgisMinimumVersion=3.0 description=Permet d'ouvrire une table dans la base PostGis -version=2.3 +version=2.4 author=Conservatoire d'Espaces Naturels de Rhône-Alpes email=si_besoin@cen-rhonealpes.fr @@ -32,7 +32,7 @@ icon=icon.png # experimental flag experimental=False -changelog=

CenRA_FLUX:


05/02/2025 - Version 2.3:

- Bouton de visualisation des couches se trouvent uniquement dans le canva de la carte.


07/01/2025 - Version 2.2:

- ByPass du certif ssl ci erreur.


22/10/2024 - Version 2.1:

- Correctif de bug.
- Evolution de la limit de 3 à 5.


22/10/2024 - Version 2.0:

- Reformatage du code.


03/10/2024 - Version 1.14:

- Remonte la fênetre dans la pille.

13/09/2024 - Version 1.13:

- MAJ sur le lien du changelog
- Bug-fix: Ouvre MultiPolygone et Polygon séparément.


10/09/2024 - Version 1.11:

- Ouverture de table contenant plusieurs géométries.


26/08/2024 - Version 1.10:

- Ajoute d'un changelog et vérification de mise à jour.

+changelog=

CenRA_FLUX:


13/02/2025 - Version 2.4:

- Ajoute redimensionnement et déplacement mollette.


05/02/2025 - Version 2.3:

- Bouton de visualisation des couches se trouvent uniquement dans le canva de la carte.


07/01/2025 - Version 2.2:

- ByPass du certif ssl ci erreur.


22/10/2024 - Version 2.1:

- Correctif de bug.
- Evolution de la limit de 3 à 5.


22/10/2024 - Version 2.0:

- Reformatage du code.


03/10/2024 - Version 1.14:

- Remonte la fênetre dans la pille.

13/09/2024 - Version 1.13:

- MAJ sur le lien du changelog
- Bug-fix: Ouvre MultiPolygone et Polygon séparément.


10/09/2024 - Version 1.11:

- Ouverture de table contenant plusieurs géométries.


26/08/2024 - Version 1.10:

- Ajoute d'un changelog et vérification de mise à jour.

# deprecated flag (applies to the whole plugin, not just a single version) deprecated=False diff --git a/CenRa_FLUX/tools/ui/CenRa_Flux_base.ui b/CenRa_FLUX/tools/ui/CenRa_Flux_base.ui index 89c98c2..52bb6d7 100644 --- a/CenRa_FLUX/tools/ui/CenRa_Flux_base.ui +++ b/CenRa_FLUX/tools/ui/CenRa_Flux_base.ui @@ -9,257 +9,327 @@ 0 0 - 910 - 800 + 890 + 810 - 910 - 800 + 600 + 400 - 910 - 800 + 890 + 810 SIG CEN-RA - - - - 260 - 130 - 171 - 22 - + + false + + + + QLayout::SetMaximumSize - - false + + 0 - - + + 0 - - - - - 370 - 80 - 171 - 22 - + + 0 - - false + + 0 - - + + 0 - - - - - 345 - 10 - 221 - 71 - - - - - - - :/plugins/CenRa_FLUX/logo.jpg - - - true - - - - - - 370 - 750 - 171 - 23 - - - - Charger les couches - - - - - true - - - - 30 - 170 - 850 - 281 - - - - QAbstractItemView::SingleSelection - - - true - - - - - - 30 - 550 - 850 - 181 - - - - QAbstractItemView::SingleSelection - - - - - - 400 - 470 - 61 - 61 - - - - - - - - :/plugins/CenRa_FLUX/arrow-bottom.png:/plugins/CenRa_FLUX/arrow-bottom.png - - - - 50 - 40 - - - - - - - 460 - 470 - 61 - 61 - - - - - - - - :/plugins/CenRa_FLUX/arrow-up.png:/plugins/CenRa_FLUX/arrow-up.png - - - - 50 - 40 - - - - - - true - - - - 480 - 130 - 171 - 21 - - - - Recherche par mots-clés - - - Qt::AlignCenter - - - false - - - true - - - - - - 40 - 150 - 161 - 16 - - - - - Calibri - 10 - false - - - - Liste des flux disponibles : - - - - - - 30 - 530 - 171 - 16 - - - - - Calibri - 10 - false - - - - Flux sélectionné(s) à charger : - - - - - - 670 - 130 - 21 - 21 - - - - - - - label_3 - comboBox - comboBox_2 - pushButton_2 - tableWidget - tableWidget_2 - commandLinkButton - commandLinkButton_2 - lineEdit - label - label_2 - toolButton + + + + + 890 + 810 + + + + Qt::ImhNoEditMenu + + + QFrame::NoFrame + + + QFrame::Sunken + + + 0 + + + 0 + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + + + 0 + 0 + 890 + 810 + + + + + 890 + 810 + + + + + + 450 + 470 + 61 + 61 + + + + + + + + :/plugins/CenRa_FLUX/arrow-up.png:/plugins/CenRa_FLUX/arrow-up.png + + + + 50 + 40 + + + + + + + 360 + 750 + 171 + 23 + + + + Charger les couches + + + + + + 30 + 150 + 161 + 16 + + + + + Calibri + 10 + false + + + + Liste des flux disponibles : + + + + + + 20 + 550 + 851 + 181 + + + + QAbstractItemView::SingleSelection + + + + + + 250 + 130 + 171 + 22 + + + + false + + + + + + + + true + + + + 470 + 130 + 171 + 21 + + + + Recherche par mots-clés + + + Qt::AlignCenter + + + false + + + true + + + + + + 660 + 130 + 21 + 21 + + + + + + + + + true + + + + 20 + 170 + 850 + 281 + + + + + 0 + 0 + + + + QAbstractItemView::SingleSelection + + + true + + + + + + 20 + 530 + 171 + 16 + + + + + Calibri + 10 + false + + + + Flux sélectionné(s) à charger : + + + + + + 335 + 10 + 221 + 71 + + + + + + + :/plugins/CenRa_FLUX/logo.jpg + + + true + + + + + + 360 + 80 + 171 + 22 + + + + + 0 + 0 + + + + false + + + + + + + + + 390 + 470 + 61 + 61 + + + + + + + + :/plugins/CenRa_FLUX/arrow-bottom.png:/plugins/CenRa_FLUX/arrow-bottom.png + + + + 50 + 40 + + + + + + + diff --git a/CenRa_POSTGIS/postgis_rename.py b/CenRa_POSTGIS/postgis_rename.py index 0c03164..0180602 100644 --- a/CenRa_POSTGIS/postgis_rename.py +++ b/CenRa_POSTGIS/postgis_rename.py @@ -7,7 +7,7 @@ from builtins import str from builtins import object import qgis from qgis.PyQt.QtCore import QSettings -from qgis.PyQt.QtWidgets import QAction, QMenu, QDialog, QMessageBox +from qgis.PyQt.QtWidgets import QAction, QMenu, QDialog, QMessageBox,QDialogButtonBox from qgis.PyQt.QtGui import QIcon from PyQt5.QtCore import * from PyQt5.QtGui import * @@ -64,7 +64,8 @@ class Postgis_Rename(QDialog, EDITOR_CLASS): ### Outil Ajout de nouvelles couche a un dossier def raise_(self): self.activateWindow() - self.groupBox_2.hide() + self.groupBox_3.hide() + self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) GET_ALL_SCHEMA = """SELECT DISTINCT table_schema FROM information_schema.tables WHERE table_schema LIKE '_form_%' OR table_schema LIKE '_01_%' OR table_schema LIKE '_07_%' OR table_schema LIKE '_26_%' OR table_schema LIKE '_42_%' OR table_schema LIKE '_69_%' ORDER BY table_schema;""" cur.execute(GET_ALL_SCHEMA) AllSchema = cur.fetchall() @@ -83,7 +84,13 @@ class Postgis_Rename(QDialog, EDITOR_CLASS): def Test(self): if self.schema.currentText() != '': - self.loadValue() + allIsGood = 0 + + + if allIsGood == 2: + self.groupBox_3.show() + self.loadValue() + self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(True) else: self.old_name.setText('') diff --git a/plugins.xml b/plugins.xml index 0f69c8e..5531c6d 100644 --- a/plugins.xml +++ b/plugins.xml @@ -51,9 +51,9 @@ cenra,sicen - + - 2.3 + 2.4 3.16 https://plateformesig.cenra-outils.org/ CenRa_FLUX.zip @@ -62,7 +62,7 @@ https://gitea.cenra-outils.org/CEN-RA/Plugin_QGIS/releases/download/latest/CenRa_FLUX.zip CEN-Rhone-Alpes 2024-02-06 - 2025-02-05 + 2025-02-13 False False cenra,flux