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 an edit bundle with normalized positions. |
|
Add a file selector bundle with normalized positions. |
|
Prompt the user for a new document. |
|
Build the dialog. |
|
Close the dialog. |
|
Save the changes and close the dialog. |
|
Update current project. |
|
Remove the selected documents. |
|
Update the settings and the dialog after a project is selected. |
|
Update the dialog with the project’s 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.