fix visuel pour les utilisateurs incompétent.
This commit is contained in:
parent
901d1b9441
commit
1aee5d90d7
@ -289,6 +289,8 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
|||||||
p = []
|
p = []
|
||||||
|
|
||||||
for row in range(0, self.tableWidget_2.rowCount()):
|
for row in range(0, self.tableWidget_2.rowCount()):
|
||||||
|
color_rgba = 855030089
|
||||||
|
if self.tableWidget_2.item(row, 0).background().color().rgba() != 855030089:
|
||||||
## supression de la partie de l'url après le point d'interrogation
|
## supression de la partie de l'url après le point d'interrogation
|
||||||
if dbtype == sigdb:
|
if dbtype == sigdb:
|
||||||
code = self.tableWidget_2.item(row,0).text()
|
code = self.tableWidget_2.item(row,0).text()
|
||||||
@ -338,7 +340,8 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
|||||||
layer = QgsVectorLayer(uri.uri(), table, "postgres")
|
layer = QgsVectorLayer(uri.uri(), table, "postgres")
|
||||||
# Ajout de la couche au canevas QGIS
|
# Ajout de la couche au canevas QGIS
|
||||||
QgsProject.instance().addMapLayer(layer)
|
QgsProject.instance().addMapLayer(layer)
|
||||||
|
else:
|
||||||
|
self.QMBquestion = QMessageBox.question(iface.mainWindow(), u"Attention !","La couche «" + str(self.tableWidget_2.item(row,1).text()) +' '+ str(self.tableWidget_2.item(row,2).text()) + "» ne ce trouve pas dans cette BD !",QMessageBox.Yes)
|
||||||
def combobox_custom(self):
|
def combobox_custom(self):
|
||||||
if dbtype == sigdb:
|
if dbtype == sigdb:
|
||||||
self.toolButton.setEnabled(1)
|
self.toolButton.setEnabled(1)
|
||||||
@ -402,6 +405,9 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
|||||||
row_count = 0
|
row_count = 0
|
||||||
self.tableWidget.setRowCount(0)
|
self.tableWidget.setRowCount(0)
|
||||||
for e in TableHaveGeom:
|
for e in TableHaveGeom:
|
||||||
|
cur.execute("""SELECT DISTINCT count(*) FROM pg_catalog.pg_tables WHERE schemaname LIKE '"""+e[0]+"""' AND tablename LIKE '"""+e[1]+"""';""")
|
||||||
|
TableSomme = cur.fetchall()[0][0]
|
||||||
|
|
||||||
if e[0][1:3] != 'fo':
|
if e[0][1:3] != 'fo':
|
||||||
DepName = QTableWidgetItem(e[0][1:3])
|
DepName = QTableWidgetItem(e[0][1:3])
|
||||||
SchemaName = QTableWidgetItem(e[0][4:])
|
SchemaName = QTableWidgetItem(e[0][4:])
|
||||||
@ -413,6 +419,10 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
|||||||
self.tableWidget.setItem(row_count,0,DepName)
|
self.tableWidget.setItem(row_count,0,DepName)
|
||||||
self.tableWidget.setItem(row_count,1,SchemaName)
|
self.tableWidget.setItem(row_count,1,SchemaName)
|
||||||
self.tableWidget.setItem(row_count,2,TableName)
|
self.tableWidget.setItem(row_count,2,TableName)
|
||||||
|
if TableSomme == 0:
|
||||||
|
for j in range(self.tableWidget.columnCount()):
|
||||||
|
self.tableWidget.item(row_count, j).setBackground(QtGui.QColor(246, 185, 73,50))
|
||||||
|
self.tableWidget.item(row_count,j).setToolTip('Couche dans une autre BD !')
|
||||||
row_count = row_count+1
|
row_count = row_count+1
|
||||||
if self.lineEdit.text() != 'Recherche par mots-clés':
|
if self.lineEdit.text() != 'Recherche par mots-clés':
|
||||||
self.filtre_dynamique(self.lineEdit.text())
|
self.filtre_dynamique(self.lineEdit.text())
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
name=CenRa_FLUX
|
name=CenRa_FLUX
|
||||||
qgisMinimumVersion=3.0
|
qgisMinimumVersion=3.0
|
||||||
description=Permet d'ouvrire une table dans la base PostGis
|
description=Permet d'ouvrire une table dans la base PostGis
|
||||||
version=2.4
|
version=2.5
|
||||||
author=Conservatoire d'Espaces Naturels de Rhône-Alpes
|
author=Conservatoire d'Espaces Naturels de Rhône-Alpes
|
||||||
email=si_besoin@cen-rhonealpes.fr
|
email=si_besoin@cen-rhonealpes.fr
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ icon=icon.png
|
|||||||
# experimental flag
|
# experimental flag
|
||||||
experimental=False
|
experimental=False
|
||||||
|
|
||||||
changelog=<h1>CenRA_FLUX:</h1></br><p><h3>13/02/2025 - Version 2.4: </h3> - Ajoute redimensionnement et déplacement mollette.</p></br><p><h3>05/02/2025 - Version 2.3: </h3> - Bouton de visualisation des couches se trouvent uniquement dans le canva de la carte.</p></br><p><h3>07/01/2025 - Version 2.2: </h3> - ByPass du certif ssl ci erreur.</p></br><p><h3>22/10/2024 - Version 2.1:</h3> - Correctif de bug.</br> - Evolution de la limit de 3 à 5. </br></p></br><p><h3>22/10/2024 - Version 2.0:</h3> - Reformatage du code.</br></p></br><p><h3>03/10/2024 - Version 1.14:</h3> - Remonte la fênetre dans la pille.</br></p><p><h3>13/09/2024 - Version 1.13:</h3>- MAJ sur le lien du changelog</br>- Bug-fix: Ouvre MultiPolygone et Polygon séparément.</p></br><p><h3>10/09/2024 - Version 1.11:</h3>- Ouverture de table contenant plusieurs géométries.</p></br><p><h3>26/08/2024 - Version 1.10:</h3>- Ajoute d'un changelog et vérification de mise à jour.</p>
|
changelog=<h1>CenRA_FLUX:</h1></br><p><h3>20/03/2025 - Version 2.5: </h3> - Visualisation distincte des couches ne se trouvant pas dans l'antenne.</p></br><p><h3>13/02/2025 - Version 2.4: </h3> - Ajoute redimensionnement et déplacement mollette.</p></br><p><h3>05/02/2025 - Version 2.3: </h3> - Bouton de visualisation des couches se trouvent uniquement dans le canva de la carte.</p></br><p><h3>07/01/2025 - Version 2.2: </h3> - ByPass du certif ssl ci erreur.</p></br><p><h3>22/10/2024 - Version 2.1:</h3> - Correctif de bug.</br> - Evolution de la limit de 3 à 5. </br></p></br><p><h3>22/10/2024 - Version 2.0:</h3> - Reformatage du code.</br></p></br><p><h3>03/10/2024 - Version 1.14:</h3> - Remonte la fênetre dans la pille.</br></p><p><h3>13/09/2024 - Version 1.13:</h3>- MAJ sur le lien du changelog</br>- Bug-fix: Ouvre MultiPolygone et Polygon séparément.</p></br><p><h3>10/09/2024 - Version 1.11:</h3>- Ouverture de table contenant plusieurs géométries.</p></br><p><h3>26/08/2024 - Version 1.10:</h3>- Ajoute d'un changelog et vérification de mise à jour.</p>
|
||||||
|
|
||||||
# deprecated flag (applies to the whole plugin, not just a single version)
|
# deprecated flag (applies to the whole plugin, not just a single version)
|
||||||
deprecated=False
|
deprecated=False
|
||||||
|
|||||||
@ -10,14 +10,14 @@ if IPAddr[0:11] == "100.100.100": #4269
|
|||||||
sigdb="sig4269"
|
sigdb="sig4269"
|
||||||
refdb="ref_geo4269"
|
refdb="ref_geo4269"
|
||||||
password = "McVities"
|
password = "McVities"
|
||||||
if IPAddr[0:9] == "192.168.0": #01
|
elif IPAddr[0:9] == "192.168.0": #01
|
||||||
host = "192.168.0.201"
|
host = "192.168.0.201"
|
||||||
port = "5432"
|
port = "5432"
|
||||||
dbname = "sig01"
|
dbname = "sig01"
|
||||||
sigdb="sig01"
|
sigdb="sig01"
|
||||||
refdb="ref_geo01"
|
refdb="ref_geo01"
|
||||||
password = "McVities"
|
password = "McVities"
|
||||||
if IPAddr[0:9] == "192.168.1": #0726
|
elif IPAddr[0:9] == "192.168.1": #0726
|
||||||
host = "192.168.1.201"
|
host = "192.168.1.201"
|
||||||
port = "5432"
|
port = "5432"
|
||||||
dbname = "sig0726"
|
dbname = "sig0726"
|
||||||
|
|||||||
@ -51,9 +51,9 @@
|
|||||||
<tags>cenra,sicen</tags>
|
<tags>cenra,sicen</tags>
|
||||||
</pyqgis_plugin>
|
</pyqgis_plugin>
|
||||||
|
|
||||||
<pyqgis_plugin name="CenRa_FLUX" version="2.4">
|
<pyqgis_plugin name="CenRa_FLUX" version="2.5">
|
||||||
<description><![CDATA[Dépôt pour les extensiont QGIS du CEN Rhone-Alpes, sur GitHub.]]></description>
|
<description><![CDATA[Dépôt pour les extensiont QGIS du CEN Rhone-Alpes, sur GitHub.]]></description>
|
||||||
<version>2.4</version>
|
<version>2.5</version>
|
||||||
<qgis_minimum_version>3.16</qgis_minimum_version>
|
<qgis_minimum_version>3.16</qgis_minimum_version>
|
||||||
<homepage>https://plateformesig.cenra-outils.org/</homepage>
|
<homepage>https://plateformesig.cenra-outils.org/</homepage>
|
||||||
<file_name>CenRa_FLUX.zip</file_name>
|
<file_name>CenRa_FLUX.zip</file_name>
|
||||||
@ -62,7 +62,7 @@
|
|||||||
<download_url>https://gitea.cenra-outils.org/CEN-RA/Plugin_QGIS/releases/download/latest/CenRa_FLUX.zip</download_url>
|
<download_url>https://gitea.cenra-outils.org/CEN-RA/Plugin_QGIS/releases/download/latest/CenRa_FLUX.zip</download_url>
|
||||||
<uploaded_by>CEN-Rhone-Alpes</uploaded_by>
|
<uploaded_by>CEN-Rhone-Alpes</uploaded_by>
|
||||||
<create_date>2024-02-06</create_date>
|
<create_date>2024-02-06</create_date>
|
||||||
<update_date>2025-02-13</update_date>
|
<update_date>2025-03-20</update_date>
|
||||||
<experimental>False</experimental>
|
<experimental>False</experimental>
|
||||||
<deprecated>False</deprecated>
|
<deprecated>False</deprecated>
|
||||||
<tags>cenra,flux</tags>
|
<tags>cenra,flux</tags>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user