Compare commits
No commits in common. "a3479085b6ccf9fddd5a870c2fdbdcdd7a4de093" and "670c698b7746173d56200befcd11ed2909502709" have entirely different histories.
a3479085b6
...
670c698b77
@ -2,17 +2,29 @@
|
|||||||
|
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
# Import the PyQt and QGIS libraries
|
# Import the PyQt and QGIS libraries
|
||||||
|
# from builtins import next
|
||||||
from builtins import str
|
from builtins import str
|
||||||
|
# from builtins import object
|
||||||
|
|
||||||
from qgis.PyQt import QtCore, QtGui
|
from qgis.PyQt import QtCore, QtGui
|
||||||
from qgis.PyQt.QtCore import QSettings
|
from qgis.PyQt.QtCore import QSettings
|
||||||
from qgis.PyQt import QtWidgets
|
from qgis.PyQt import QtWidgets
|
||||||
|
# from qgis.PyQt.QtWidgets import QDialog
|
||||||
from qgis.PyQt.QtGui import QIcon
|
from qgis.PyQt.QtGui import QIcon
|
||||||
|
|
||||||
|
# from qgis.PyQt.QtCore import *
|
||||||
|
|
||||||
|
# from qgis.core import QgsCoordinateReferenceSystem, QgsCoordinateTransform, QgsProject, QgsSettings
|
||||||
from qgis.core import QgsDataSourceUri, QgsCoordinateReferenceSystem, QgsCoordinateTransform, QgsProject, QgsSettings, QgsApplication, QgsVectorLayer, QgsRasterLayer, QgsWkbTypes
|
from qgis.core import QgsDataSourceUri, QgsCoordinateReferenceSystem, QgsCoordinateTransform, QgsProject, QgsSettings, QgsApplication, QgsVectorLayer, QgsRasterLayer, QgsWkbTypes
|
||||||
from qgis.PyQt.QtWidgets import (
|
from qgis.PyQt.QtWidgets import (
|
||||||
QDialog,
|
QDialog,
|
||||||
QPushButton,
|
# QAction,
|
||||||
|
# QDockWidget,
|
||||||
|
# QFileDialog,
|
||||||
|
# QInputDialog,
|
||||||
|
# QMenu,
|
||||||
|
# QToolButton,
|
||||||
|
# QTableWidget,
|
||||||
QTableWidgetItem,
|
QTableWidgetItem,
|
||||||
QMessageBox,
|
QMessageBox,
|
||||||
QVBoxLayout,
|
QVBoxLayout,
|
||||||
@ -21,15 +33,24 @@ from .tools.SQLRequet import schemaname_list, schemaname_list_ref, schemaname_di
|
|||||||
from .tools.resources import (
|
from .tools.resources import (
|
||||||
load_ui,
|
load_ui,
|
||||||
resources_path,
|
resources_path,
|
||||||
|
# send_issues,
|
||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
from .tools.PythonSQL import login_base
|
from .tools.PythonSQL import login_base
|
||||||
except NameError:
|
except NameError:
|
||||||
print('Pas de fichier PythonSQL')
|
print('Pas de fichier PythonSQL')
|
||||||
|
|
||||||
|
|
||||||
|
# from .issues import CenRa_Issues
|
||||||
|
|
||||||
|
# from ast import literal_eval
|
||||||
from qgis.utils import iface
|
from qgis.utils import iface
|
||||||
|
# import os.path
|
||||||
|
# import os
|
||||||
|
# import webbrowser
|
||||||
import psycopg2
|
import psycopg2
|
||||||
import psycopg2.extras
|
import psycopg2.extras
|
||||||
|
# import base64
|
||||||
|
|
||||||
global DeBUG
|
global DeBUG
|
||||||
DeBUG = 0
|
DeBUG = 0
|
||||||
@ -80,7 +101,6 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
|||||||
|
|
||||||
self.tableWidget.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger(0))
|
self.tableWidget.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger(0))
|
||||||
self.toolButton.setIcon(QtGui.QIcon(resources_path('ui', 'find.png')))
|
self.toolButton.setIcon(QtGui.QIcon(resources_path('ui', 'find.png')))
|
||||||
self.toolButton_2.setIcon(QtGui.QIcon(resources_path('ui', 'star.png')))
|
|
||||||
self.comboBox_2.addItem("SIG")
|
self.comboBox_2.addItem("SIG")
|
||||||
self.comboBox_2.addItem('REF')
|
self.comboBox_2.addItem('REF')
|
||||||
|
|
||||||
@ -91,10 +111,11 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
|||||||
self.tableWidget_2.itemDoubleClicked.connect(self.suppression_flux)
|
self.tableWidget_2.itemDoubleClicked.connect(self.suppression_flux)
|
||||||
self.comboBox_2.currentIndexChanged.connect(self.bd_source)
|
self.comboBox_2.currentIndexChanged.connect(self.bd_source)
|
||||||
self.checkBox.hide()
|
self.checkBox.hide()
|
||||||
|
# self.checkBox.stateChanged.connect(self.modeCarte)
|
||||||
self.toolButton.clicked.connect(self.getCanevas)
|
self.toolButton.clicked.connect(self.getCanevas)
|
||||||
self.toolButton_2.clicked.connect(self.filtre_favorit)
|
|
||||||
layout = QVBoxLayout()
|
layout = QVBoxLayout()
|
||||||
self.lineEdit.textChanged.connect(self.filtre_dynamique)
|
self.lineEdit.textChanged.connect(self.filtre_dynamique)
|
||||||
|
# self.viewer.textChanged.connect(self.NewTitle)
|
||||||
layout.addWidget(self.lineEdit)
|
layout.addWidget(self.lineEdit)
|
||||||
self.viewer.hide()
|
self.viewer.hide()
|
||||||
self.DeBUG.addItem('')
|
self.DeBUG.addItem('')
|
||||||
@ -141,6 +162,14 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
|||||||
DeBUG = 0
|
DeBUG = 0
|
||||||
self.DeBUG.hide()
|
self.DeBUG.hide()
|
||||||
|
|
||||||
|
"""
|
||||||
|
def NewTitle(self):
|
||||||
|
if self.viewer.title() != '':
|
||||||
|
Tsplit = ((self.viewer.title()).split('.'))
|
||||||
|
print(Tsplit[0], Tsplit[1])
|
||||||
|
self.openPostGIS(Tsplit[0], Tsplit[1])
|
||||||
|
"""
|
||||||
|
|
||||||
def bd_source(self):
|
def bd_source(self):
|
||||||
self.activateWindow()
|
self.activateWindow()
|
||||||
bd_origine = self.comboBox_2.currentText()
|
bd_origine = self.comboBox_2.currentText()
|
||||||
@ -153,7 +182,7 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
|||||||
"""Run method that performs all the real work"""
|
"""Run method that performs all the real work"""
|
||||||
while self.tableWidget_2.rowCount() > 0:
|
while self.tableWidget_2.rowCount() > 0:
|
||||||
self.tableWidget_2.removeRow(self.tableWidget_2.rowCount() - 1)
|
self.tableWidget_2.removeRow(self.tableWidget_2.rowCount() - 1)
|
||||||
|
# print(self.tableWidget_2.rowCount())
|
||||||
global cur, con, dbtype
|
global cur, con, dbtype
|
||||||
dbtype = refdb
|
dbtype = refdb
|
||||||
con = psycopg2.connect("host=" + host + " port=" + port + " dbname=" + dbtype + " user=" + user + " password=" + mdp)
|
con = psycopg2.connect("host=" + host + " port=" + port + " dbname=" + dbtype + " user=" + user + " password=" + mdp)
|
||||||
@ -168,7 +197,10 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
|||||||
self.show()
|
self.show()
|
||||||
# Run the dialog event loop
|
# Run the dialog event loop
|
||||||
result = self.exec()
|
result = self.exec()
|
||||||
|
# See if OK was pressed
|
||||||
if result:
|
if result:
|
||||||
|
# Do something useful here - delete the line containing pass and
|
||||||
|
# substitute with your code.
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def run_sig(self):
|
def run_sig(self):
|
||||||
@ -181,48 +213,28 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
|||||||
cur = con.cursor(cursor_factory=psycopg2.extras.DictCursor)
|
cur = con.cursor(cursor_factory=psycopg2.extras.DictCursor)
|
||||||
self.combobox_custom()
|
self.combobox_custom()
|
||||||
self.initialisation_flux()
|
self.initialisation_flux()
|
||||||
|
# Create the dialog with elements (after translation) and keep reference
|
||||||
|
# Only create GUI ONCE in callback, so that it will only load when the plugin is started
|
||||||
if self.first_start is True:
|
if self.first_start is True:
|
||||||
self.first_start = False
|
self.first_start = False
|
||||||
|
# show the dialog
|
||||||
|
# self.show()
|
||||||
|
# Run the dialog event loop
|
||||||
|
# result = self.exec()
|
||||||
|
# See if OK was pressed
|
||||||
|
# if result:
|
||||||
|
# Do something useful here - delete the line containing pass and
|
||||||
|
# substitute with your code.
|
||||||
|
# pass
|
||||||
|
|
||||||
def suppression_flux(self):
|
def suppression_flux(self):
|
||||||
self.tableWidget_2.removeRow(self.tableWidget_2.currentRow())
|
self.tableWidget_2.removeRow(self.tableWidget_2.currentRow())
|
||||||
|
|
||||||
def AddOrDelToUserFav(self):
|
|
||||||
selected_items = self.tableWidget.selectedItems()
|
|
||||||
favorit_statut = selected_items[4].text()
|
|
||||||
|
|
||||||
selected_items[4].tableWidget().removeCellWidget(selected_items[4].row(), 4)
|
|
||||||
|
|
||||||
schema_name = selected_items[2].text()
|
|
||||||
table_name = selected_items[3].text()
|
|
||||||
|
|
||||||
if favorit_statut == "0":
|
|
||||||
FAV = "mStarIconDel.png"
|
|
||||||
selected_items[4].setText("1")
|
|
||||||
SQLAddFav = """INSERT INTO admin_sig.favtable (utilisateur, schema_name, table_name) VALUES ('""" + user + "','" + schema_name + "','" + table_name + """');"""
|
|
||||||
if dbtype == sigdb:
|
|
||||||
cur.execute(SQLAddFav)
|
|
||||||
con.commit()
|
|
||||||
|
|
||||||
else:
|
|
||||||
FAV = "mStarIconAdd.png"
|
|
||||||
selected_items[4].setText("0")
|
|
||||||
SQLDelFav = """DELETE FROM admin_sig.favtable WHERE utilisateur LIKE '""" + user + """' AND schema_name LIKE '""" + schema_name + """' AND table_name LIKE '""" + table_name + """';"""
|
|
||||||
if dbtype == sigdb:
|
|
||||||
cur.execute(SQLDelFav)
|
|
||||||
con.commit()
|
|
||||||
|
|
||||||
iconFav = QIcon()
|
|
||||||
iconFav.addPixmap(QtGui.QPixmap(resources_path('icons', FAV)), QIcon.Mode(0), QIcon.State(1))
|
|
||||||
self.FavButton = QPushButton(iconFav, "")
|
|
||||||
selected_items[4].tableWidget().setCellWidget(selected_items[4].row(), 4, self.FavButton)
|
|
||||||
self.FavButton.clicked.connect(self.AddOrDelToUserFav)
|
|
||||||
|
|
||||||
def initialisation_flux(self):
|
def initialisation_flux(self):
|
||||||
self.tableWidget.clear()
|
|
||||||
if NoSignals == 0:
|
if NoSignals == 0:
|
||||||
|
# print('Initiaisation de la connection a la DB: ' + dbtype)
|
||||||
if dbtype == sigdb:
|
if dbtype == sigdb:
|
||||||
|
# self.toolButton.setEnabled(1)
|
||||||
if self.comboBox.currentText() == 'toutes les catégories':
|
if self.comboBox.currentText() == 'toutes les catégories':
|
||||||
custom_list = schemaname_list
|
custom_list = schemaname_list
|
||||||
elif self.comboBox.currentText() == 'travaux':
|
elif self.comboBox.currentText() == 'travaux':
|
||||||
@ -276,19 +288,8 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
|||||||
GrandUser = []
|
GrandUser = []
|
||||||
for grandsFind in list_grands:
|
for grandsFind in list_grands:
|
||||||
GrandUser.append(grandsFind[0])
|
GrandUser.append(grandsFind[0])
|
||||||
|
|
||||||
if dbtype == sigdb:
|
|
||||||
SQLFavTable = "SELECT concat(schema_name, '.', table_name) FROM admin_sig.favtable WHERE utilisateur LIKE '" + user + "';"
|
|
||||||
cur.execute(SQLFavTable)
|
|
||||||
list_fav = cur.fetchall()
|
|
||||||
FavList = []
|
|
||||||
for favFind in list_fav:
|
|
||||||
FavList.append(favFind[0])
|
|
||||||
else:
|
|
||||||
FavList = []
|
|
||||||
|
|
||||||
self.tableWidget.setRowCount(len(list_schema))
|
self.tableWidget.setRowCount(len(list_schema))
|
||||||
self.tableWidget.setColumnCount(5)
|
self.tableWidget.setColumnCount(4)
|
||||||
i = 0
|
i = 0
|
||||||
for value in list_schema:
|
for value in list_schema:
|
||||||
if dbtype == sigdb:
|
if dbtype == sigdb:
|
||||||
@ -319,20 +320,6 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
|||||||
schema_name = str(value[0])
|
schema_name = str(value[0])
|
||||||
table_name = str(value[1])
|
table_name = str(value[1])
|
||||||
|
|
||||||
FavStatut = 0
|
|
||||||
if (schema_name + '.' + table_name) not in FavList:
|
|
||||||
FAV = "mStarIconAdd.png"
|
|
||||||
FavStatut = 0
|
|
||||||
else:
|
|
||||||
FAV = "mStarIconDel.png"
|
|
||||||
FavStatut = 1
|
|
||||||
iconFav = QIcon()
|
|
||||||
iconFav.addPixmap(QtGui.QPixmap(resources_path('icons', FAV)), QIcon.Mode(0), QIcon.State(1))
|
|
||||||
self.FavButton = QPushButton(iconFav, "")
|
|
||||||
self.FavButton.clicked.connect(self.AddOrDelToUserFav)
|
|
||||||
if dbtype == refdb:
|
|
||||||
self.FavButton.setEnabled(False)
|
|
||||||
|
|
||||||
if (str(value[0]) + '.' + str(value[1])) in RasterList:
|
if (str(value[0]) + '.' + str(value[1])) in RasterList:
|
||||||
SVG = 'mIconRaster.svg'
|
SVG = 'mIconRaster.svg'
|
||||||
else:
|
else:
|
||||||
@ -350,13 +337,12 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
|||||||
self.tableWidget.setItem(i, 2, item)
|
self.tableWidget.setItem(i, 2, item)
|
||||||
item = QTableWidgetItem(table_name)
|
item = QTableWidgetItem(table_name)
|
||||||
self.tableWidget.setItem(i, 3, item)
|
self.tableWidget.setItem(i, 3, item)
|
||||||
item = QTableWidgetItem(str(FavStatut))
|
|
||||||
self.tableWidget.setItem(i, 4, item)
|
|
||||||
self.tableWidget.setCellWidget(i, 4, self.FavButton)
|
|
||||||
|
|
||||||
|
# if dbtype == sigdb:
|
||||||
if (str(value[0]) + '.' + str(value[1])) in GrandUser:
|
if (str(value[0]) + '.' + str(value[1])) in GrandUser:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
# print(str(value[0]) + '.' + str(value[1]), 'bad')
|
||||||
for j in range(self.tableWidget.columnCount()):
|
for j in range(self.tableWidget.columnCount()):
|
||||||
self.tableWidget.item(i, j).setBackground(QtGui.QColor(187, 134, 192, 50))
|
self.tableWidget.item(i, j).setBackground(QtGui.QColor(187, 134, 192, 50))
|
||||||
self.tableWidget.item(i, j).setToolTip('Droit insuffisant pour ouvrire la couche !')
|
self.tableWidget.item(i, j).setToolTip('Droit insuffisant pour ouvrire la couche !')
|
||||||
@ -377,20 +363,6 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
|||||||
cur.execute(SQLProjectsQgis)
|
cur.execute(SQLProjectsQgis)
|
||||||
list_projects_qgis = cur.fetchall()
|
list_projects_qgis = cur.fetchall()
|
||||||
for Project in list_projects_qgis:
|
for Project in list_projects_qgis:
|
||||||
FavStatut = 0
|
|
||||||
if (ProjectName[0] + '.' + Project[0]) not in FavList:
|
|
||||||
FAV = "mStarIconAdd.png"
|
|
||||||
FavStatut = 0
|
|
||||||
else:
|
|
||||||
FAV = "mStarIconDel.png"
|
|
||||||
FavStatut = 1
|
|
||||||
iconFav = QIcon()
|
|
||||||
iconFav.addPixmap(QtGui.QPixmap(resources_path('icons', FAV)), QIcon.Mode(0), QIcon.State(1))
|
|
||||||
self.FavButton = QPushButton(iconFav, "")
|
|
||||||
self.FavButton.clicked.connect(self.AddOrDelToUserFav)
|
|
||||||
if dbtype == refdb:
|
|
||||||
self.FavButton.setEnabled(False)
|
|
||||||
|
|
||||||
self.tableWidget.setRowCount(i + 1)
|
self.tableWidget.setRowCount(i + 1)
|
||||||
itemIcon = QTableWidgetItem()
|
itemIcon = QTableWidgetItem()
|
||||||
icon = QIcon()
|
icon = QIcon()
|
||||||
@ -407,18 +379,13 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
|||||||
item = QTableWidgetItem(Project[0])
|
item = QTableWidgetItem(Project[0])
|
||||||
self.tableWidget.setItem(i, 3, item)
|
self.tableWidget.setItem(i, 3, item)
|
||||||
|
|
||||||
item = QTableWidgetItem(str(FavStatut))
|
|
||||||
self.tableWidget.setItem(i, 4, item)
|
|
||||||
self.tableWidget.setCellWidget(i, 4, self.FavButton)
|
|
||||||
|
|
||||||
i = i + 1
|
i = i + 1
|
||||||
|
|
||||||
self.tableWidget.setColumnWidth(0, 20)
|
self.tableWidget.setColumnWidth(0, 20)
|
||||||
self.tableWidget.setColumnWidth(1, 70)
|
self.tableWidget.setColumnWidth(1, 70)
|
||||||
self.tableWidget.setColumnWidth(2, 300)
|
self.tableWidget.setColumnWidth(2, 300)
|
||||||
self.tableWidget.setColumnWidth(3, 300)
|
self.tableWidget.setColumnWidth(3, 300)
|
||||||
self.tableWidget.setColumnWidth(4, 20)
|
self.tableWidget.setHorizontalHeaderLabels(["Type", "Code", "Schema", "Table"])
|
||||||
self.tableWidget.setHorizontalHeaderLabels(["Type", "Code", "Schema", "Table", "Favorit"])
|
|
||||||
|
|
||||||
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())
|
||||||
@ -427,6 +394,8 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
|||||||
selected_row = 0
|
selected_row = 0
|
||||||
selected_items = self.tableWidget.selectedItems()
|
selected_items = self.tableWidget.selectedItems()
|
||||||
|
|
||||||
|
# Assuming you want to compare items in the first column for uniqueness
|
||||||
|
# svgTake = (selected_items[2].tableWidget().cellWidget(0,0))
|
||||||
new_item_text = selected_items[3].text()
|
new_item_text = selected_items[3].text()
|
||||||
|
|
||||||
if not self.item_already_exists(new_item_text):
|
if not self.item_already_exists(new_item_text):
|
||||||
@ -434,16 +403,14 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
|||||||
|
|
||||||
for column in range(self.tableWidget.columnCount()):
|
for column in range(self.tableWidget.columnCount()):
|
||||||
cloned_item = selected_items[column].clone()
|
cloned_item = selected_items[column].clone()
|
||||||
self.tableWidget_2.setHorizontalHeaderLabels(["Type", "Code", "Schema", "Table", "Favorit"])
|
self.tableWidget_2.setHorizontalHeaderLabels(["Type", "Code", "Schema", "Table"])
|
||||||
self.tableWidget_2.setColumnCount(5)
|
self.tableWidget_2.setColumnCount(4)
|
||||||
self.tableWidget_2.setItem(selected_row, column, cloned_item)
|
self.tableWidget_2.setItem(selected_row, column, cloned_item)
|
||||||
|
|
||||||
self.tableWidget_2.setColumnWidth(0, 20)
|
self.tableWidget_2.setColumnWidth(0, 20)
|
||||||
self.tableWidget_2.setColumnWidth(1, 70)
|
self.tableWidget_2.setColumnWidth(1, 70)
|
||||||
self.tableWidget_2.setColumnWidth(2, 300)
|
self.tableWidget_2.setColumnWidth(2, 300)
|
||||||
self.tableWidget_2.setColumnWidth(3, 300)
|
self.tableWidget_2.setColumnWidth(3, 300)
|
||||||
self.tableWidget_2.setColumnWidth(4, 20)
|
|
||||||
self.tableWidget_2.setColumnHidden(4, True)
|
|
||||||
|
|
||||||
def item_already_exists(self, new_item_text):
|
def item_already_exists(self, new_item_text):
|
||||||
# Assuming you want to compare items in the first column for uniqueness
|
# Assuming you want to compare items in the first column for uniqueness
|
||||||
@ -467,6 +434,25 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
|||||||
if self.tableWidget_2.rowCount() <= 5:
|
if self.tableWidget_2.rowCount() <= 5:
|
||||||
self.chargement_flux()
|
self.chargement_flux()
|
||||||
|
|
||||||
|
"""
|
||||||
|
def openPostGIS(self, schema, table):
|
||||||
|
uri = QgsDataSourceUri()
|
||||||
|
uri.setConnection(host, port, sigdb, user, mdp)
|
||||||
|
|
||||||
|
if (schema + '.' + table) in LRasterList:
|
||||||
|
uri.setDataSource(schema, table, "rast")
|
||||||
|
uri.setKeyColumn('rid')
|
||||||
|
uri.setSrid('2154')
|
||||||
|
layer = QgsRasterLayer(uri.uri(), table, "postgresraster")
|
||||||
|
else:
|
||||||
|
uri.setDataSource(schema, table, "geom")
|
||||||
|
uri.setKeyColumn('gid')
|
||||||
|
uri.setSrid('2154')
|
||||||
|
layer = QgsVectorLayer(uri.uri(), table, "postgres")
|
||||||
|
# Ajout de la couche au canevas QGIS
|
||||||
|
QgsProject.instance().addMapLayer(layer)
|
||||||
|
"""
|
||||||
|
|
||||||
def chargement_flux(self):
|
def chargement_flux(self):
|
||||||
managerAU = QgsApplication.authManager()
|
managerAU = QgsApplication.authManager()
|
||||||
managerAU.availableAuthMethodConfigs().keys()
|
managerAU.availableAuthMethodConfigs().keys()
|
||||||
@ -481,6 +467,9 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
|||||||
}
|
}
|
||||||
return switcher.get(type, "nothing")
|
return switcher.get(type, "nothing")
|
||||||
|
|
||||||
|
# def displayOnWindows(type, uri, name):
|
||||||
|
# p = []
|
||||||
|
|
||||||
SQLloadRaster = """SELECT concat(r_table_schema,'.',r_table_name) from public.raster_columns; """
|
SQLloadRaster = """SELECT concat(r_table_schema,'.',r_table_name) from public.raster_columns; """
|
||||||
SQLextension = """SELECT count(extname) FROM pg_catalog.pg_extension WHERE extname LIKE 'postgis_raster';"""
|
SQLextension = """SELECT count(extname) FROM pg_catalog.pg_extension WHERE extname LIKE 'postgis_raster';"""
|
||||||
|
|
||||||
@ -520,6 +509,7 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
|||||||
code = self.tableWidget_2.item(row, 1).text()
|
code = self.tableWidget_2.item(row, 1).text()
|
||||||
schema = self.tableWidget_2.item(row, 2).text()
|
schema = self.tableWidget_2.item(row, 2).text()
|
||||||
table = self.tableWidget_2.item(row, 3).text()
|
table = self.tableWidget_2.item(row, 3).text()
|
||||||
|
# .split("?", 1)[0]
|
||||||
uri = QgsDataSourceUri()
|
uri = QgsDataSourceUri()
|
||||||
uri.setConnection(host, port, dbtype, user, mdp)
|
uri.setConnection(host, port, dbtype, user, mdp)
|
||||||
# nom du schéma à remplacer: "hydrographie" à supprimer et mettre "couches_collaboratives" lorsqu'on aura regroupé les couches à modifier dans un même
|
# nom du schéma à remplacer: "hydrographie" à supprimer et mettre "couches_collaboratives" lorsqu'on aura regroupé les couches à modifier dans un même
|
||||||
@ -570,6 +560,7 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
|||||||
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.StandardButton(0x00004000))
|
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.StandardButton(0x00004000))
|
||||||
|
|
||||||
def combobox_custom(self):
|
def combobox_custom(self):
|
||||||
|
# print('Chargement de la list pour la BD: ' + dbtype)
|
||||||
global NoSignals
|
global NoSignals
|
||||||
NoSignals = 1
|
NoSignals = 1
|
||||||
if dbtype == sigdb:
|
if dbtype == sigdb:
|
||||||
@ -597,26 +588,6 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
|||||||
self.comboBox.addItem(baxval[0])
|
self.comboBox.addItem(baxval[0])
|
||||||
NoSignals = 0
|
NoSignals = 0
|
||||||
|
|
||||||
def filtre_favorit(self, filter_fav):
|
|
||||||
if self.toolButton_2.text() == "0":
|
|
||||||
self.toolButton_2.setText("1")
|
|
||||||
self.toolButton_2.setDown(True)
|
|
||||||
if self.lineEdit.text() != 'Recherche par mots-clés':
|
|
||||||
self.filtre_dynamique(self.lineEdit.text())
|
|
||||||
else:
|
|
||||||
for i in range(self.tableWidget.rowCount()):
|
|
||||||
item = self.tableWidget.item(i, 4)
|
|
||||||
match = self.toolButton_2.text() not in item.text().lower()
|
|
||||||
self.tableWidget.setRowHidden(i, match)
|
|
||||||
elif self.toolButton_2.text() == "1":
|
|
||||||
self.toolButton_2.setText("0")
|
|
||||||
self.toolButton_2.setDown(False)
|
|
||||||
if self.lineEdit.text() != 'Recherche par mots-clés':
|
|
||||||
self.filtre_dynamique(self.lineEdit.text())
|
|
||||||
else:
|
|
||||||
for i in range(self.tableWidget.rowCount()):
|
|
||||||
self.tableWidget.setRowHidden(i, False)
|
|
||||||
|
|
||||||
def filtre_dynamique(self, filter_text):
|
def filtre_dynamique(self, filter_text):
|
||||||
if filter_text.find(' ') >= 0:
|
if filter_text.find(' ') >= 0:
|
||||||
filter_text = filter_text.replace(" ", "_")
|
filter_text = filter_text.replace(" ", "_")
|
||||||
@ -624,10 +595,6 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
|||||||
for j in range(self.tableWidget.columnCount()):
|
for j in range(self.tableWidget.columnCount()):
|
||||||
item = self.tableWidget.item(i, j)
|
item = self.tableWidget.item(i, j)
|
||||||
match = filter_text.lower() not in item.text().lower()
|
match = filter_text.lower() not in item.text().lower()
|
||||||
if match is False:
|
|
||||||
if self.toolButton_2.text() == "1":
|
|
||||||
item = self.tableWidget.item(i, 4)
|
|
||||||
match = self.toolButton_2.text() not in item.text().lower()
|
|
||||||
self.tableWidget.setRowHidden(i, match)
|
self.tableWidget.setRowHidden(i, match)
|
||||||
if not match:
|
if not match:
|
||||||
break
|
break
|
||||||
@ -670,7 +637,6 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
|||||||
DepName = QTableWidgetItem('form')
|
DepName = QTableWidgetItem('form')
|
||||||
SchemaName = QTableWidgetItem(e[0][6:])
|
SchemaName = QTableWidgetItem(e[0][6:])
|
||||||
TableName = QTableWidgetItem(e[1][len(e[0]) + 1:])
|
TableName = QTableWidgetItem(e[1][len(e[0]) + 1:])
|
||||||
FavoritStatut = QTableWidgetItem('FavIcon')
|
|
||||||
self.tableWidget.insertRow(row_count)
|
self.tableWidget.insertRow(row_count)
|
||||||
|
|
||||||
itemIcon = QTableWidgetItem()
|
itemIcon = QTableWidgetItem()
|
||||||
@ -682,7 +648,6 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
|||||||
self.tableWidget.setItem(row_count, 1, DepName)
|
self.tableWidget.setItem(row_count, 1, DepName)
|
||||||
self.tableWidget.setItem(row_count, 2, SchemaName)
|
self.tableWidget.setItem(row_count, 2, SchemaName)
|
||||||
self.tableWidget.setItem(row_count, 3, TableName)
|
self.tableWidget.setItem(row_count, 3, TableName)
|
||||||
self.tableWidget.setItem(row_count, 3, FavoritStatut)
|
|
||||||
if TableSomme == 0:
|
if TableSomme == 0:
|
||||||
for j in range(self.tableWidget.columnCount()):
|
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).setBackground(QtGui.QColor(246, 185, 73, 50))
|
||||||
@ -698,3 +663,7 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
|||||||
new_object = new_object + '[' + str(obj_X[1]) + ',' + str(obj_X[0]) + '],'
|
new_object = new_object + '[' + str(obj_X[1]) + ',' + str(obj_X[0]) + '],'
|
||||||
new_object = new_object[:-1] + ']'
|
new_object = new_object[:-1] + ']'
|
||||||
return (new_object)
|
return (new_object)
|
||||||
|
|
||||||
|
# def popup(self):
|
||||||
|
# self.dialog = Popup() # +++ - self
|
||||||
|
# self.dialog.text_edit.show()
|
||||||
|
|||||||
@ -7,7 +7,7 @@ name=CenRa_FLUX
|
|||||||
qgisMinimumVersion=3.0
|
qgisMinimumVersion=3.0
|
||||||
supportsQt6=True
|
supportsQt6=True
|
||||||
description=Permet d'ouvrire une table dans la base PostGis
|
description=Permet d'ouvrire une table dans la base PostGis
|
||||||
version=3.16
|
version=3.14
|
||||||
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=<h2>CenRa_FLUX:</h2></br><p><h3>11/02/2026 - Version 3.16: </h3> - Creation de favori et visualisation.</p></br><p><h3>10/02/2026 - Version 3.15: </h3> - Sauvegarde la recherche.</p></br><p><h3>08/12/2025 - Version 3.14: </h3> - message d'erreur pour les drois de couche sur la DB.</p></br><p><h3>08/12/2025 - Version 3.13: </h3> - Detection des droit utilisateur.</p></br><p><h3>25/09/2025 - Version 3.12: </h3> - version +1.</p></br><p><h3>25/09/2025 - Version 3.11: </h3> - Correctife sur les code 00.</p></br><p><h3>24/09/2025 - Version 3.10: </h3> - Erreur sur l ouverture des couche raster. </p></br><p><h3>24/09/2025 - Version 3.9: </h3> - bugfix lier aux extention pgsql.</p></br><p><h3>09/09/2025 - Version 3.8: </h3> - Bug REF fix.</p></br><p><h3>05/09/2025 - Version 3.7: </h3> - Ouverture de projet QGIS contenue dans la base de donnees.</p></br><p><h3>30/07/2025 - Version 3.6: </h3> - Correctife de bug.</p></br><p><h3>29/07/2025 - Version 3.5: </h3> - Bug fix sur les donnee raster.</p></br><p><h3>23/07/2025 - Version 3.4: </h3> - Ouverture raster dans la base SIG.</p></br><p><h3>23/07/2025 - Version 3.3: </h3> - Optimisation des chargement.</p></br><p><h3>22/07/2025 - Version 3.2: </h3> - Visualisation des format raster et vecteur dans REF.</p></br><p><h3>21/07/2025 - Version 3.1: </h3> - Bug fix pour l'ouverture de plus de 5 couches.</p></br><p><h3>19/05/2025 - Version 3.0: </h3> - Compatible PyQt5 et PyQt6.</p></br><p><h3>09/04/2025 - Version 2.9: </h3> - Correctif bug en TT.</p></br><p><h3>09/04/2025 - Version 2.8: </h3> - Optimisation pour le TT.</p></br><p><h3>07/04/2025 - Version 2.7: </h3> - mode debug.</p></br><p><h3>03/04/2025 - Version 2.6: </h3> - Mise a jour de securite.</p></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>
|
changelog=<h2>CenRa_FLUX:</h2></br><p><h3>08/12/2025 - Version 3.14: </h3> - message d'erreur pour les drois de couche sur la DB.</p></br><p><h3>08/12/2025 - Version 3.13: </h3> - Detection des droit utilisateur.</p></br><p><h3>25/09/2025 - Version 3.12: </h3> - version +1.</p></br><p><h3>25/09/2025 - Version 3.11: </h3> - Correctife sur les code 00.</p></br><p><h3>24/09/2025 - Version 3.10: </h3> - Erreur sur l ouverture des couche raster. </p></br><p><h3>24/09/2025 - Version 3.9: </h3> - bugfix lier aux extention pgsql.</p></br><p><h3>09/09/2025 - Version 3.8: </h3> - Bug REF fix.</p></br><p><h3>05/09/2025 - Version 3.7: </h3> - Ouverture de projet QGIS contenue dans la base de donnees.</p></br><p><h3>30/07/2025 - Version 3.6: </h3> - Correctife de bug.</p></br><p><h3>29/07/2025 - Version 3.5: </h3> - Bug fix sur les donnee raster.</p></br><p><h3>23/07/2025 - Version 3.4: </h3> - Ouverture raster dans la base SIG.</p></br><p><h3>23/07/2025 - Version 3.3: </h3> - Optimisation des chargement.</p></br><p><h3>22/07/2025 - Version 3.2: </h3> - Visualisation des format raster et vecteur dans REF.</p></br><p><h3>21/07/2025 - Version 3.1: </h3> - Bug fix pour l'ouverture de plus de 5 couches.</p></br><p><h3>19/05/2025 - Version 3.0: </h3> - Compatible PyQt5 et PyQt6.</p></br><p><h3>09/04/2025 - Version 2.9: </h3> - Correctif bug en TT.</p></br><p><h3>09/04/2025 - Version 2.8: </h3> - Optimisation pour le TT.</p></br><p><h3>07/04/2025 - Version 2.7: </h3> - mode debug.</p></br><p><h3>03/04/2025 - Version 2.6: </h3> - Mise a jour de securite.</p></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
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 13 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 11 KiB |
@ -9,170 +9,29 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>890</width>
|
<width>910</width>
|
||||||
<height>810</height>
|
<height>800</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>600</width>
|
<width>910</width>
|
||||||
<height>400</height>
|
<height>800</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>890</width>
|
<width>910</width>
|
||||||
<height>810</height>
|
<height>800</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>SIG CEN-RA</string>
|
<string>SIG CEN-RA</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeGripEnabled">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
|
||||||
<property name="sizeConstraint">
|
|
||||||
<enum>QLayout::SetMaximumSize</enum>
|
|
||||||
</property>
|
|
||||||
<property name="leftMargin">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="topMargin">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="rightMargin">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="bottomMargin">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="spacing">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="QScrollArea" name="scrollArea">
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>890</width>
|
|
||||||
<height>810</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="inputMethodHints">
|
|
||||||
<set>Qt::ImhNoEditMenu|Qt::ImhNoTextHandles</set>
|
|
||||||
</property>
|
|
||||||
<property name="frameShape">
|
|
||||||
<enum>QFrame::NoFrame</enum>
|
|
||||||
</property>
|
|
||||||
<property name="frameShadow">
|
|
||||||
<enum>QFrame::Sunken</enum>
|
|
||||||
</property>
|
|
||||||
<property name="lineWidth">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="midLineWidth">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="verticalScrollBarPolicy">
|
|
||||||
<enum>Qt::ScrollBarAlwaysOff</enum>
|
|
||||||
</property>
|
|
||||||
<property name="horizontalScrollBarPolicy">
|
|
||||||
<enum>Qt::ScrollBarAlwaysOff</enum>
|
|
||||||
</property>
|
|
||||||
<widget class="QWidget" name="scrollAreaWidgetContents_2">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>0</x>
|
|
||||||
<y>0</y>
|
|
||||||
<width>890</width>
|
|
||||||
<height>810</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>890</width>
|
|
||||||
<height>810</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<widget class="QCommandLinkButton" name="commandLinkButton_2">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>450</x>
|
|
||||||
<y>470</y>
|
|
||||||
<width>61</width>
|
|
||||||
<height>61</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
<property name="icon">
|
|
||||||
<iconset>
|
|
||||||
<normaloff>:/plugins/CenRa_FLUX/arrow-up.png</normaloff>:/plugins/CenRa_FLUX/arrow-up.png</iconset>
|
|
||||||
</property>
|
|
||||||
<property name="iconSize">
|
|
||||||
<size>
|
|
||||||
<width>50</width>
|
|
||||||
<height>40</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
<widget class="QPushButton" name="pushButton_2">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>360</x>
|
|
||||||
<y>750</y>
|
|
||||||
<width>171</width>
|
|
||||||
<height>23</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Charger les couches</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
<widget class="QLabel" name="label">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>30</x>
|
|
||||||
<y>150</y>
|
|
||||||
<width>161</width>
|
|
||||||
<height>16</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="font">
|
|
||||||
<font>
|
|
||||||
<family>Calibri</family>
|
|
||||||
<pointsize>10</pointsize>
|
|
||||||
<italic>false</italic>
|
|
||||||
</font>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Liste des flux disponibles :</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
<widget class="QTableWidget" name="tableWidget_2">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>20</x>
|
|
||||||
<y>550</y>
|
|
||||||
<width>851</width>
|
|
||||||
<height>181</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="inputMethodHints">
|
|
||||||
<set>Qt::ImhNoEditMenu|Qt::ImhNoTextHandles</set>
|
|
||||||
</property>
|
|
||||||
<property name="selectionMode">
|
|
||||||
<enum>QAbstractItemView::SingleSelection</enum>
|
|
||||||
</property>
|
|
||||||
<property name="selectionBehavior">
|
|
||||||
<enum>QAbstractItemView::SelectRows</enum>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
<widget class="QComboBox" name="comboBox">
|
<widget class="QComboBox" name="comboBox">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>250</x>
|
<x>260</x>
|
||||||
<y>130</y>
|
<y>130</y>
|
||||||
<width>171</width>
|
<width>171</width>
|
||||||
<height>22</height>
|
<height>22</height>
|
||||||
@ -185,99 +44,26 @@
|
|||||||
<string notr="true"/>
|
<string notr="true"/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QLineEdit" name="lineEdit">
|
<widget class="QComboBox" name="comboBox_2">
|
||||||
<property name="enabled">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>470</x>
|
<x>370</x>
|
||||||
<y>130</y>
|
<y>80</y>
|
||||||
<width>171</width>
|
<width>171</width>
|
||||||
<height>21</height>
|
<height>22</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="editable">
|
||||||
<string>Recherche par mots-clés</string>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignCenter</set>
|
|
||||||
</property>
|
|
||||||
<property name="readOnly">
|
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="clearButtonEnabled">
|
<property name="currentText">
|
||||||
<bool>true</bool>
|
<string notr="true"/>
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
<widget class="QToolButton" name="toolButton">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>660</x>
|
|
||||||
<y>130</y>
|
|
||||||
<width>21</width>
|
|
||||||
<height>21</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
<widget class="QTableWidget" name="tableWidget">
|
|
||||||
<property name="enabled">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>20</x>
|
|
||||||
<y>170</y>
|
|
||||||
<width>850</width>
|
|
||||||
<height>281</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="editTriggers">
|
|
||||||
<set>QAbstractItemView::AnyKeyPressed|QAbstractItemView::DoubleClicked</set>
|
|
||||||
</property>
|
|
||||||
<property name="selectionMode">
|
|
||||||
<enum>QAbstractItemView::SingleSelection</enum>
|
|
||||||
</property>
|
|
||||||
<property name="selectionBehavior">
|
|
||||||
<enum>QAbstractItemView::SelectRows</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sortingEnabled">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
<widget class="QLabel" name="label_2">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>20</x>
|
|
||||||
<y>530</y>
|
|
||||||
<width>171</width>
|
|
||||||
<height>16</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="font">
|
|
||||||
<font>
|
|
||||||
<family>Calibri</family>
|
|
||||||
<pointsize>10</pointsize>
|
|
||||||
<italic>false</italic>
|
|
||||||
</font>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Flux sélectionné(s) à charger :</string>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QLabel" name="label_3">
|
<widget class="QLabel" name="label_3">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>335</x>
|
<x>345</x>
|
||||||
<y>10</y>
|
<y>10</y>
|
||||||
<width>221</width>
|
<width>221</width>
|
||||||
<height>71</height>
|
<height>71</height>
|
||||||
@ -293,32 +79,55 @@
|
|||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QComboBox" name="comboBox_2">
|
<widget class="QPushButton" name="pushButton_2">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>360</x>
|
<x>370</x>
|
||||||
<y>80</y>
|
<y>750</y>
|
||||||
<width>171</width>
|
<width>171</width>
|
||||||
<height>22</height>
|
<height>23</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizePolicy">
|
<property name="text">
|
||||||
<sizepolicy hsizetype="Ignored" vsizetype="Ignored">
|
<string>Charger les couches</string>
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
</property>
|
||||||
<property name="editable">
|
</widget>
|
||||||
<bool>false</bool>
|
<widget class="QTableWidget" name="tableWidget">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="currentText">
|
<property name="geometry">
|
||||||
<string notr="true"/>
|
<rect>
|
||||||
|
<x>30</x>
|
||||||
|
<y>170</y>
|
||||||
|
<width>850</width>
|
||||||
|
<height>281</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="selectionMode">
|
||||||
|
<enum>QAbstractItemView::SingleSelection</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sortingEnabled">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="QTableWidget" name="tableWidget_2">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>30</x>
|
||||||
|
<y>550</y>
|
||||||
|
<width>850</width>
|
||||||
|
<height>181</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="selectionMode">
|
||||||
|
<enum>QAbstractItemView::SingleSelection</enum>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QCommandLinkButton" name="commandLinkButton">
|
<widget class="QCommandLinkButton" name="commandLinkButton">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>390</x>
|
<x>400</x>
|
||||||
<y>470</y>
|
<y>470</y>
|
||||||
<width>61</width>
|
<width>61</width>
|
||||||
<height>61</height>
|
<height>61</height>
|
||||||
@ -338,58 +147,105 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QCheckBox" name="checkBox">
|
<widget class="QCommandLinkButton" name="commandLinkButton_2">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>830</x>
|
<x>460</x>
|
||||||
<y>20</y>
|
<y>470</y>
|
||||||
<width>70</width>
|
<width>61</width>
|
||||||
<height>17</height>
|
<height>61</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="icon">
|
||||||
|
<iconset>
|
||||||
|
<normaloff>:/plugins/CenRa_FLUX/arrow-up.png</normaloff>:/plugins/CenRa_FLUX/arrow-up.png</iconset>
|
||||||
|
</property>
|
||||||
|
<property name="iconSize">
|
||||||
|
<size>
|
||||||
|
<width>50</width>
|
||||||
|
<height>40</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QComboBox" name="DeBUG">
|
<widget class="QLineEdit" name="lineEdit">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>10</x>
|
<x>480</x>
|
||||||
<y>20</y>
|
<y>130</y>
|
||||||
<width>71</width>
|
<width>171</width>
|
||||||
<height>22</height>
|
<height>21</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizePolicy">
|
<property name="text">
|
||||||
<sizepolicy hsizetype="Ignored" vsizetype="Ignored">
|
<string>Recherche par mots-clés</string>
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
</property>
|
||||||
<property name="editable">
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignCenter</set>
|
||||||
|
</property>
|
||||||
|
<property name="readOnly">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="currentText">
|
<property name="clearButtonEnabled">
|
||||||
<string notr="true"/>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QTextBrowser" name="viewer">
|
<widget class="QLabel" name="label">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>90</x>
|
<x>40</x>
|
||||||
<y>10</y>
|
<y>150</y>
|
||||||
<width>731</width>
|
<width>161</width>
|
||||||
<height>731</height>
|
<height>16</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="styleSheet">
|
<property name="font">
|
||||||
<string notr="true">background-color: rgba(255, 255, 255,0.50);</string>
|
<font>
|
||||||
|
<family>Calibri</family>
|
||||||
|
<pointsize>10</pointsize>
|
||||||
|
<italic>false</italic>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Liste des flux disponibles :</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
<widget class="QLabel" name="label_2">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>30</x>
|
||||||
|
<y>530</y>
|
||||||
|
<width>171</width>
|
||||||
|
<height>16</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<family>Calibri</family>
|
||||||
|
<pointsize>10</pointsize>
|
||||||
|
<italic>false</italic>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Flux sélectionné(s) à charger :</string>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
<zorder>label_3</zorder>
|
||||||
</item>
|
<zorder>comboBox</zorder>
|
||||||
</layout>
|
<zorder>comboBox_2</zorder>
|
||||||
|
<zorder>pushButton_2</zorder>
|
||||||
|
<zorder>tableWidget</zorder>
|
||||||
|
<zorder>tableWidget_2</zorder>
|
||||||
|
<zorder>commandLinkButton</zorder>
|
||||||
|
<zorder>commandLinkButton_2</zorder>
|
||||||
|
<zorder>lineEdit</zorder>
|
||||||
|
<zorder>label</zorder>
|
||||||
|
<zorder>label_2</zorder>
|
||||||
</widget>
|
</widget>
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections/>
|
<connections/>
|
||||||
|
|||||||
@ -386,35 +386,6 @@
|
|||||||
<string notr="true">background-color: rgba(255, 255, 255,0.50);</string>
|
<string notr="true">background-color: rgba(255, 255, 255,0.50);</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QToolButton" name="toolButton_2">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>700</x>
|
|
||||||
<y>130</y>
|
|
||||||
<width>21</width>
|
|
||||||
<height>21</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>0</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
<zorder>commandLinkButton_2</zorder>
|
|
||||||
<zorder>pushButton_2</zorder>
|
|
||||||
<zorder>label</zorder>
|
|
||||||
<zorder>tableWidget_2</zorder>
|
|
||||||
<zorder>comboBox</zorder>
|
|
||||||
<zorder>lineEdit</zorder>
|
|
||||||
<zorder>toolButton</zorder>
|
|
||||||
<zorder>tableWidget</zorder>
|
|
||||||
<zorder>label_2</zorder>
|
|
||||||
<zorder>label_3</zorder>
|
|
||||||
<zorder>comboBox_2</zorder>
|
|
||||||
<zorder>commandLinkButton</zorder>
|
|
||||||
<zorder>checkBox</zorder>
|
|
||||||
<zorder>DeBUG</zorder>
|
|
||||||
<zorder>toolButton_2</zorder>
|
|
||||||
<zorder>viewer</zorder>
|
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 18 KiB |
@ -50,9 +50,9 @@
|
|||||||
<tags>cenra,sicen</tags>
|
<tags>cenra,sicen</tags>
|
||||||
</pyqgis_plugin>
|
</pyqgis_plugin>
|
||||||
|
|
||||||
<pyqgis_plugin name="CenRa_FLUX" version="3.16">
|
<pyqgis_plugin name="CenRa_FLUX" version="3.14">
|
||||||
<description>Depot pour les extensiont QGIS du CEN Rhone-Alpes, sur GitHub.</description>
|
<description>Depot pour les extensiont QGIS du CEN Rhone-Alpes, sur GitHub.</description>
|
||||||
<version>3.16</version>
|
<version>3.14</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>
|
||||||
@ -61,7 +61,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>2026-02-11</update_date>
|
<update_date>2025-12-15</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