osc_generator/osc_generator.py
def add_maneuver(self):
        """
        Adds "Add Maneuvers" dock widget.
        Creates OpenSCENARIO layer group if it does not exist.
        """
        # Add temporary scratch layer to QGIS (if not yet created)
        if self._root_layer.findGroup("OpenSCENARIO") is None:
            self._root_layer.addGroup("OpenSCENARIO")

        # Load plugin
        if not self._plugin_is_active_maneuvers:
            self._plugin_is_active_maneuvers = True

            if self._dockwidget_maneuvers is None:
                self._dockwidget_maneuvers = AddManeuversDockWidget()

            self._dockwidget_maneuvers.closingPlugin.connect(self.onClosePlugin)
            self.iface.addDockWidget(Qt.RightDockWidgetArea, self._dockwidget_maneuvers)
            self._dockwidget_maneuvers.show()

        Adds "Add Maneuvers" dock widget.
        Creates OpenSCENARIO layer group if it does not exist.
        
Adds "Add Maneuvers" dock widget.
Creates OpenSCENARIO layer group if it does not exist.
Adds " Add Maneuvers " dock widget . Creates OpenSCENARIO layer group if it does not exist .
def add_maneuver(self):
        if self._root_layer.findGroup("OpenSCENARIO") is None:
            self._root_layer.addGroup("OpenSCENARIO")
        if not self._plugin_is_active_maneuvers:
            self._plugin_is_active_maneuvers = True
            if self._dockwidget_maneuvers is None:
                self._dockwidget_maneuvers = AddManeuversDockWidget()
            self._dockwidget_maneuvers.closingPlugin.connect(self.onClosePlugin)
            self.iface.addDockWidget(Qt.RightDockWidgetArea, self._dockwidget_maneuvers)
            self._dockwidget_maneuvers.show()
def add_maneuver ( self ) : if self . _root_layer . findGroup ( "OpenSCENARIO" ) is None : self . _root_layer . addGroup ( "OpenSCENARIO" ) if not self . _plugin_is_active_maneuvers : self . _plugin_is_active_maneuvers = True if self . _dockwidget_maneuvers is None : self . _dockwidget_maneuvers = AddManeuversDockWidget ( ) self . _dockwidget_maneuvers . closingPlugin . connect ( self . onClosePlugin ) self . iface . addDockWidget ( Qt . RightDockWidgetArea , self . _dockwidget_maneuvers ) self . _dockwidget_maneuvers . show ( )
Adds "Add Maneuvers" dock widget.
Adds " Add Maneuvers " dock widget .
"""
        Adds "Add Maneuvers" dock widget.
        Creates OpenSCENARIO layer group if it does not exist.
        """ # Add temporary scratch layer to QGIS (if not yet created) # Load plugin
self