Settings#

class ansys.scade.almgw_msoffice.settings.Settings#

Bases: scade.tool.suite.gui.dialogs.Dialog

Settings editor for the connector.

Initialize the dialog.

Overview#

add_edit

Add an edit bundle with normalized positions.

add_file

Add a file selector bundle with normalized positions.

on_add

Prompt the user for a new document.

on_build

Build the dialog.

on_cancel

Close the dialog.

on_ok

Save the changes and close the dialog.

on_project_selection

Update current project.

on_remove

Remove the selected documents.

on_set_project

Update the settings and the dialog after a project is selected.

read_settings

Update the dialog with the project’s settings.

write_settings

Update the project’s settings from the dialog.

Import detail#

from ansys.scade.almgw_msoffice.settings import Settings

Attribute detail#

Settings.cb_projects = None#
Settings.ed_req_style = None#
Settings.ed_schema = None#
Settings.ed_text_style = None#
Settings.lb_documents = None#
Settings.pb_cancel = None#
Settings.pb_ok = None#
Settings.project = None#

Method detail#

Settings.add_edit(y: int, text: str) scade.tool.suite.gui.widgets.EditBox#

Add an edit bundle with normalized positions.

Settings.add_file(y: int, text: str, extension: str, dir: str, filter: str, mode: FSM) FileSelector#

Add a file selector bundle with normalized positions.

Settings.on_add(*args)#

Prompt the user for a new document.

Settings.on_build()#

Build the dialog.

Settings.on_cancel(*args)#

Close the dialog.

Settings.on_ok(*args)#

Save the changes and close the dialog.

Settings.on_project_selection(cb: scade.tool.suite.gui.widgets.ObjectComboBox, index: int)#

Update current project.

Settings.on_remove(*args)#

Remove the selected documents.

Settings.on_set_project(project: scade.model.project.stdproject.Project)#

Update the settings and the dialog after a project is selected.

Settings.read_settings()#

Update the dialog with the project’s settings.

Settings.write_settings()#

Update the project’s settings from the dialog.