13.2. The GUI: gui
¶
Subpackages of rafcon.gui
¶
- MVC Controllers:
rafcon.gui.controllers
- Subpackages of
rafcon.gui.controllers
- MVC State Editor Controllers (rafcon.gui.controllers.state_editor)
- LinkageOverviewController (in linkage_overview)
- ScopedVariableListController (in scoped_variable_list)
ScopedVariableListController
ScopedVariableListController.CORE_ELEMENT_CLASS
ScopedVariableListController.DATA_TYPE_NAME_STORAGE_ID
ScopedVariableListController.DEFAULT_VALUE_STORAGE_ID
ScopedVariableListController.ID_STORAGE_ID
ScopedVariableListController.MODEL_STORAGE_ID
ScopedVariableListController.NAME_STORAGE_ID
ScopedVariableListController.apply_new_scoped_variable_default_value()
ScopedVariableListController.apply_new_scoped_variable_name()
ScopedVariableListController.apply_new_scoped_variable_type()
ScopedVariableListController.get_new_list_store()
ScopedVariableListController.on_add()
ScopedVariableListController.on_right_click_menu()
ScopedVariableListController.paste_action_callback()
ScopedVariableListController.register_actions()
ScopedVariableListController.register_view()
ScopedVariableListController.reload_scoped_variables_list_store()
ScopedVariableListController.remove_core_element()
ScopedVariableListController.scoped_variables_changed()
- SourceEditorController (in source_editor)
SourceEditorController
SourceEditorController.apply_clicked()
SourceEditorController.format_error_string()
SourceEditorController.get_file_name()
SourceEditorController.load_and_set_file_content()
SourceEditorController.register_view()
SourceEditorController.save_file_data()
SourceEditorController.set_editor_lock()
SourceEditorController.source_text
SourceEditorController.tmp_file
- StateDataFlowsListController (in data_flows)
StateDataFlowsEditorController
StateDataFlowsListController
StateDataFlowsListController.CORE_ELEMENT_CLASS
StateDataFlowsListController.FROM_STATE_STORAGE_ID
StateDataFlowsListController.ID_STORAGE_ID
StateDataFlowsListController.IS_EXTERNAL_STORAGE_ID
StateDataFlowsListController.MODEL_STORAGE_ID
StateDataFlowsListController.TO_KEY_STORAGE_ID
StateDataFlowsListController.TO_STATE_STORAGE_ID
StateDataFlowsListController.after_notification_of_parent_or_state()
StateDataFlowsListController.after_notification_of_parent_or_state_from_lists()
StateDataFlowsListController.before_notification_of_parent_or_state()
StateDataFlowsListController.destroy()
StateDataFlowsListController.find_free_and_valid_data_flows()
StateDataFlowsListController.free_to_port_external
StateDataFlowsListController.free_to_port_internal
StateDataFlowsListController.from_port_external
StateDataFlowsListController.from_port_internal
StateDataFlowsListController.on_add()
StateDataFlowsListController.on_combo_changed_from_key()
StateDataFlowsListController.on_combo_changed_from_state()
StateDataFlowsListController.on_combo_changed_to_key()
StateDataFlowsListController.on_combo_changed_to_state()
StateDataFlowsListController.on_focus()
StateDataFlowsListController.on_right_click_menu()
StateDataFlowsListController.register_view()
StateDataFlowsListController.remove_core_element()
StateDataFlowsListController.update()
find_free_keys()
get_key_combos()
get_state_model()
update_data_flows()
- DescriptionEditorController (in description_editor)
- StateEditorController (in state_editor)
- StateOutcomesListController (in outcomes)
StateOutcomesEditorController
StateOutcomesListController
StateOutcomesListController.CORE_ELEMENT_CLASS
StateOutcomesListController.CORE_PARENT_STORAGE_ID
StateOutcomesListController.CORE_STORAGE_ID
StateOutcomesListController.ID_STORAGE_ID
StateOutcomesListController.MODEL_STORAGE_ID
StateOutcomesListController.NAME_STORAGE_ID
StateOutcomesListController.apply_new_outcome_name()
StateOutcomesListController.destroy()
StateOutcomesListController.on_add()
StateOutcomesListController.on_right_click_menu()
StateOutcomesListController.on_to_outcome_edited()
StateOutcomesListController.on_to_state_edited()
StateOutcomesListController.outcomes_changed()
StateOutcomesListController.register_view()
StateOutcomesListController.remove_core_element()
StateOutcomesListController.update()
StateOutcomesListController.update_internal_data_base()
StateOutcomesListController.update_list_store()
- StateOverviewController (in overview)
StateOverviewController
StateOverviewController.change_name()
StateOverviewController.change_type()
StateOverviewController.check_for_enter()
StateOverviewController.get_allowed_state_classes()
StateOverviewController.notify_is_start()
StateOverviewController.notify_name_change()
StateOverviewController.on_focus_out()
StateOverviewController.on_toggle_is_start_state()
StateOverviewController.on_toggle_show_content()
StateOverviewController.register_view()
StateOverviewController.rename()
StateOverviewController.show_content_changed()
- StateTransitionsListController (in transitions)
StateTransitionsEditorController
StateTransitionsListController
StateTransitionsListController.CORE_ELEMENT_CLASS
StateTransitionsListController.FROM_OUTCOME_STORAGE_ID
StateTransitionsListController.FROM_STATE_STORAGE_ID
StateTransitionsListController.ID_STORAGE_ID
StateTransitionsListController.IS_EXTERNAL_STORAGE_ID
StateTransitionsListController.MODEL_STORAGE_ID
StateTransitionsListController.TO_OUTCOME_STORAGE_ID
StateTransitionsListController.TO_STATE_STORAGE_ID
StateTransitionsListController.after_notification_of_parent_or_state_from_lists()
StateTransitionsListController.after_notification_state()
StateTransitionsListController.before_notification_of_parent_or_state()
StateTransitionsListController.destroy()
StateTransitionsListController.get_possible_combos_for_transition()
StateTransitionsListController.on_add()
StateTransitionsListController.on_combo_changed_from_outcome()
StateTransitionsListController.on_combo_changed_from_state()
StateTransitionsListController.on_combo_changed_to_outcome()
StateTransitionsListController.on_combo_changed_to_state()
StateTransitionsListController.on_focus()
StateTransitionsListController.on_right_click_menu()
StateTransitionsListController.register_view()
StateTransitionsListController.remove_core_element()
StateTransitionsListController.update()
- MVC Controller Utils (rafcon.gui.controllers.utils)
- EditorController (in editor)
- ExtendedController (in extended_controller)
ExtendedController
ExtendedController.add_controller()
ExtendedController.connect_signal()
ExtendedController.destroy()
ExtendedController.disconnect_all_signals()
ExtendedController.get_child_controllers()
ExtendedController.get_controller()
ExtendedController.get_controller_by_path()
ExtendedController.get_root_window()
ExtendedController.observe_model()
ExtendedController.parent
ExtendedController.register_actions()
ExtendedController.register_view()
ExtendedController.relieve_all_models()
ExtendedController.relieve_model()
ExtendedController.remove_controller()
ExtendedController.unregister_actions()
- SingleWidgetWindowController (in single_widget_window)
- MVC State Editor Controllers (rafcon.gui.controllers.state_editor)
- MainWindowController (in main_window)
- GraphicalEditorController (in graphical_editor_gaphas)
- StateMachinesEditorController (in state_machines_editor)
- ExecutionHistoryTreeController (in execution_history)
ExecutionHistoryTreeController
ExecutionHistoryTreeController.HISTORY_ITEM_STORAGE_ID
ExecutionHistoryTreeController.TOOL_TIP_STORAGE_ID
ExecutionHistoryTreeController.TOOL_TIP_TEXT
ExecutionHistoryTreeController.append_string_to_menu()
ExecutionHistoryTreeController.clean_history()
ExecutionHistoryTreeController.destroy()
ExecutionHistoryTreeController.execution_history_focus()
ExecutionHistoryTreeController.get_history_item_for_tree_iter()
ExecutionHistoryTreeController.insert_concurrent_execution_histories()
ExecutionHistoryTreeController.insert_execution_history()
ExecutionHistoryTreeController.insert_history_item()
ExecutionHistoryTreeController.mouse_click()
ExecutionHistoryTreeController.notification_selected_sm_changed()
ExecutionHistoryTreeController.notification_sm_changed()
ExecutionHistoryTreeController.open_selected_history_separately()
ExecutionHistoryTreeController.register_view()
ExecutionHistoryTreeController.reload_history()
ExecutionHistoryTreeController.update()
- GlobalVariableManagerController (in global_variable_manager)
GlobalVariableManagerController
GlobalVariableManagerController.DATA_TYPE_AS_STRING_STORAGE_ID
GlobalVariableManagerController.ID_STORAGE_ID
GlobalVariableManagerController.IS_LOCKED_AS_STRING_STORAGE_ID
GlobalVariableManagerController.MODEL_STORAGE_ID
GlobalVariableManagerController.NAME_STORAGE_ID
GlobalVariableManagerController.VALUE_AS_STRING_STORAGE_ID
GlobalVariableManagerController.apply_new_global_variable_name()
GlobalVariableManagerController.apply_new_global_variable_type()
GlobalVariableManagerController.apply_new_global_variable_value()
GlobalVariableManagerController.assign_notification_from_gvm()
GlobalVariableManagerController.global_variable_is_editable()
GlobalVariableManagerController.on_add()
GlobalVariableManagerController.on_lock()
GlobalVariableManagerController.on_unlock()
GlobalVariableManagerController.register_actions()
GlobalVariableManagerController.register_view()
GlobalVariableManagerController.remove_core_element()
GlobalVariableManagerController.update_global_variables_list_store()
- LoggingConsoleController (in logging_console)
LoggingConsoleController
LoggingConsoleController.add_clear_menu_item()
LoggingConsoleController.destroy()
LoggingConsoleController.model_changed()
LoggingConsoleController.print_filtered_buffer()
LoggingConsoleController.print_message()
LoggingConsoleController.register_view()
LoggingConsoleController.update_filtered_buffer()
- LibraryTreeController (in library_tree)
LibraryTreeController
LibraryTreeController.ID_STORAGE_ID
LibraryTreeController.ITEM_STORAGE_ID
LibraryTreeController.LIB_KEY_STORAGE_ID
LibraryTreeController.LIB_PATH_STORAGE_ID
LibraryTreeController.OS_PATH_STORAGE_ID
LibraryTreeController.TOOL_TIP_STORAGE_ID
LibraryTreeController.convert_if_human_readable()
LibraryTreeController.extract_library_properties_from_selected_row()
LibraryTreeController.generate_right_click_menu()
LibraryTreeController.get_menu_item_text()
LibraryTreeController.insert_button_clicked()
LibraryTreeController.insert_rec()
LibraryTreeController.menu_item_add_library_root_clicked()
LibraryTreeController.menu_item_find_usages_clicked()
LibraryTreeController.menu_item_relocate_libraries_or_root_clicked()
LibraryTreeController.menu_item_remove_libraries_or_root_clicked()
LibraryTreeController.menu_item_rename_libraries_or_root_clicked()
LibraryTreeController.model_changed()
LibraryTreeController.mouse_click()
LibraryTreeController.on_drag_begin()
LibraryTreeController.on_drag_data_get()
LibraryTreeController.open_button_clicked()
LibraryTreeController.open_library_as_state_machine()
LibraryTreeController.open_run_button_clicked()
LibraryTreeController.redo_expansion_state()
LibraryTreeController.register_view()
LibraryTreeController.select_library_tree_element_of_lib_tree_path()
LibraryTreeController.select_library_tree_element_of_library_state_model()
LibraryTreeController.store_expansion_state()
LibraryTreeController.substitute_as_library_clicked()
LibraryTreeController.substitute_as_template_clicked()
LibraryTreeController.update()
- MenuBarController (in menu_bar)
MenuBarController
MenuBarController.add_callback_to_shortcut_manager()
MenuBarController.call_action_callback()
MenuBarController.check_edit_menu_items_status()
MenuBarController.connect_button_to_function()
MenuBarController.create_logger_warning_if_shortcuts_are_overwritten_by_menu_bar()
MenuBarController.data_flow_mode_toggled_shortcut()
MenuBarController.destroy()
MenuBarController.on_about_activate()
MenuBarController.on_add_state_activate()
MenuBarController.on_add_transitions_from_closest_sibling_state_active()
MenuBarController.on_add_transitions_to_closest_sibling_state_active()
MenuBarController.on_add_transitions_to_parent_state_active()
MenuBarController.on_backward_step_activate()
MenuBarController.on_bake_state_machine_activate()
MenuBarController.on_config_value_changed()
MenuBarController.on_copy_selection_activate()
MenuBarController.on_cut_selection_activate()
MenuBarController.on_data_flow_mode_toggled()
MenuBarController.on_delete_activate()
MenuBarController.on_delete_check_sm_modified()
MenuBarController.on_delete_check_sm_running()
MenuBarController.on_delete_event()
MenuBarController.on_destroy()
MenuBarController.on_escape_key_press_event_leave_full_screen()
MenuBarController.on_expert_view_activate()
MenuBarController.on_full_screen_activate()
MenuBarController.on_full_screen_deactivate()
MenuBarController.on_full_screen_mode_toggled()
MenuBarController.on_grid_toggled()
MenuBarController.on_group_states_activate()
MenuBarController.on_layout_state_machine()
MenuBarController.on_menu_preferences_activate()
MenuBarController.on_new_activate()
MenuBarController.on_open_activate()
MenuBarController.on_open_library_state_separately_activate()
MenuBarController.on_paste_clipboard_activate()
MenuBarController.on_pause_activate()
MenuBarController.on_quit_activate()
MenuBarController.on_redo_activate()
MenuBarController.on_refresh_all_activate()
MenuBarController.on_refresh_libraries_activate()
MenuBarController.on_refresh_selected_activate()
MenuBarController.on_run_only_selected_state_activate()
MenuBarController.on_run_selected_state_activate()
MenuBarController.on_run_to_selected_state_activate()
MenuBarController.on_save_activate()
MenuBarController.on_save_as_activate()
MenuBarController.on_save_as_copy_activate()
MenuBarController.on_save_selected_state_as_activate()
MenuBarController.on_search_activate()
MenuBarController.on_show_aborted_preempted_toggled()
MenuBarController.on_show_data_flows_toggled()
MenuBarController.on_show_data_values_toggled()
MenuBarController.on_show_transitions_toggled()
MenuBarController.on_start_activate()
MenuBarController.on_start_from_selected_state_activate()
MenuBarController.on_step_into_activate()
MenuBarController.on_step_mode_activate()
MenuBarController.on_step_out_activate()
MenuBarController.on_step_over_activate()
MenuBarController.on_stop_activate()
MenuBarController.on_substitute_library_with_template_activate()
MenuBarController.on_substitute_selected_state_activate()
MenuBarController.on_toggle_full_screen_mode()
MenuBarController.on_toggle_is_start_state_active()
MenuBarController.on_undo_activate()
MenuBarController.on_ungroup_state_activate()
MenuBarController.refresh_shortcuts()
MenuBarController.register_actions()
MenuBarController.register_view()
MenuBarController.show_aborted_preempted()
MenuBarController.show_data_flows_toggled_shortcut()
MenuBarController.show_data_values_toggled_shortcut()
MenuBarController.show_transitions_toggled_shortcut()
MenuBarController.unregister_view()
- ModificationHistoryTreeController (in modification_history)
ModificationHistoryTreeController
ModificationHistoryTreeController.get_color_active()
ModificationHistoryTreeController.new_change()
ModificationHistoryTreeController.on_cursor_changed()
ModificationHistoryTreeController.on_redo_button_clicked()
ModificationHistoryTreeController.on_reset_button_clicked()
ModificationHistoryTreeController.on_toggle_mode()
ModificationHistoryTreeController.on_toggle_tree_folded()
ModificationHistoryTreeController.on_undo_button_clicked()
ModificationHistoryTreeController.redo()
ModificationHistoryTreeController.register()
ModificationHistoryTreeController.register_actions()
ModificationHistoryTreeController.register_view()
ModificationHistoryTreeController.state_machine_manager_notification()
ModificationHistoryTreeController.undo()
ModificationHistoryTreeController.update()
- StateMachineTreeController (in state_machine_tree)
StateMachineTreeController
StateMachineTreeController.CORE_ELEMENT_CLASS
StateMachineTreeController.ID_STORAGE_ID
StateMachineTreeController.MODEL_STORAGE_ID
StateMachineTreeController.NAME_STORAGE_ID
StateMachineTreeController.STATE_PATH_STORAGE_ID
StateMachineTreeController.TYPE_NAME_STORAGE_ID
StateMachineTreeController.action_signal()
StateMachineTreeController.assign_notification_selection()
StateMachineTreeController.get_row_iter_for_state_model()
StateMachineTreeController.get_state_machine_selection()
StateMachineTreeController.insert_and_update_recursively()
StateMachineTreeController.mouse_click()
StateMachineTreeController.paste_action_callback()
StateMachineTreeController.redo_expansion_state()
StateMachineTreeController.register()
StateMachineTreeController.register_actions()
StateMachineTreeController.register_view()
StateMachineTreeController.remove_tree_children()
StateMachineTreeController.selection_changed()
StateMachineTreeController.show_content()
StateMachineTreeController.state_action_signal()
StateMachineTreeController.state_machine_manager_notification()
StateMachineTreeController.state_machine_notification()
StateMachineTreeController.state_meta_update()
StateMachineTreeController.states_update()
StateMachineTreeController.states_update_before()
StateMachineTreeController.store_expansion_state()
StateMachineTreeController.update()
StateMachineTreeController.update_tree_store_row()
- StatesEditorController (in states_editor)
StatesEditorController
StatesEditorController.activate_state_tab()
StatesEditorController.add_state_editor()
StatesEditorController.close_all_pages()
StatesEditorController.close_page()
StatesEditorController.close_pages_for_specific_sm_id()
StatesEditorController.current_state_machine_m
StatesEditorController.get_current_state_m()
StatesEditorController.get_page_of_state_m()
StatesEditorController.get_state_identifier()
StatesEditorController.get_state_identifier_for_page()
StatesEditorController.notify_state_name_change()
StatesEditorController.on_close_clicked()
StatesEditorController.on_config_value_changed()
StatesEditorController.on_switch_page()
StatesEditorController.on_tab_close_clicked()
StatesEditorController.on_toggle_sticky_clicked()
StatesEditorController.prepare_destruction()
StatesEditorController.register_actions()
StatesEditorController.register_view()
StatesEditorController.reload_style()
StatesEditorController.rename_selected_state()
StatesEditorController.root_state_changed()
StatesEditorController.script_text_changed()
StatesEditorController.selection_notification()
StatesEditorController.state_action_signal()
StatesEditorController.state_machine_manager_notification()
StatesEditorController.state_machines_del_notification()
StatesEditorController.state_machines_set_notification()
StatesEditorController.update_tab_label()
create_button()
create_sticky_button()
create_tab_close_button()
create_tab_header()
set_tab_label_texts()
- ToolBarController (in tool_bar)
ToolBarController
ToolBarController.on_button_bake_state_machine_clicked()
ToolBarController.on_button_layout_state_machine()
ToolBarController.on_button_new_clicked()
ToolBarController.on_button_open_clicked()
ToolBarController.on_button_refresh_clicked()
ToolBarController.on_button_refresh_libs_clicked()
ToolBarController.on_button_refresh_selected_clicked()
ToolBarController.on_button_save_clicked()
ToolBarController.register_actions()
ToolBarController.register_view()
- TopToolBarController (in top_tool_bar)
- StateIconController (in state_icons)
- UndockedWindowController (in undocked_window)
- Subpackages of
- MVC Models:
rafcon.gui.models
- AbstractStateModel (in abstract_state)
AbstractStateModel
AbstractStateModel.action_signal
AbstractStateModel.action_signal_triggered()
AbstractStateModel.child_model_changed()
AbstractStateModel.copy_meta_data_from_state_m()
AbstractStateModel.core_element
AbstractStateModel.destruction_signal
AbstractStateModel.get_data_port_m()
AbstractStateModel.get_input_data_port_m()
AbstractStateModel.get_observable_action_signal()
AbstractStateModel.get_observable_destruction_signal()
AbstractStateModel.get_observable_income()
AbstractStateModel.get_observable_input_data_ports()
AbstractStateModel.get_observable_is_start()
AbstractStateModel.get_observable_meta_signal()
AbstractStateModel.get_observable_outcomes()
AbstractStateModel.get_observable_output_data_ports()
AbstractStateModel.get_observable_state()
AbstractStateModel.get_outcome_m()
AbstractStateModel.get_output_data_port_m()
AbstractStateModel.get_state_machine_m()
AbstractStateModel.hierarchy_level
AbstractStateModel.income
AbstractStateModel.input_data_ports
AbstractStateModel.is_about_to_be_destroyed_recursively
AbstractStateModel.is_start
AbstractStateModel.load_meta_data()
AbstractStateModel.meta_changed()
AbstractStateModel.meta_signal
AbstractStateModel.model_changed()
AbstractStateModel.outcomes
AbstractStateModel.output_data_ports
AbstractStateModel.parent
AbstractStateModel.prepare_destruction()
AbstractStateModel.set_observable_action_signal()
AbstractStateModel.set_observable_destruction_signal()
AbstractStateModel.set_observable_income()
AbstractStateModel.set_observable_input_data_ports()
AbstractStateModel.set_observable_is_start()
AbstractStateModel.set_observable_meta_signal()
AbstractStateModel.set_observable_outcomes()
AbstractStateModel.set_observable_output_data_ports()
AbstractStateModel.set_observable_state()
AbstractStateModel.state
AbstractStateModel.state_counter
AbstractStateModel.store_meta_data()
AbstractStateModel.update_hash()
AbstractStateModel.update_is_start()
AbstractStateModel.update_meta_data_hash()
get_state_model_class_for_state()
mirror_y_axis_in_vividict_element()
- StateModel (in state)
StateModel
StateModel.add_missing_model()
StateModel.expected_future_models
StateModel.get_cause_and_affected_model_list()
StateModel.get_model_info()
StateModel.model_changed()
StateModel.re_initiate_model_list()
StateModel.remove_additional_model()
StateModel.remove_specific_model()
StateModel.update_models()
- ContainerStateModel (in container_state)
ContainerStateModel
ContainerStateModel.copy_meta_data_from_state_m()
ContainerStateModel.data_flows
ContainerStateModel.get_cause_and_affected_model_list()
ContainerStateModel.get_data_flow_m()
ContainerStateModel.get_data_port_m()
ContainerStateModel.get_observable_data_flows()
ContainerStateModel.get_observable_scoped_variables()
ContainerStateModel.get_observable_states()
ContainerStateModel.get_observable_transitions()
ContainerStateModel.get_scoped_variable_m()
ContainerStateModel.get_transition_m()
ContainerStateModel.group_states()
ContainerStateModel.insert_meta_data_from_models_dict()
ContainerStateModel.model_changed()
ContainerStateModel.prepare_destruction()
ContainerStateModel.scoped_variables
ContainerStateModel.set_observable_data_flows()
ContainerStateModel.set_observable_scoped_variables()
ContainerStateModel.set_observable_states()
ContainerStateModel.set_observable_transitions()
ContainerStateModel.states
ContainerStateModel.store_meta_data()
ContainerStateModel.substitute_state()
ContainerStateModel.transitions
ContainerStateModel.ungroup_state()
ContainerStateModel.update_child_is_start()
ContainerStateModel.update_child_models()
ContainerStateModel.update_hash()
ContainerStateModel.update_meta_data_hash()
- LibraryStateModel (in library_state)
LibraryStateModel
LibraryStateModel.copy_meta_data_from_state_m()
LibraryStateModel.enforce_generation_of_state_copy_model()
LibraryStateModel.initiate_library_root_state_model()
LibraryStateModel.is_about_to_be_destroyed_recursively
LibraryStateModel.model_changed()
LibraryStateModel.prepare_destruction()
LibraryStateModel.recursive_generate_models()
LibraryStateModel.show_content()
LibraryStateModel.state_copy
LibraryStateModel.update_hash()
- StateElementModel (in state_element)
StateElementModel
StateElementModel.core_element
StateElementModel.destruction_signal
StateElementModel.get_observable_destruction_signal()
StateElementModel.get_observable_meta_signal()
StateElementModel.get_state_machine_m()
StateElementModel.meta_changed()
StateElementModel.meta_signal
StateElementModel.model_changed()
StateElementModel.parent
StateElementModel.prepare_destruction()
StateElementModel.set_observable_destruction_signal()
StateElementModel.set_observable_meta_signal()
StateElementModel.update_hash()
- TransitionModel (in transition)
- DataFlowModel (in data_flow)
- DataPortModel (in data_port)
- ScopedVariableModel (in scoped_variable)
- Selection (in selection)
Selection
Selection.add()
Selection.clear()
Selection.data_flows
Selection.focus
Selection.focus_signal
Selection.get_all()
Selection.get_observable_focus_signal()
Selection.get_observable_selection_changed_signal()
Selection.get_selected_elements_of_core_class()
Selection.get_selected_state()
Selection.handle_new_selection()
Selection.handle_prepared_selection_of_core_class_elements()
Selection.income
Selection.incomes
Selection.input_data_ports
Selection.is_selected()
Selection.on_model_destruct()
Selection.outcomes
Selection.output_data_ports
Selection.remove()
Selection.scoped_variables
Selection.selection_changed_signal
Selection.set()
Selection.set_observable_focus_signal()
Selection.set_observable_selection_changed_signal()
Selection.states
Selection.transitions
Selection.update_core_element_lists()
extend_selection()
reduce_to_parent_states()
updates_selection()
- LogicalPortModel (in logical_port)
- StateMachineModel (in state_machine)
ComplexActionObserver
StateMachineModel
StateMachineModel.action_signal
StateMachineModel.action_signal_triggered()
StateMachineModel.change_root_state_type()
StateMachineModel.core_element
StateMachineModel.destroy()
StateMachineModel.destruction_signal
StateMachineModel.get_observable_action_signal()
StateMachineModel.get_observable_destruction_signal()
StateMachineModel.get_observable_meta_signal()
StateMachineModel.get_observable_ongoing_complex_actions()
StateMachineModel.get_observable_root_state()
StateMachineModel.get_observable_sm_selection_changed_signal()
StateMachineModel.get_observable_state_action_signal()
StateMachineModel.get_observable_state_machine()
StateMachineModel.get_observable_state_meta_signal()
StateMachineModel.get_state_model_by_path()
StateMachineModel.load_meta_data()
StateMachineModel.meta
StateMachineModel.meta_changed()
StateMachineModel.meta_signal
StateMachineModel.ongoing_complex_actions
StateMachineModel.prepare_destruction()
StateMachineModel.root_state
StateMachineModel.root_state_assign()
StateMachineModel.root_state_model_after_change()
StateMachineModel.root_state_model_before_change()
StateMachineModel.selection
StateMachineModel.set_observable_action_signal()
StateMachineModel.set_observable_destruction_signal()
StateMachineModel.set_observable_meta_signal()
StateMachineModel.set_observable_ongoing_complex_actions()
StateMachineModel.set_observable_root_state()
StateMachineModel.set_observable_sm_selection_changed_signal()
StateMachineModel.set_observable_state_action_signal()
StateMachineModel.set_observable_state_machine()
StateMachineModel.set_observable_state_meta_signal()
StateMachineModel.sm_selection_changed_signal
StateMachineModel.state_action_signal
StateMachineModel.state_machine
StateMachineModel.state_machine_model_after_change()
StateMachineModel.state_meta_signal
StateMachineModel.store_meta_data()
StateMachineModel.suppress_new_root_state_model_one_time
StateMachineModel.update_hash()
StateMachineModel.update_meta_data_hash()
- ModificationsHistoryModel (in modification_history)
HistoryTreeElement
ModificationsHistory
ModificationsHistory.current_history_element
ModificationsHistory.get_current_branch_history_ids()
ModificationsHistory.get_element_for_history_id()
ModificationsHistory.get_executed_history_ids()
ModificationsHistory.get_history_path_from_current_to_target_history_id()
ModificationsHistory.get_next_element()
ModificationsHistory.get_previous_element()
ModificationsHistory.go_to_history_element()
ModificationsHistory.insert_action()
ModificationsHistory.is_redo_possible()
ModificationsHistory.is_undo_possible()
ModificationsHistory.prepare_destruction()
ModificationsHistory.redo()
ModificationsHistory.reset()
ModificationsHistory.undo()
ModificationsHistoryModel
ModificationsHistoryModel.action_signal_after_complex_action()
ModificationsHistoryModel.active_action
ModificationsHistoryModel.after_count()
ModificationsHistoryModel.assign_notification_root_state_after()
ModificationsHistoryModel.assign_notification_root_state_before()
ModificationsHistoryModel.assign_notification_states_after()
ModificationsHistoryModel.assign_notification_states_before()
ModificationsHistoryModel.before_count()
ModificationsHistoryModel.change_count
ModificationsHistoryModel.finish_new_action()
ModificationsHistoryModel.get_observable_change_count()
ModificationsHistoryModel.get_observable_modifications()
ModificationsHistoryModel.get_root_state_element_meta()
ModificationsHistoryModel.get_state_element_meta_from_internal_tmp_storage()
ModificationsHistoryModel.meta_changed_notify_after()
ModificationsHistoryModel.modifications
ModificationsHistoryModel.prepare_destruction()
ModificationsHistoryModel.re_initiate_meta_data()
ModificationsHistoryModel.redo()
ModificationsHistoryModel.reset_to_history_id()
ModificationsHistoryModel.set_observable_change_count()
ModificationsHistoryModel.set_observable_modifications()
ModificationsHistoryModel.start_new_action()
ModificationsHistoryModel.start_new_action_old()
ModificationsHistoryModel.state_action_signal()
ModificationsHistoryModel.state_machine_model
ModificationsHistoryModel.synchronized_redo()
ModificationsHistoryModel.synchronized_undo()
ModificationsHistoryModel.tmp_meta_storage
ModificationsHistoryModel.undo()
ModificationsHistoryModel.update_internal_tmp_storage()
- AutoBackupModel (in auto_backup)
AutoBackupModel
AutoBackupModel.cancel_timed_thread()
AutoBackupModel.change_in_state_machine_notification()
AutoBackupModel.check_for_auto_backup()
AutoBackupModel.check_lock_file()
AutoBackupModel.clean_lock_file()
AutoBackupModel.destroy()
AutoBackupModel.perform_temp_storage()
AutoBackupModel.prepare_destruction()
AutoBackupModel.set_timed_thread()
AutoBackupModel.update_last_backup_meta_data()
AutoBackupModel.update_last_sm_origin_meta_data()
AutoBackupModel.update_tmp_storage_path()
AutoBackupModel.write_backup_meta_data()
check_for_crashed_rafcon_instances()
check_path_for_correct_dirty_lock_file()
find_dirty_lock_file_for_state_machine_path()
generate_rafcon_instance_lock_file()
move_dirty_lock_file()
recover_state_machine_from_backup()
remove_rafcon_instance_lock_file()
- StateMachineManagerModel (in state_machine_manager)
- GlobalVariableManagerModel (in global_variable_manager)
- LibraryManagerModel (in library_manager)
- StateMachineExecutionEngineModel (in state_machine_execution_engine)
- AbstractStateModel (in abstract_state)
- MVC Views:
rafcon.gui.views
- Subpackages of
rafcon.gui.views
- MVC State Editor Views (rafcon.gui.views.state_editor)
- StateEditorView (in state_editor)
StateEditorView
StateEditorView.bring_tab_to_the_top()
StateEditorView.icons
StateEditorView.insert_scoped_variables_tab()
StateEditorView.insert_source_tab()
StateEditorView.prepare_the_labels()
StateEditorView.remove_scoped_variables_tab()
StateEditorView.remove_source_tab()
StateEditorView.set_default_paned_positions()
- LinkageOverviewView (in linkage_overview)
- InputPortsListView (in input_port_list)
- OutputPortsListView (in output_port_list)
- ScopedVariablesListView (in scoped_variables_list)
- SourceEditorView (in source_editor)
- StateDataFlowsListView (in data_flows)
- DescriptionEditorView (in description_editor)
- StateOutcomesEditorView (in state_outcomes)
- StateOverviewView (in state_overview)
- StateTransitionsEditorView (in state_transitions)
- StateEditorView (in state_editor)
- MVC View Utils (rafcon.gui.views.utils)
- MVC State Editor Views (rafcon.gui.views.state_editor)
- GraphicalEditor (in graphical_editor_gaphas)
- ExecutionHistoryTreeView (in execution_history)
- GlobalVariableEditorView (in global_variable_editor)
- LibraryTreeView (in library_tree)
- LoggingConsoleView (in logging_console)
LoggingConsoleView
LoggingConsoleView.clean_buffer()
LoggingConsoleView.clip_buffer()
LoggingConsoleView.create_text_buffer()
LoggingConsoleView.filtered_buffer
LoggingConsoleView.get_cursor_position()
LoggingConsoleView.get_line_number_next_to_cursor_with_string_within()
LoggingConsoleView.get_text_of_line()
LoggingConsoleView.len()
LoggingConsoleView.print_message()
LoggingConsoleView.print_to_text_view()
LoggingConsoleView.restore_cursor_position()
LoggingConsoleView.scroll_to_cursor_onscreen()
LoggingConsoleView.set_cursor_on_line_with_string()
LoggingConsoleView.set_cursor_position()
LoggingConsoleView.set_enables()
LoggingConsoleView.split_text()
LoggingConsoleView.store_cursor_position()
LoggingConsoleView.update_auto_scroll_mode()
- MainWindowView (in main_window)
- MenuBarView (in menu_bar)
- ModificationHistoryView (in modification_history)
- StateMachineTreeView (in state_machine_tree)
- StateMachinesEditorView (in state_machines_editor)
- StatesEditorView (in states_editor)
- ToolBarView (in tool_bar)
- Subpackages of
- Helper functions:
rafcon.gui.helpers
- label
append_sub_menu_to_parent_menu()
create_button_label()
create_check_menu_item()
create_label_widget_with_icon()
create_left_bar_window_title()
create_menu_box_with_icon_and_label()
create_menu_item()
create_tab_header_label()
create_widget_title()
ellipsize_labels_recursively()
get_label_of_menu_item_box()
get_notebook_tab_title()
get_widget_title()
is_event_of_key_string()
react_to_event()
set_button_children_size_request()
set_icon_and_text_box_of_menu_item()
set_label_markup()
set_notebook_title()
set_window_size_and_position()
- state (helper)
add_state()
change_state_type()
check_expected_future_model_list_is_empty()
create_new_state_from_state_with_type()
create_state_model_for_state()
extract_child_models_of_state()
group_states_and_scoped_variables()
insert_state_as()
negative_check_for_model_in_expected_future_models()
prepare_state_m_for_insert_as()
substitute_state()
substitute_state_as()
toggle_show_content_flag_of_library_state_model()
ungroup_state()
update_models_recursively()
- state_machine (helper)
add_data_port_to_selected_states()
add_new_state()
add_outcome_to_selected_states()
add_scoped_variable_to_selected_states()
add_state_by_drag_and_drop()
auto_layout_state_machine()
bake_selected_state_machine()
change_background_color()
change_state_type_with_error_handling_and_logger_messages()
delete_core_element_of_model()
delete_core_elements_of_models()
delete_selected_elements()
find_libraries_dependencies()
find_library_dependencies()
find_library_root_dependencies()
generate_linux_launch_files()
get_root_state_description_of_sm_file_system_path()
get_root_state_file_path()
get_root_state_name_of_sm_file_system_path()
group_selected_states_and_scoped_variables()
insert_state_into_selected_state()
is_selection_inside_of_library_state()
is_state_machine_stopped_to_proceed()
new_state_machine()
open_library_state_separately()
open_state_machine()
paste_into_selected_state()
reduce_to_parent_states()
refresh_after_relocate_and_rename()
refresh_all()
refresh_libraries()
refresh_selected_state_machine()
relocate_libraries()
relocate_library()
relocate_library_root()
rename_library()
rename_library_root()
replace_all_libraries_by_template()
save_all_libraries()
save_library()
save_library_config()
save_library_dependencies()
save_open_libraries()
save_selected_state_as()
save_state_machine()
save_state_machine_as()
selected_state_toggle_is_start_state()
substitute_selected_library_state_with_template()
substitute_selected_state()
substitute_selected_state_and_use_choice_dialog()
ungroup_selected_state()
- text_formatting
- label
- Gaphas extensions for RAFCON:
rafcon.gui.mygaphas
- Views
- Perpendicular Line
PerpLine
PerpLine.add_perp_waypoint()
PerpLine.add_waypoint()
PerpLine.draw()
PerpLine.draw_head()
PerpLine.draw_tail()
PerpLine.end_handles()
PerpLine.from_handle()
PerpLine.from_port
PerpLine.get_parent_state_v()
PerpLine.is_in_port()
PerpLine.is_out_port()
PerpLine.name
PerpLine.parent
PerpLine.point()
PerpLine.remove()
PerpLine.remove_all_waypoints()
PerpLine.reset_from_port()
PerpLine.reset_to_port()
PerpLine.to_handle()
PerpLine.to_port
PerpLine.view
PerpLine.waypoints
- ConnectionViews
- PortViews
DataPortView
IncomeView
InputPortView
LogicPortView
OutcomeView
OutputPortView
PortView
PortView.add_connected_handle()
PortView.connected
PortView.connected_connections
PortView.connected_incoming
PortView.connected_outgoing
PortView.draw()
PortView.draw_name()
PortView.draw_port()
PortView.get_port_area()
PortView.handle_pos
PortView.handles()
PortView.has_label()
PortView.has_outgoing_connection()
PortView.is_selected()
PortView.name
PortView.parent
PortView.port_side_size
PortView.port_size
PortView.pos
PortView.remove_connected_handle()
PortView.side
PortView.tmp_connect()
PortView.tmp_disconnect()
PortView.view
ScopedVariablePortView
- StateView and NameView
NameView
StateView
StateView.add_income()
StateView.add_input_port()
StateView.add_keep_rect_within_constraint()
StateView.add_outcome()
StateView.add_output_port()
StateView.add_rect_constraint_for_port()
StateView.add_scoped_variable()
StateView.apply_meta_data()
StateView.border_width
StateView.child_state_views()
StateView.connect_connection_to_port()
StateView.connect_to_income()
StateView.connect_to_input_port()
StateView.connect_to_outcome()
StateView.connect_to_output_port()
StateView.connect_to_scoped_variable_port()
StateView.corner_handles
StateView.draw()
StateView.get_all_ports()
StateView.get_logic_ports()
StateView.get_port_for_handle()
StateView.get_state_drawing_area()
StateView.get_transitions()
StateView.hovered
StateView.income
StateView.input_port()
StateView.inputs
StateView.model
StateView.moving
StateView.name_view
StateView.outcome_port()
StateView.outcomes
StateView.output_port()
StateView.outputs
StateView.parent
StateView.position
StateView.remove()
StateView.remove_income()
StateView.remove_input_port()
StateView.remove_keep_rect_within_constraint_from_parent()
StateView.remove_outcome()
StateView.remove_output_port()
StateView.remove_scoped_variable()
StateView.resize_all_children()
StateView.scoped_variable()
StateView.scoped_variables
StateView.selected
StateView.set_enable_flag_keep_rect_within_constraints()
StateView.setup_canvas()
StateView.show_content()
StateView.show_data_port_label
StateView.transparency
StateView.update_minimum_size()
StateView.update_minimum_size_of_children()
StateView.view
- Perpendicular Line
- Utility functions
- Enumerations
- Helper methods for drawing operations
- General helper methods
add_data_flow_to_state()
add_transition_to_state()
calc_rel_pos_to_parent()
create_new_connection()
extend_extents()
get_port_for_handle()
get_relative_positions_of_waypoints()
update_meta_data_for_connection_waypoints()
update_meta_data_for_name_view()
update_meta_data_for_port()
update_meta_data_for_state_view()
- aspect
- canvas
ItemProjection
MyCanvas
MyCanvas.add()
MyCanvas.add_port()
MyCanvas.exchange_model()
MyCanvas.get_first_view()
MyCanvas.get_parent()
MyCanvas.get_view_for_core_element()
MyCanvas.get_view_for_model()
MyCanvas.remove()
MyCanvas.remove_port()
MyCanvas.resolve_constraint()
MyCanvas.resolve_item_constraints()
MyCanvas.update_root_items()
MyCanvas.wait_for_update()
- connector
- constraint
- guide
- painter
- segment
- tools
- view
ExtendedGtkView
ExtendedGtkView.do_configure_event()
ExtendedGtkView.focused_item
ExtendedGtkView.get_items_at_point()
ExtendedGtkView.get_port_at_point()
ExtendedGtkView.get_state_at_point()
ExtendedGtkView.get_zoom_factor()
ExtendedGtkView.graphical_editor
ExtendedGtkView.handle_new_selection()
ExtendedGtkView.hovered_handle
ExtendedGtkView.prepare_destruction()
ExtendedGtkView.queue_draw_item()
ExtendedGtkView.select_item()
ExtendedGtkView.selected_items
ExtendedGtkView.unselect_all()
ExtendedGtkView.unselect_item()
- Views
action¶
Action class for history
The Action-Class provides a general redo or undo functionality for any action, as long as the the class object was initialized with consistent arguments.
This general Action (one procedure for all possible edition) procedure is expansive and complex, therefore it is aimed to define specific _-Action-Classes for simple/specific edit actions.
- class rafcon.gui.action.AbstractAction(parent_path, state_machine_model, overview=None)¶
Bases:
object
- action_type = None¶
- after_overview = None¶
- after_state_image = None¶
- as_dict()¶
- description()¶
- get_state_image()¶
- prepare_destruction()¶
- redo()¶
- set_after(overview)¶
- undo()¶
- class rafcon.gui.action.Action(parent_path, state_machine_model, overview)¶
Bases:
ModelMT
,AbstractAction
- action_signal(model, prop_name, info)¶
- static add_core_object_to_state(state, core_obj)¶
- compare_models(previous_model, actual_model)¶
- emit_undo_redo_signal(action_parent_m, affected_models, after)¶
- get_state_changed()¶
- get_state_image()¶
- redo()¶
General Redo, that takes all elements in the parent path state stored of the before action state machine status. :return:
- static remove_core_object_from_state(state, core_obj)¶
- undo()¶
General Undo, that takes all elements in the parent path state stored of the after action state machine status. :return:
- update_state(state, stored_state)¶
- update_state_from_image(state, state_image)¶
- class rafcon.gui.action.ActionDummy(parent_path=None, state_machine_model=None, overview=None)¶
Bases:
AbstractAction
- class rafcon.gui.action.AddObjectAction(parent_path, state_machine_model, overview)¶
Bases:
Action
The class handles all adding object action of 7 valid kinds (of In-OutputDataPort, ScopedVariable, DataFlow, Outcome, Transition and State)
- correct_reference_state(state, state_image_of_state, storage_path)¶
- possible_method_names = ['add_state', 'add_outcome', 'add_input_data_port', 'add_output_data_port', 'add_transition', 'add_data_flow', 'add_scoped_variable']¶
- redo()¶
- Returns:
Redo of adding object action is simply done by adding the object again from the after_state_image of the parent state.
- set_after(overview)¶
- undo()¶
General Undo, that takes all elements in the parent path state stored of the after action state machine status. :return:
- class rafcon.gui.action.DataFlowAction(parent_path, state_machine_model, overview)¶
Bases:
StateElementAction
- static get_set_of_arguments(df)¶
- possible_args = ['from_state', 'from_key', 'to_state', 'to_key']¶
- possible_method_names = ['modify_origin', 'from_state', 'from_key', 'modify_target', 'to_state', 'to_key']¶
- redo()¶
- undo()¶
- update_data_flow_from_image(df, arguments)¶
- class rafcon.gui.action.DataPortAction(parent_path, state_machine_model, overview)¶
Bases:
StateElementAction
- static get_set_of_arguments(dp)¶
- possible_args = ['name', 'default_value']¶
- possible_method_names = ['name', 'data_type', 'default_value', 'change_data_type']¶
- redo()¶
- undo()¶
- update_data_port_from_image(dp, arguments)¶
- class rafcon.gui.action.MetaDataAction(parent_path, state_machine_model, overview)¶
Bases:
AbstractAction
- get_state_image()¶
- get_state_model_changed()¶
- redo()¶
- undo()¶
- class rafcon.gui.action.OutcomeAction(parent_path, state_machine_model, overview)¶
Bases:
StateElementAction
- static get_set_of_arguments(oc)¶
- possible_args = ['name']¶
- possible_method_names = ['name']¶
- redo()¶
- undo()¶
- update_outcome_from_image(oc, arguments)¶
- class rafcon.gui.action.RemoveObjectAction(parent_path, state_machine_model, overview)¶
Bases:
Action
- adjust_linkage()¶
- as_dict()¶
- correct_reference_state(state, state_image_of_state, storage_path)¶
- get_object_identifier()¶
- possible_method_names = ['remove_state', 'remove_outcome', 'remove_input_data_port', 'remove_output_data_port', 'remove_transition', 'remove_data_flow', 'remove_scoped_variable']¶
- redo()¶
General Redo, that takes all elements in the parent path state stored of the before action state machine status. :return:
- set_after(overview)¶
- undo()¶
General Undo, that takes all elements in the parent path state stored of the after action state machine status. :return:
- class rafcon.gui.action.ScopedVariableAction(parent_path, state_machine_model, overview)¶
Bases:
DataPortAction
- class rafcon.gui.action.StateAction(parent_path, state_machine_model, overview)¶
Bases:
Action
- as_dict()¶
- static get_set_of_arguments(s)¶
- possible_args = ['name', 'description', 'script_text', 'start_state_id', 'library_name', 'library_path', 'version', 'state_copy', 'input_data_port_runtime_values', 'output_data_port_runtime_values', 'use_runtime_value_input_data_ports', 'use_runtime_value_output_data_ports', 'set_input_runtime_value', 'set_output_runtime_value', 'set_use_input_runtime_value', 'set_use_output_runtime_value', 'semantic_data']¶
- possible_method_names = ['parent', 'name', 'description', 'script', 'script_text', 'outcomes', 'input_data_ports', 'output_data_ports', 'states', 'scoped_variables', 'data_flows', 'transitions', 'start_state_id', 'change_state_type', 'add_input_data_port', 'remove_input_data_port', 'add_output_data_port', 'remove_output_data_port', 'set_input_runtime_value', 'set_output_runtime_value', 'set_use_input_runtime_value', 'set_use_output_runtime_value', 'input_data_port_runtime_values', 'output_data_port_runtime_values', 'use_runtime_value_input_data_ports', 'use_runtime_value_output_data_ports', 'group_states', 'ungroup_state', 'substitute_state', 'paste', 'cut', 'semantic_data', 'add_semantic_data', 'remove_semantic_data']¶
- redo()¶
General Redo, that takes all elements in the parent path state stored of the before action state machine status. :return:
- set_after(overview)¶
- substitute_dict = {'set_input_runtime_value': 'input_data_port_runtime_values', 'set_output_runtime_value': 'output_data_port_runtime_values', 'set_use_input_runtime_value': 'use_runtime_value_input_data_ports', 'set_use_output_runtime_value': 'use_runtime_value_output_data_ports'}¶
- undo()¶
General Undo, that takes all elements in the parent path state stored of the after action state machine status. :return:
- update_property_from_image(s, arguments)¶
- class rafcon.gui.action.StateElementAction(parent_path, state_machine_model, overview)¶
Bases:
AbstractAction
- after_arguments = None¶
- as_dict()¶
- static get_set_of_arguments(elem)¶
- get_state_image()¶
- possible_args = []¶
- possible_method_names = []¶
- set_after(overview)¶
- class rafcon.gui.action.StateImage(core_data, meta_data, state_path, semantic_data, file_system_path, script_text, children)¶
Bases:
tuple
- children¶
Alias for field number 6
- core_data¶
Alias for field number 0
- file_system_path¶
Alias for field number 4
- meta_data¶
Alias for field number 1
- script_text¶
Alias for field number 5
- semantic_data¶
Alias for field number 3
- state_path¶
Alias for field number 2
- class rafcon.gui.action.StateMachineAction(parent_path, state_machine_model, overview)¶
Bases:
Action
,ModelMT
The state machine action is currently only used for root state type changes and their undo/redo functionality.
- action_signal(model, prop_name, info)¶
- redo()¶
General Redo, that takes all elements in the parent path state stored of the before action state machine status. :return:
- undo()¶
General Undo, that takes all elements in the parent and :return:
- update_root_state_from_image(state, state_image)¶
- class rafcon.gui.action.TransitionAction(parent_path, state_machine_model, overview)¶
Bases:
StateElementAction
- static get_set_of_arguments(t)¶
- possible_args = ['from_state', 'from_outcome', 'to_state', 'to_key']¶
- possible_method_names = ['modify_origin', 'from_state', 'from_outcome', 'modify_target', 'to_state', 'to_outcome']¶
- redo()¶
- undo()¶
- update_transition_from_image(t, arguments)¶
- rafcon.gui.action.check_state_model_for_is_start_state(state_model)¶
- rafcon.gui.action.create_state_from_image(state_image)¶
- rafcon.gui.action.create_state_image(state_m)¶
Generates a tuple that holds the state as yaml-strings and its meta data in a dictionary. The tuple consists of: [0] json_str for state, [1] dict of child_state tuples, [2] dict of model_meta-data of self and elements [3] path of state in state machine [4] script_text [5] file system path [6] semantic data # states-meta - [state-, transitions-, data_flows-, outcomes-, inputs-, outputs-, scopes, states-meta]
- Parameters:
state (rafcon.core.states.state.State) – The state that should be stored
- Returns:
state_tuple tuple
- rafcon.gui.action.get_state_element_meta(state_model, with_parent_linkage=True, with_verbose=False, level=None)¶
- rafcon.gui.action.insert_state_meta_data(meta_dict, state_model, with_verbose=False, level=None)¶
- rafcon.gui.action.meta_dump_or_deepcopy(meta)¶
Function to observe meta data vivi-dict copy process and to debug it at one point
clipboard¶
- class rafcon.gui.clipboard.Clipboard¶
Bases:
Observable
A class to hold models and selection for later usage in cut/paste or copy/paste actions. In cut/paste action the selection stored is used while later paste. In a copy/paste actions
- copy(selection, smart_selection_adaption=True)¶
Copy all selected items to the clipboard using smart selection adaptation by default
- Parameters:
selection – the current selection
smart_selection_adaption (bool) – flag to enable smart selection adaptation mode
- Returns:
- cut(selection, smart_selection_adaption=False)¶
Cuts all selected items and copy them to the clipboard using smart selection adaptation by default
- Parameters:
selection – the current selection
smart_selection_adaption (bool) – flag to enable smart selection adaptation mode
- Returns:
- destroy()¶
Destroys the clipboard by relieving all model references.
- static destroy_all_models_in_dict(target_dict)¶
Method runs the prepare destruction method of models which are assumed in list or tuple as values within a dict
- static do_selection_reduction_to_one_parent(selection)¶
Find and reduce selection to one parent state.
- Parameters:
selection –
- Returns:
state model which is parent of selection or None if root state
- static do_smart_selection_adaption(selection, parent_m)¶
Reduce and extend transition and data flow element selection if already enclosed by selection
The smart selection adaptation checks and ignores directly data flows and transitions which are selected without selected related origin or targets elements. Additional the linkage (data flows and transitions) if those origins and targets are covered by the selected elements is added to the selection. Thereby the selection it self is manipulated to provide direct feedback to the user.
- Parameters:
selection –
parent_m –
- Returns:
- get_action_arguments(target_state_m)¶
Collect argument attributes for action signal
Use non empty list dict to create arguments for action signal msg and logger messages. The action parent model can be different then the target state model because logical and data port changes also may influence the linkage, see action-module (undo/redo).
- Parameters:
target_state_m (rafcon.gui.models.abstract_state.AbstractStateModel) – State model of target of action
- Returns:
dict with lists of elements part of the action, action parent model
- get_semantic_dictionary_list()¶
- paste(target_state_m, cursor_position=None, limited=None, convert=False)¶
Paste objects to target state
The method checks whether the target state is a execution state or a container state and inserts respective elements and notifies the user if the parts can not be insert to the target state. - for ExecutionStates outcomes, input- and output-data ports can be inserted - for ContainerState additional states, scoped variables and data flows and/or transitions (if related) can be inserted
Related data flows and transitions are determined by origin and target keys and respective objects which has to be in the state machine selection, too. Thus, transitions or data flows without the related objects are not copied. :param target_state_m: state in which the copied/cut elements should be insert :param cursor_position: cursor position relative to the target_state_m as item coordinates, used to adapt meta data positioning of elements e.g states and via points. :return:
- prepare_new_copy()¶
- reset_clipboard_mapping_dicts()¶
Reset mapping dictionaries
- set_semantic_dictionary_list(semantic_data)¶
- rafcon.gui.clipboard.singular_form(name)¶
shortcut_manager¶
- class rafcon.gui.shortcut_manager.ShortcutManager(window)¶
Bases:
object
Handles shortcuts
Holds a mapping between shortcuts and action. Actions can be subscribed to. When a listed shortcut is triggered, all subscribers are notified.
- add_callback_for_action(action, callback)¶
Adds a callback function to an action
The method checks whether both action and callback are valid. If so, the callback is added to the list of functions called when the action is triggered.
- destroy()¶
- register_shortcuts()¶
- remove_callback_for_action(action, callback)¶
Remove a callback for a specific action
This is mainly for cleanup purposes or a plugin that replaces a GUI widget.
- Parameters:
action (str) – the cation of which the callback is going to be remove
callback – the callback to be removed
- remove_callbacks_for_controller(controller)¶
- remove_shortcuts()¶
- trigger_action(action, key_value, modifier_mask, **kwargs)¶
Calls the appropriate callback function(s) for the given action
- Parameters:
action (str) – The name of the action that was triggered
key_value – The key value of the shortcut that caused the trigger
modifier_mask – The modifier mask of the shortcut that caused the trigger
cursor_position – The position of the cursor, relative to the main window.
- Returns:
Whether a callback was triggered
- Return type:
- update_shortcuts()¶