Template
forked from CEN-RA/Plugin_QGIS
correctif et ajout de fonctionnaliter
This commit is contained in:
@@ -64,6 +64,12 @@ class Metabase_Editor(QDialog, EDITOR_CLASS):
|
||||
self.issues_app.setAutoRaise(True)
|
||||
self.issues_app.setText('')
|
||||
self.issues_app.setIcon(QIcon(QgsApplication.iconPath('mIconInfo.svg')))
|
||||
self.auto_adding.setIcon(QtGui.QIcon(resources_path('icons','auto_add.png')))
|
||||
self.auto_adding.hide()
|
||||
if os.getlogin() == 'tlaveille' or 'lpoulin' or 'rclement':
|
||||
self.auto_adding.show()
|
||||
|
||||
self.auto_adding.clicked.connect(self.auto_run)
|
||||
self.issues_app.clicked.connect(self.issues_open)
|
||||
self.categories_select_view.itemDoubleClicked.connect(self.add_categories_view)
|
||||
self.categories_view.itemDoubleClicked.connect(self.deleter_categories_view)
|
||||
@@ -78,6 +84,20 @@ class Metabase_Editor(QDialog, EDITOR_CLASS):
|
||||
self.delete_lien_button.clicked.connect(self.delete_lien)
|
||||
self.delete_contact_button.clicked.connect(self.delete_contact)
|
||||
|
||||
def auto_run(self):
|
||||
self.role_box.setCurrentIndex(1)
|
||||
self.nom_line.setText('LAVEILLE')
|
||||
self.organisation_box.setCurrentIndex(1)
|
||||
self.email_line.setText('tom.laveille@cen-rhonealpes.fr')
|
||||
self.telephone_line.setText('0451260811')
|
||||
self.add_contact()
|
||||
|
||||
self.type_box.setCurrentIndex(16)
|
||||
self.url_line.setText('www.cen-rhonealpes.fr')
|
||||
self.mime_box.setCurrentIndex(16)
|
||||
self.format_box.setCurrentIndex(0)
|
||||
self.taille_line.setText('45')
|
||||
self.add_lien()
|
||||
def add_metadata(self):
|
||||
table_name = layer.dataProvider().uri().table()
|
||||
schema_name = layer.dataProvider().uri().schema()
|
||||
@@ -363,7 +383,6 @@ class Metabase_Editor(QDialog, EDITOR_CLASS):
|
||||
|
||||
self.nbr_layers.setPlainText(count_layers)
|
||||
self.typegeom_plaintext.setPlainText(geomtype)
|
||||
|
||||
crs_name = str(layer.crs().description())
|
||||
self.crsname_plaintext.setPlainText(crs_name)
|
||||
crs_code = str(layer.crs().authid())
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 41 KiB |
@@ -101,9 +101,9 @@
|
||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
|
||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>
|
||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html></string>
|
||||
</style></head><body style=" font-family:'Myriad Pro Black'; font-size:10pt; font-weight:600; font-style:normal;">
|
||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400;"><br /></p>
|
||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400;"><br /></p></body></html></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -365,7 +365,7 @@ p, li { white-space: pre-wrap; }
|
||||
<date>
|
||||
<year>2024</year>
|
||||
<month>12</month>
|
||||
<day>25</day>
|
||||
<day>24</day>
|
||||
</date>
|
||||
</property>
|
||||
<property name="currentSection">
|
||||
@@ -830,7 +830,7 @@ p, li { white-space: pre-wrap; }
|
||||
<date>
|
||||
<year>2024</year>
|
||||
<month>12</month>
|
||||
<day>23</day>
|
||||
<day>22</day>
|
||||
</date>
|
||||
</property>
|
||||
<property name="currentSection">
|
||||
@@ -1582,7 +1582,7 @@ p, li { white-space: pre-wrap; }
|
||||
<date>
|
||||
<year>2024</year>
|
||||
<month>12</month>
|
||||
<day>24</day>
|
||||
<day>23</day>
|
||||
</date>
|
||||
</property>
|
||||
<property name="currentSection">
|
||||
@@ -1681,7 +1681,7 @@ p, li { white-space: pre-wrap; }
|
||||
<date>
|
||||
<year>2024</year>
|
||||
<month>12</month>
|
||||
<day>24</day>
|
||||
<day>23</day>
|
||||
</date>
|
||||
</property>
|
||||
<property name="currentSection">
|
||||
@@ -1879,6 +1879,31 @@ p, li { white-space: pre-wrap; }
|
||||
<enum>Qt::NoArrow</enum>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QToolButton" name="auto_adding">
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>550</x>
|
||||
<y>10</y>
|
||||
<width>41</width>
|
||||
<height>41</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string notr="true">...</string>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>32</width>
|
||||
<height>32</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="arrowType">
|
||||
<enum>Qt::NoArrow</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<tabstops>
|
||||
<tabstop>titre_line</tabstop>
|
||||
|
||||
Reference in New Issue
Block a user