Skip to content

Commit

Permalink
Merge pull request #153 from geotribu/ui/move-actions-to-help-menu
Browse files Browse the repository at this point in the history
ui: regroupe les liens vers les sites FR de référence dans le menu Aide de QGIS
  • Loading branch information
Guts authored Mar 12, 2024
2 parents 0a85f91 + c8d72b2 commit 5404561
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions qtribu/plugin_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,42 +112,40 @@ def initGui(self):

# -- Help menu
self.iface.helpMenu().addSeparator()
self.action_georezo = QAction(
QIcon(str(DIR_PLUGIN_ROOT / "resources/images/georezo.png")),
self.tr("QGIS forum on GeoRezo"),
self.action_geotribu = QAction(
QIcon(str(__icon_path__)),
self.tr("Geotribu website"),
)
self.action_georezo.triggered.connect(
self.action_geotribu.triggered.connect(
partial(
QDesktopServices.openUrl,
QUrl("https://georezo.net/forum/viewforum.php?id=55"),
QUrl("https://geotribu.fr"),
)
)
self.iface.helpMenu().addAction(self.action_georezo)

self.action_geotribu = QAction(
QIcon(str(__icon_path__)),
self.tr("Geotribu website"),
self.action_georezo = QAction(
QIcon(str(DIR_PLUGIN_ROOT / "resources/images/georezo.png")),
self.tr("QGIS forum on GeoRezo"),
)
self.action_geotribu.triggered.connect(
self.action_georezo.triggered.connect(
partial(
QDesktopServices.openUrl,
QUrl("http://geotribu.fr"),
QUrl("https://georezo.net/forum/viewforum.php?id=55"),
)
)
self.iface.helpMenu().addAction(self.action_geotribu)

self.action_osgeofr = QAction(
QIcon(str(DIR_PLUGIN_ROOT / "resources/images/osgeo.svg")),
self.tr("OSGeo France"),
)
self.action_osgeofr.triggered.connect(
partial(
QDesktopServices.openUrl,
QUrl("https://www.osgeo.asso.fr/"),
QUrl("https://www.osgeo.fr/"),
)
)

self.iface.pluginHelpMenu().addAction(self.action_osgeofr)
self.iface.helpMenu().addAction(self.action_georezo)
self.iface.helpMenu().addAction(self.action_geotribu)
self.iface.helpMenu().addAction(self.action_osgeofr)

# -- Toolbar
self.iface.addToolBarIcon(self.action_run)
Expand Down

0 comments on commit 5404561

Please sign in to comment.