Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finaliser l'entrée du menu contextuel "Plateforms" #81

Open
bchartier opened this issue Aug 17, 2024 · 0 comments
Open

Finaliser l'entrée du menu contextuel "Plateforms" #81

bchartier opened this issue Aug 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@bchartier
Copy link
Collaborator

Finaliser le développement de cette fonction :

def menus(self, parent):
menu = QMenu(title=self.tr("Plateforms"), parent=parent)
menu.setEnabled(False) # dev
for pf, checked in zip(
["DataGrandEst", "GeoBretagne", "Geo2France", "Indigeo"],
[True, False, True, False],
): # pour maquette TODO boucler sur une variable de conf
action = QAction(pf, menu, checkable=True)
action.setChecked(checked)
menu.addAction(
action
) # TODO l'action permet d'activer/désactiver une plateforme. La désactivation supprime le DataCollectionItem et désactive le download du fichier de conf
menu.addSeparator()
menu.addAction(
QAction(
self.tr("Add URL"),
menu,
)
) # TODO Liens vers le panneau Options de QGIS
return [menu]

@bchartier bchartier added the enhancement New feature or request label Aug 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant