Template
forked from CEN-RA/Plugin_QGIS
fix bug
This commit is contained in:
@@ -72,6 +72,7 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
||||
|
||||
self.tableWidget.setSelectionBehavior(QTableWidget.SelectRows)
|
||||
self.tableWidget.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
|
||||
self.toolButton.setIcon(QtGui.QIcon(resources_path('ui','find.png')))
|
||||
self.comboBox_2.addItem("SIG")
|
||||
self.comboBox_2.addItem('REF')
|
||||
self.comboBox.currentIndexChanged.connect(self.initialisation_flux)
|
||||
@@ -81,6 +82,7 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
||||
self.commandLinkButton_2.clicked.connect(self.suppression_flux)
|
||||
self.tableWidget_2.itemDoubleClicked.connect(self.suppression_flux)
|
||||
self.comboBox_2.currentIndexChanged.connect(self.bd_source)
|
||||
self.toolButton.clicked.connect(self.getCanevas)
|
||||
layout = QVBoxLayout()
|
||||
self.lineEdit.textChanged.connect(self.filtre_dynamique)
|
||||
layout.addWidget(self.lineEdit)
|
||||
@@ -356,6 +358,20 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
||||
if not match:
|
||||
break
|
||||
|
||||
def getCanevas(self):
|
||||
print(iface.mapCanvas().extent())
|
||||
# SQL_EXTENT = ''
|
||||
# SQL_GEOM = "SELECT f_table_schema,f_table_name FROM geometry_columns WHERE f_geometry_column = 'geom'"
|
||||
# cur.execute(SQL_GEOM)
|
||||
# TableHaveGeom = cur.fetchall()
|
||||
# for e in TableHaveGeom:
|
||||
# SchemaName = e[0]
|
||||
# TableName = e[1]
|
||||
# if SchemaName[0:5] != '_form':
|
||||
# if SchemaName[0:4] == '_01_' or SchemaName[0:4] == '_42_' or SchemaName[0:4] == '_69_':
|
||||
# SQL_EXTENT=SQL_EXTENT+"SELECT st_envelope(st_union(geom)),'"+TableName+"' AS table_name FROM "+'"'+SchemaName+'"."'+TableName+'"'+' UNION ALL '
|
||||
# SQL_EXTENT = SQL_EXTENT[:-11]
|
||||
# print(SQL_EXTENT)
|
||||
def popup(self):
|
||||
|
||||
self.dialog = Popup() # +++ - self
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>Dialog</class>
|
||||
<resources>
|
||||
</resources>
|
||||
<widget class="QDialog" name="Dialog">
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
@@ -65,8 +63,8 @@
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>350</x>
|
||||
<y>20</y>
|
||||
<x>345</x>
|
||||
<y>10</y>
|
||||
<width>221</width>
|
||||
<height>71</height>
|
||||
</rect>
|
||||
@@ -75,7 +73,7 @@
|
||||
<string/>
|
||||
</property>
|
||||
<property name="pixmap">
|
||||
<pixmap resource="resources.qrc">:/plugins/CenRa_FLUX/logo.jpg</pixmap>
|
||||
<pixmap>:/plugins/CenRa_FLUX/logo.jpg</pixmap>
|
||||
</property>
|
||||
<property name="scaledContents">
|
||||
<bool>true</bool>
|
||||
@@ -139,7 +137,7 @@
|
||||
<string/>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/plugins/CenRa_FLUX/arrow-bottom.png</normaloff>:/plugins/CenRa_FLUX/arrow-bottom.png</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
@@ -162,7 +160,7 @@
|
||||
<string/>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<iconset>
|
||||
<normaloff>:/plugins/CenRa_FLUX/arrow-up.png</normaloff>:/plugins/CenRa_FLUX/arrow-up.png</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
@@ -237,6 +235,18 @@
|
||||
<string>Flux sélectionné(s) à charger :</string>
|
||||
</property>
|
||||
</widget>
|
||||
<zorder>label_3</zorder>
|
||||
<zorder>comboBox</zorder>
|
||||
<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>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
||||
@@ -235,6 +235,19 @@
|
||||
<string>Flux sélectionné(s) à charger :</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QToolButton" name="toolButton">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>670</x>
|
||||
<y>130</y>
|
||||
<width>21</width>
|
||||
<height>21</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
<zorder>label_3</zorder>
|
||||
<zorder>comboBox</zorder>
|
||||
<zorder>comboBox_2</zorder>
|
||||
@@ -246,6 +259,7 @@
|
||||
<zorder>lineEdit</zorder>
|
||||
<zorder>label</zorder>
|
||||
<zorder>label_2</zorder>
|
||||
<zorder>toolButton</zorder>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
|
||||
Reference in New Issue
Block a user