From 785b83c9c54b06b458141b7017862e119ad860f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Sp=C3=A1=C4=8Dil?= Date: Fri, 5 Jun 2026 10:45:32 +0200 Subject: [PATCH] =?UTF-8?q?p=C5=99id=C3=A1na=20varovn=C3=A1=20hl=C3=A1?= =?UTF-8?q?=C5=A1ka=20do=20amcr=5Fdialog=20(#44)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- amcr_viewer/amcr_dialog.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/amcr_viewer/amcr_dialog.py b/amcr_viewer/amcr_dialog.py index 8c14455..a91cc0a 100644 --- a/amcr_viewer/amcr_dialog.py +++ b/amcr_viewer/amcr_dialog.py @@ -263,6 +263,24 @@ class AmcrFilterDialog(QDialog): self.chk_komponenty = QCheckBox("Načíst komponenty") layout.addWidget(self.chk_komponenty) + # Warning label + self.lbl_komponenty_warning = QLabel( + "⚠ Při načtení komponent jsou prostorové prvky duplikovány — " + "každý prvek odpovídá jedné komponentě. " + "Prostorové analýzy (plochy, počty) mohou být zkreslené." + ) + self.lbl_komponenty_warning.setWordWrap(True) + self.lbl_komponenty_warning.setStyleSheet( + "color: #8a6d00; background-color: #fff8e1; " + "border: 1px solid #ffe082; border-radius: 4px; padding: 6px;" + ) + self.lbl_komponenty_warning.setVisible(False) + layout.addWidget(self.lbl_komponenty_warning) + + self.chk_komponenty.toggled.connect( + self.lbl_komponenty_warning.setVisible + ) + # Pushes everything above to the top layout.addStretch(1)