diff --git a/CenRa_AUTOMAP/canvas_editor.py b/CenRa_AUTOMAP/canvas_editor.py index 40c28cd7..0fb03177 100644 --- a/CenRa_AUTOMAP/canvas_editor.py +++ b/CenRa_AUTOMAP/canvas_editor.py @@ -124,6 +124,7 @@ class AutoMap_Editor(QDialog, EDITOR_CLASS): path = path+'/'+i self.tabWidget.setStyleSheet('background-image: url('+path+'/tools/bg/Capture.png);') + self.verticalScrollBar.hide() self.commandLinkButton.clicked.connect(self.chargement_qpt) self.radioButton_9.clicked.connect(self.statu_atlas) self.radioButton_10.clicked.connect(self.statu_source) @@ -134,6 +135,7 @@ class AutoMap_Editor(QDialog, EDITOR_CLASS): self.commandLinkButton_2.clicked.connect(self.load_ortho) self.commandLinkButton_3.clicked.connect(self.load_osm) self.CustomeLogo.clicked.connect(self.deflogoteck) + self.verticalScrollBar.valueChanged.connect(self.moveFrame) ## On ajoute le nom des templates à la liste déroulante de l'onglet "mises en page" : mises_en_page = [] @@ -193,6 +195,14 @@ class AutoMap_Editor(QDialog, EDITOR_CLASS): self.hide_source() self.hide_atlas() + def wheelEvent(self,event): + if (event.angleDelta().y() >= 1): + vsb = self.verticalScrollBar.value()+20 + else: + vsb = self.verticalScrollBar.value()-20 + self.verticalScrollBar.setValue(vsb) + def moveFrame(self): + self.frame.move(self.frame.x(),self.verticalScrollBar.value()) def update_logo_library(self): self.mComboBox_4.clear() logo_library = [] diff --git a/CenRa_AUTOMAP/metadata.txt b/CenRa_AUTOMAP/metadata.txt index 0732ade8..cfc2a204 100644 --- a/CenRa_AUTOMAP/metadata.txt +++ b/CenRa_AUTOMAP/metadata.txt @@ -6,7 +6,7 @@ name=CenRa_AutoMap qgisMinimumVersion=3.0 description=CenRa_AutoMap -version=1.2 +version=1.3 author=Conservatoire d'Espaces Naturels de Rhône-Alpes email=si_besoin@cen-rhonealpes.fr @@ -21,7 +21,7 @@ tracker=https://gitea.cenra-outils.org/api/v1/repos/CEN-RA/Plugin_QGIS/issues hasProcessingProvider=no # Uncomment the following line and add your changelog: -changelog=

CenRa_AutoMap:


25/02/2025 - Version 1.2:

- DockWidget pour ouverture de couche avec theme.


28/01/2025 - Version 1.1:

- Multi-Composeur pris en charge.


27/01/2025 - Version 1.0:

- Version releases.
- Ajoute un message d'avertissement au moment d'écraser la mise en page.
- Ajoute prénom et nom dans la réalisation.
- Utilisation de Calibri.


13/01/2025 - Version 0.1.10:

- Correctif.


07/01/2025 - Version 0.1.9:

- ByPass du certif ssl ci erreur.


19/12/2024 - Version 0.1.8:

- Nouvelle mise en page.
- Incrémentation automatique de nouveau modele de mise en page.
- Correctif de bug.


21/10/2024 - Version 0.1.7:

- Epurations du code.


07/10/2024 - Version 0.1.6:

- Option de bibliotheque de logo custome.


03/10/2024 - Version 0.1.5:

- Remonte la fênetre dans la pille.
- Gestion du nombre de colonne dans la légend.


02/10/2024 - Version 0.1.4:

- Mise en page plein écrant.


01/10/2024 - Version 0.1.3:

- Récupération du titre et sous-titre pour mise en page existente.
- Integration de bibliotheque de logo.
- Integration de gestionaire pour les source de donnée.
- Mise en place d'une bar d'echelle adaptative.


30/09/2024 - Version 0.1.2:

- Activation du thème.
- Ajouter une carte de suivie.


27/09/2024 - Version 0.1.1:

- Ajout d'une liste déroulante pour les sources de données.
- Bouton pour ajouter des fonts de carte customisés.
- Fonctionnalité de génération d'atlas.


26/09/2024 - Version 0.1.0:

- Lancement du plugin CenRa_AutoMap avec une seul mise en page.


+changelog=

CenRa_AutoMap:


20/03/2025 - Version 1.3:

- Fenêtre redimensionnable avec déplaçable avec la mollette sourit.


25/02/2025 - Version 1.2:

- DockWidget pour ouverture de couche avec theme.


28/01/2025 - Version 1.1:

- Multi-Composeur pris en charge.


27/01/2025 - Version 1.0:

- Version releases.
- Ajoute un message d'avertissement au moment d'écraser la mise en page.
- Ajoute prénom et nom dans la réalisation.
- Utilisation de Calibri.


13/01/2025 - Version 0.1.10:

- Correctif.


07/01/2025 - Version 0.1.9:

- ByPass du certif ssl ci erreur.


19/12/2024 - Version 0.1.8:

- Nouvelle mise en page.
- Incrémentation automatique de nouveau modele de mise en page.
- Correctif de bug.


21/10/2024 - Version 0.1.7:

- Epurations du code.


07/10/2024 - Version 0.1.6:

- Option de bibliotheque de logo custome.


03/10/2024 - Version 0.1.5:

- Remonte la fênetre dans la pille.
- Gestion du nombre de colonne dans la légend.


02/10/2024 - Version 0.1.4:

- Mise en page plein écrant.


01/10/2024 - Version 0.1.3:

- Récupération du titre et sous-titre pour mise en page existente.
- Integration de bibliotheque de logo.
- Integration de gestionaire pour les source de donnée.
- Mise en place d'une bar d'echelle adaptative.


30/09/2024 - Version 0.1.2:

- Activation du thème.
- Ajouter une carte de suivie.


27/09/2024 - Version 0.1.1:

- Ajout d'une liste déroulante pour les sources de données.
- Bouton pour ajouter des fonts de carte customisés.
- Fonctionnalité de génération d'atlas.


26/09/2024 - Version 0.1.0:

- Lancement du plugin CenRa_AutoMap avec une seul mise en page.


# Tags are comma separated with spaces allowed tags=python diff --git a/CenRa_AUTOMAP/tools/ui/CenRa_AutoMap_base.ui b/CenRa_AUTOMAP/tools/ui/CenRa_AutoMap_base.ui index 5a2a8c24..3bf6fef7 100644 --- a/CenRa_AUTOMAP/tools/ui/CenRa_AutoMap_base.ui +++ b/CenRa_AUTOMAP/tools/ui/CenRa_AutoMap_base.ui @@ -6,8 +6,8 @@ 0 0 - 1150 - 680 + 1144 + 765 @@ -51,732 +51,6 @@ Liste de templates existants - - - - 680 - 350 - 141 - 41 - - - - QGroupBox#groupBox_6{background-color: rgb(255, 255, 255, 170);} - - - - - - - - 0 - 0 - 141 - 41 - - - - - Segoe UI - 10 - - - - background-color: qconicalgradient(cx:0, cy:0, angle:135, stop:0 rgba(255, 255, 0, 69), stop:0.375 rgba(255, 255, 0, 69), stop:0.423533 rgba(251, 255, 0, 145), stop:0.45 rgba(247, 255, 0, 208), stop:0.477581 rgba(255, 244, 71, 130), stop:0.518717 rgba(255, 218, 71, 130), stop:0.55 rgba(255, 255, 0, 255), stop:0.57754 rgba(255, 203, 0, 130), stop:0.625 rgba(255, 255, 0, 69), stop:1 rgba(255, 255, 0, 69)); - - - Mise en page - - - - - - - 20 - 50 - 391 - 631 - - - - - 75 - true - - - - QGroupBox#groupBox_7{background-color: rgb(255, 255, 255, 170);} - - - - - - - - 30 - 20 - 251 - 21 - - - - - 75 - true - true - - - - color: rgb(11, 11, 11); - - - Sélectionner un template de mise en page : - - - - - - 30 - 40 - 331 - 22 - - - - false - - - - - - QComboBox::InsertAlphabetically - - - - - - - - - - true - - - - 90 - 200 - 211 - 21 - - - - Titre à renseigner ici - - - Qt::AlignCenter - - - false - - - true - - - - - - 30 - 180 - 91 - 21 - - - - - 50 - false - true - - - - color: rgb(11, 11, 11); - - - Titre de la carte : - - - - - true - - - - 90 - 290 - 211 - 21 - - - - Sous-titre à renseigner ici - - - Qt::AlignCenter - - - false - - - true - - - - - - 30 - 270 - 111 - 21 - - - - - 50 - false - true - - - - color: rgb(11, 11, 11); - - - Sous-titre de la carte : - - - - - - 30 - 360 - 111 - 21 - - - - - 50 - false - true - - - - color: rgb(11, 11, 11); - - - Source des données : - - - - - true - - - - 90 - 380 - 211 - 21 - - - - à renseigner ici - - - Qt::AlignCenter - - - false - - - true - - - - - - 40 - 490 - 290 - 20 - - - - - 290 - 20 - - - - - 310 - 20 - - - - - - - - - - 15 - - - QComboBox::AdjustToContents - - - - - - - - - 30 - 470 - 161 - 21 - - - - - 50 - false - true - - - - color: rgb(11, 11, 11); - - - Eléments à intégrer à la légende : - - - - - - 40 - 80 - 261 - 31 - - - - - - - - 7 - 75 - true - false - - - - Format : - - - - - - - - 7 - - - - A4 - - - - 16 - 16 - - - - true - - - - - - - - 7 - - - - A3 - - - - - - - - - 40 - 110 - 261 - 31 - - - - - - - - 7 - 75 - true - false - - - - Orientation : - - - - - - - - 7 - - - - Portrait - - - - 16 - 16 - - - - true - - - - - - - - 7 - - - - Paysage - - - - - - - - - 270 - 590 - 82 - 15 - - - - - 7 - - - - Atlas - - - - - - 140 - 410 - 121 - 16 - - - - - 7 - - - - Utilisez le gestionnaire - - - - - - 40 - 380 - 310 - 20 - - - - - 310 - 20 - - - - - 310 - 20 - - - - - - - Qt::ImhNone - - - - - - 15 - - - QComboBox::AdjustToContents - - - - - - - - - 110 - 150 - 181 - 16 - - - - - 7 - - - - Theme et suivie de positionnement - - - - - - 130 - 230 - 121 - 16 - - - - - 7 - - - - Mise en page existante - - - - - - 90 - 200 - 211 - 22 - - - - false - - - - - - QComboBox::InsertAlphabetically - - - - - - - - - - - 40 - 550 - 310 - 20 - - - - - 310 - 20 - - - - - 310 - 20 - - - - - - - - - - 15 - - - QComboBox::AdjustToContents - - - - - - - - - 30 - 530 - 111 - 21 - - - - - 50 - false - true - - - - color: rgb(11, 11, 11); - - - Bibliotheque de logo : - - - - - - 340 - 490 - 42 - 21 - - - - 1 - - - 10 - - - - - - 30 - 580 - 111 - 23 - - - - Custom Bibliotheque - - - - - - 50 - 440 - 121 - 21 - - - - - 7 - - - - Prénom Nom - - - true - - - - - true - - - - 140 - 440 - 201 - 21 - - - - - - - Qt::AlignCenter - - - false - - - true - - - label_14 - label_8 - label_7 - label_15 - label_6 - label_4 - comboBox_7 - comboBox - horizontalLayoutWidget - horizontalLayoutWidget_2 - radioButton_9 - radioButton_10 - radioButton_11 - radioButton_13 - spinBox - CustomeLogo - mComboBox_3 - mComboBox_4 - mComboBox_2 - lineEdit_3 - lineEdit_4 - lineEdit_2 - radioButton_14 - lineEdit_5 - @@ -793,360 +67,1118 @@ true - + - 430 - 500 - 411 - 201 + 1120 + 9 + 20 + 741 - - QGroupBox#groupBox{background-color: rgb(255, 255, 255, 170);} + + -500 - - + + 0 + + + Qt::Vertical + + + true - - - - 40 - 160 - 331 - 22 - - - - false - - - - - - QComboBox::InsertAlphabetically - - - - - - - - - - - 30 - 140 - 111 - 21 - - - - - 50 - false - true - - - - color: rgb(11, 11, 11); - - - Colonne de sous-titre : - - - - - - 30 - 80 - 121 - 21 - - - - - 50 - false - true - - - - color: rgb(11, 11, 11); - - - Colonne d'identification : - - - - - - 40 - 100 - 331 - 22 - - - - false - - - - - - QComboBox::InsertAlphabetically - - - - - - - - - - - 40 - 40 - 331 - 22 - - - - false - - - - - - QComboBox::InsertAlphabetically - - - - - - - - - - - 30 - 20 - 91 - 21 - - - - - 50 - false - true - - - - color: rgb(11, 11, 11); - - - Couche de suivie : - - - + - 970 - 10 - 161 - 111 + 0 + 0 + 1141 + 761 - - QGroupBox#groupBox_2{background-color: rgb(255, 255, 255, 170);} - - + - 10 - 60 - 141 - 41 - - - - - Segoe UI - 10 - - - - background-color: qconicalgradient(cx:0, cy:0, angle:135, stop:0 rgba(255, 255, 0, 69), stop:0.375 rgba(255, 255, 0, 69), stop:0.423533 rgba(251, 255, 0, 145), stop:0.45 rgba(247, 255, 0, 208), stop:0.477581 rgba(255, 244, 71, 130), stop:0.518717 rgba(255, 218, 71, 130), stop:0.55 rgba(255, 255, 0, 255), stop:0.57754 rgba(255, 203, 0, 130), stop:0.625 rgba(255, 255, 0, 69), stop:1 rgba(255, 255, 0, 69)); - - - OpenStreetMap - - - - - - 10 + 950 10 + 161 + 111 + + + + QGroupBox#groupBox_2{background-color: rgb(255, 255, 255, 170);} + + + + + + + + 10 + 60 + 141 + 41 + + + + + Segoe UI + 10 + + + + background-color: qconicalgradient(cx:0, cy:0, angle:135, stop:0 rgba(255, 255, 0, 69), stop:0.375 rgba(255, 255, 0, 69), stop:0.423533 rgba(251, 255, 0, 145), stop:0.45 rgba(247, 255, 0, 208), stop:0.477581 rgba(255, 244, 71, 130), stop:0.518717 rgba(255, 218, 71, 130), stop:0.55 rgba(255, 255, 0, 255), stop:0.57754 rgba(255, 203, 0, 130), stop:0.625 rgba(255, 255, 0, 69), stop:1 rgba(255, 255, 0, 69)); + + + OpenStreetMap + + + + + + 10 + 10 + 141 + 41 + + + + + Segoe UI + 10 + + + + false + + + background-color: qconicalgradient(cx:0, cy:0, angle:135, stop:0 rgba(255, 255, 0, 69), stop:0.375 rgba(255, 255, 0, 69), stop:0.423533 rgba(251, 255, 0, 145), stop:0.45 rgba(247, 255, 0, 208), stop:0.477581 rgba(255, 244, 71, 130), stop:0.518717 rgba(255, 218, 71, 130), stop:0.55 rgba(255, 255, 0, 255), stop:0.57754 rgba(255, 203, 0, 130), stop:0.625 rgba(255, 255, 0, 69), stop:1 rgba(255, 255, 0, 69)); + + + Ortho + + + + + + + 20 + 50 + 391 + 631 + + + + + 75 + true + + + + QGroupBox#groupBox_7{background-color: rgb(255, 255, 255, 170);} + + + + + + + + 30 + 20 + 251 + 21 + + + + + 75 + true + true + + + + color: rgb(11, 11, 11); + + + Sélectionner un template de mise en page : + + + + + + 30 + 40 + 331 + 22 + + + + false + + + + + + QComboBox::InsertAlphabetically + + + + + + + + + + true + + + + 90 + 200 + 211 + 21 + + + + Titre à renseigner ici + + + Qt::AlignCenter + + + false + + + true + + + + + + 30 + 180 + 91 + 21 + + + + + 50 + false + true + + + + color: rgb(11, 11, 11); + + + Titre de la carte : + + + + + true + + + + 90 + 290 + 211 + 21 + + + + Sous-titre à renseigner ici + + + Qt::AlignCenter + + + false + + + true + + + + + + 30 + 270 + 111 + 21 + + + + + 50 + false + true + + + + color: rgb(11, 11, 11); + + + Sous-titre de la carte : + + + + + + 30 + 360 + 111 + 21 + + + + + 50 + false + true + + + + color: rgb(11, 11, 11); + + + Source des données : + + + + + true + + + + 90 + 380 + 211 + 21 + + + + à renseigner ici + + + Qt::AlignCenter + + + false + + + true + + + + + + 40 + 490 + 290 + 20 + + + + + 290 + 20 + + + + + 310 + 20 + + + + + + + + + + 15 + + + QComboBox::AdjustToContents + + + + + + + + + 30 + 470 + 161 + 21 + + + + + 50 + false + true + + + + color: rgb(11, 11, 11); + + + Eléments à intégrer à la légende : + + + + + + 40 + 80 + 261 + 31 + + + + + + + + 7 + 75 + true + false + + + + Format : + + + + + + + + 7 + + + + A4 + + + + 16 + 16 + + + + true + + + + + + + + 7 + + + + A3 + + + + + + + + + 40 + 110 + 261 + 31 + + + + + + + + 7 + 75 + true + false + + + + Orientation : + + + + + + + + 7 + + + + Portrait + + + + 16 + 16 + + + + true + + + + + + + + 7 + + + + Paysage + + + + + + + + + 270 + 590 + 82 + 15 + + + + + 7 + + + + Atlas + + + + + + 140 + 410 + 121 + 16 + + + + + 7 + + + + Utilisez le gestionnaire + + + + + + 40 + 380 + 310 + 20 + + + + + 310 + 20 + + + + + 310 + 20 + + + + + + + Qt::ImhNone + + + + + + 15 + + + QComboBox::AdjustToContents + + + + + + + + + 110 + 150 + 181 + 16 + + + + + 7 + + + + Theme et suivie de positionnement + + + + + + 130 + 230 + 121 + 16 + + + + + 7 + + + + Mise en page existante + + + + + + 90 + 200 + 211 + 22 + + + + false + + + + + + QComboBox::InsertAlphabetically + + + + + + + + + + + 40 + 550 + 310 + 20 + + + + + 310 + 20 + + + + + 310 + 20 + + + + + + + + + + 15 + + + QComboBox::AdjustToContents + + + + + + + + + 30 + 530 + 111 + 21 + + + + + 50 + false + true + + + + color: rgb(11, 11, 11); + + + Bibliotheque de logo : + + + + + + 340 + 490 + 42 + 21 + + + + 1 + + + 10 + + + + + + 30 + 580 + 111 + 23 + + + + Custom Bibliotheque + + + + + + 50 + 440 + 121 + 21 + + + + + 7 + + + + Prénom Nom + + + true + + + + + true + + + + 140 + 440 + 201 + 21 + + + + + + + Qt::AlignCenter + + + false + + + true + + + label_14 + label_8 + label_7 + label_15 + label_6 + label_4 + comboBox_7 + comboBox + horizontalLayoutWidget + horizontalLayoutWidget_2 + radioButton_9 + radioButton_10 + radioButton_11 + radioButton_13 + spinBox + CustomeLogo + mComboBox_3 + mComboBox_4 + mComboBox_2 + lineEdit_3 + lineEdit_4 + lineEdit_2 + radioButton_14 + lineEdit_5 + + + + + 430 + 500 + 411 + 201 + + + + QGroupBox#groupBox{background-color: rgb(255, 255, 255, 170);} + + + + + + + + 40 + 160 + 331 + 22 + + + + false + + + + + + QComboBox::InsertAlphabetically + + + + + + + + + + + 30 + 140 + 111 + 21 + + + + + 50 + false + true + + + + color: rgb(11, 11, 11); + + + Colonne de sous-titre : + + + + + + 30 + 80 + 121 + 21 + + + + + 50 + false + true + + + + color: rgb(11, 11, 11); + + + Colonne d'identification : + + + + + + 40 + 100 + 331 + 22 + + + + false + + + + + + QComboBox::InsertAlphabetically + + + + + + + + + + + 40 + 40 + 331 + 22 + + + + false + + + + + + QComboBox::InsertAlphabetically + + + + + + + + + + + 30 + 20 + 91 + 21 + + + + + 50 + false + true + + + + color: rgb(11, 11, 11); + + + Couche de suivie : + + + + + + + 430 + 110 + 251 + 161 + + + + QGroupBox#groupBox_3{background-color: rgb(255, 255, 255, 170);} + + + + + + + + 20 + 40 + 211 + 22 + + + + false + + + + + + QComboBox::InsertAlphabetically + + + + + + + + + + + 10 + 20 + 91 + 21 + + + + + 50 + false + true + + + + color: rgb(11, 11, 11); + + + Théme principal : + + + + + + 10 + 80 + 91 + 21 + + + + + 50 + false + true + + + + color: rgb(11, 11, 11); + + + Théme de suivie : + + + + + + 80 + 130 + 181 + 16 + + + + + 7 + + + + Activé le suivie + + + + + + 20 + 100 + 211 + 22 + + + + false + + + + + + QComboBox::InsertAlphabetically + + + + + + + + + + + + 680 + 350 141 41 - - - Segoe UI - 10 - - - - false - - background-color: qconicalgradient(cx:0, cy:0, angle:135, stop:0 rgba(255, 255, 0, 69), stop:0.375 rgba(255, 255, 0, 69), stop:0.423533 rgba(251, 255, 0, 145), stop:0.45 rgba(247, 255, 0, 208), stop:0.477581 rgba(255, 244, 71, 130), stop:0.518717 rgba(255, 218, 71, 130), stop:0.55 rgba(255, 255, 0, 255), stop:0.57754 rgba(255, 203, 0, 130), stop:0.625 rgba(255, 255, 0, 69), stop:1 rgba(255, 255, 0, 69)); + QGroupBox#groupBox_6{background-color: rgb(255, 255, 255, 170);} - - Ortho + + + + + + 0 + 0 + 141 + 41 + + + + + Segoe UI + 10 + + + + background-color: qconicalgradient(cx:0, cy:0, angle:135, stop:0 rgba(255, 255, 0, 69), stop:0.375 rgba(255, 255, 0, 69), stop:0.423533 rgba(251, 255, 0, 145), stop:0.45 rgba(247, 255, 0, 208), stop:0.477581 rgba(255, 244, 71, 130), stop:0.518717 rgba(255, 218, 71, 130), stop:0.55 rgba(255, 255, 0, 255), stop:0.57754 rgba(255, 203, 0, 130), stop:0.625 rgba(255, 255, 0, 69), stop:1 rgba(255, 255, 0, 69)); + + + Mise en page + + - - - - 430 - 110 - 251 - 161 - - - - QGroupBox#groupBox_3{background-color: rgb(255, 255, 255, 170);} - - - - - - - - 20 - 40 - 211 - 22 - - - - false - - - - - - QComboBox::InsertAlphabetically - - - - - - - - - - - 10 - 20 - 91 - 21 - - - - - 50 - false - true - - - - color: rgb(11, 11, 11); - - - Théme principal : - - - - - - 10 - 80 - 91 - 21 - - - - - 50 - false - true - - - - color: rgb(11, 11, 11); - - - Théme de suivie : - - - - - - 80 - 130 - 181 - 16 - - - - - 7 - - - - Activé le suivie - - - - - - 20 - 100 - 211 - 22 - - - - false - - - - - - QComboBox::InsertAlphabetically - - - - - - - - - groupBox - groupBox_6 - groupBox_7 + frame label_5 - groupBox_2 - groupBox_3 + verticalScrollBar diff --git a/plugins.xml b/plugins.xml index c2fa38cb..4f3b9914 100644 --- a/plugins.xml +++ b/plugins.xml @@ -85,9 +85,9 @@ cenra,metabase - + - 1.2 + 1.3 3.16 https://plateformesig.cenra-outils.org/ CenRa_AUTOMAP.zip @@ -96,7 +96,7 @@ https://gitea.cenra-outils.org/CEN-RA/Plugin_QGIS/releases/download/latest/CenRa_AUTOMAP.zip CEN-Rhone-Alpes 2024-09-25 - 2025-02-25 + 2025-03-20 False False cenra,mise en page,atlas