new ControlsWaiter(app, manager)
Waiter to handle events related to the CyberChef controls (i.e. Bake, Step, Save, Load etc.)
Parameters:
Name | Type | Description |
---|---|---|
app |
HTMLApp | The main view object for CyberChef. |
manager |
Manager | The CyberChef event manager. |
- Copyright:
-
- Crown Copyright 2016
- License:
-
- Apache-2.0
- Source:
Methods
-
adjust_width()
-
Adjusts the display properties of the control buttons so that they fit within the current width
without wrapping or overflowing.- Source:
-
set_auto_bake(value)
-
Checks or unchecks the Auto Bake checkbox based on the given value.
Parameters:
Name Type Description value
boolean The new value for Auto Bake.
- Source:
-
bake_click()
-
Handler to trigger baking.
- Source:
-
step_click()
-
Handler for the 'Step through' command. Executes the next step of the recipe.
- Source:
-
auto_bake_change()
-
Handler for changes made to the Auto Bake checkbox.
- Source:
-
clear_recipe_click()
-
Handler for the 'Clear recipe' command. Removes all operations from the recipe.
- Source:
-
clear_breaks_click()
-
Handler for the 'Clear breakpoints' command. Removes all breakpoints from operations in the
recipe.- Source:
-
initialise_save_link( [recipe_config])
-
Populates the save disalog box with a URL incorporating the recipe and input.
Parameters:
Name Type Argument Description recipe_config
Array.<Object> <optional>
The recipe configuration object array.
- Source:
-
generate_state_url(include_recipe, include_input [, recipe_config])
-
Generates a URL containing the current recipe and input state.
Parameters:
Name Type Argument Description include_recipe
boolean Whether to include the recipe in the URL.
include_input
boolean Whether to include the input in the URL.
recipe_config
Array.<Object> <optional>
The recipe configuration object array.
- Source:
Returns:
- Type
- string
-
save_text_change()
-
Handler for changes made to the save dialog text area. Re-initialises the save link.
- Source:
-
save_click()
-
Handler for the 'Save' command. Pops up the save dialog box.
- Source:
-
slr_check_change()
-
Handler for the save link recipe checkbox change event.
- Source:
-
sli_check_change()
-
Handler for the save link input checkbox change event.
- Source:
-
load_click()
-
Handler for the 'Load' command. Pops up the load dialog box.
- Source:
-
save_button_click()
-
Saves the recipe specified in the save textarea to local storage.
- Source:
-
populate_load_recipes_list()
-
Populates the list of saved recipes in the load dialog box from local storage.
- Source:
-
load_delete_click()
-
Removes the currently selected recipe from local storage.
- Source:
-
load_name_change()
-
Displays the selected recipe in the load text box.
- Source:
-
load_button_click()
-
Loads the selected recipe and populates the Recipe with its operations.
- Source: