spinetoolbox.project_items.gimlet.commands¶
Undo/redo commands for the Gimlet project item.
| authors: |
|
|---|---|
| date: | 30.4.2020 |
Module Contents¶
Classes¶
UpdateShellCheckBoxCommand |
Command to update Gimlet shell check box state. |
UpdateShellComboboxCommand |
Command to update Gimlet shell combobox state. |
UpdatecmdCommand |
Command to update Gimlet command line edit. |
UpdateWorkDirModeCommand |
Command to update Gimlet work_in_dir setting. |
-
class
spinetoolbox.project_items.gimlet.commands.UpdateShellCheckBoxCommand(gimlet, use_shell)[source]¶ Bases:
spinetoolbox.project_commands.SpineToolboxCommandCommand to update Gimlet shell check box state.
Parameters: - gimlet (spinetoolbox.project_items.gimlet.gimlet.Gimlet) – The Gimlet issuing the command
- use_shell (bool) – New check box state
-
class
spinetoolbox.project_items.gimlet.commands.UpdateShellComboboxCommand(gimlet, new_index)[source]¶ Bases:
spinetoolbox.project_commands.SpineToolboxCommandCommand to update Gimlet shell combobox state.
Parameters: - gimlet (spinetoolbox.project_items.gimlet.gimlet.Gimlet) – The Gimlet issuing the command
- new_index (int) – New combobox index
-
class
spinetoolbox.project_items.gimlet.commands.UpdatecmdCommand(gimlet, txt)[source]¶ Bases:
spinetoolbox.project_commands.SpineToolboxCommandCommand to update Gimlet command line edit.
Parameters: - gimlet (spinetoolbox.project_items.gimlet.gimlet.Gimlet) – The Gimlet issuing the command
- txt (str) – New text in command line edit after editing is finished
-
class
spinetoolbox.project_items.gimlet.commands.UpdateWorkDirModeCommand(gimlet, work_dir_mode)[source]¶ Bases:
spinetoolbox.project_commands.SpineToolboxCommandCommand to update Gimlet work_in_dir setting.
Parameters: - gimlet (Gimlet) – The Gimlet
- work_dir_mode (bool) – True or False