code: def _create_save_scenario_action(self):
          
          icon = resources_path('img', 'icons', 'save-as-scenario.svg')
          self.action_save_scenario = QAction(
              QIcon(icon),
              self.tr('Save Current Scenario'), self.iface.mainWindow())
          message = self.tr('Save current scenario to text file')
          self.action_save_scenario.setStatusTip(message)
          self.action_save_scenario.setWhatsThis(message)
          # noinspection PyUnresolvedReferences
          self.action_save_scenario.triggered.connect(self.save_scenario)
          self.add_action(
              self.action_save_scenario, add_to_toolbar=self.full_toolbar)
docs: Create action for save scenario dialog.