feature: dialog: přidána nová pole

přidána pole samostatných nálezů pro filtrovací dialog + upravena viditelnost některých spolčných polí (např. skrýt areál, zobrazit organizaci nejen pro akce, ale i pro PAS, ...)
This commit is contained in:
2026-06-29 13:39:44 +02:00
parent 7ea2a99ada
commit a95831f180
+40 -1
View File
@@ -218,7 +218,7 @@ class AmcrFilterDialog(QDialog):
# Filters valid for Akce # Filters valid for Akce
if self.typ_dat == "akce": if self.typ_dat in ["pas", "akce"]:
self.picker_org = self.setup_picker( self.picker_org = self.setup_picker(
"Organizace", "Organizace",
'organizace', 'organizace',
@@ -226,6 +226,7 @@ class AmcrFilterDialog(QDialog):
) )
layout.addWidget(self.picker_org) layout.addWidget(self.picker_org)
if self.typ_dat == "akce":
self.picker_vedouci = self.setup_picker( self.picker_vedouci = self.setup_picker(
"Vedoucí výzkumu", "Vedoucí výzkumu",
'vedouci', 'vedouci',
@@ -278,6 +279,43 @@ class AmcrFilterDialog(QDialog):
self.picker_obdobi = self.setup_picker("Období", 'obdobi', OBDOBI) self.picker_obdobi = self.setup_picker("Období", 'obdobi', OBDOBI)
layout.addWidget(self.picker_obdobi) layout.addWidget(self.picker_obdobi)
if self.typ_dat == "pas":
self.picker_nalez_kategorie = self.setup_picker(
"Kategorie nálezu",
'nalez_kategorie',
""
)
layout.addWidget(self.picker_nalez_kategorie)
self.picker_druh_nalezu = self.setup_picker(
"Druh nálezu",
'druh_nalezu',
""
)
layout.addWidget(self.picker_druh_nalezu)
self.picker_specifikace = self.setup_picker(
"Specifikace nálezu",
'specifikace',
""
)
layout.addWidget(self.picker_specifikace)
self.picker_nalezove_okolnosti = self.setup_picker(
"Okolnosti nálezu",
'nalezove_okolnosti',
""
)
layout.addWidget(self.picker_nalezove_okolnosti)
self.picker_nalezce = self.setup_picker(
"Nálezce",
'nalezce',
""
)
layout.addWidget(self.picker_nalezce)
if self.typ_dat != "pas":
self.picker_areal = self.setup_picker("Areál", 'areal', AREAL) self.picker_areal = self.setup_picker("Areál", 'areal', AREAL)
layout.addWidget(self.picker_areal) layout.addWidget(self.picker_areal)
@@ -299,6 +337,7 @@ class AmcrFilterDialog(QDialog):
self.lbl_komponenty_warning.setVisible(False) self.lbl_komponenty_warning.setVisible(False)
layout.addWidget(self.lbl_komponenty_warning) layout.addWidget(self.lbl_komponenty_warning)
if self.typ_dat != "pas":
self.chk_komponenty.toggled.connect( self.chk_komponenty.toggled.connect(
self.lbl_komponenty_warning.setVisible self.lbl_komponenty_warning.setVisible
) )