Skip to content

Commit

Permalink
doc replace
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzhornyak committed May 24, 2023
1 parent 05f1c70 commit cefc472
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions Doc/ChartDesignPanel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<a name="top-anchor"/>

| [Contents](../README.md#table-of-contents) | [SCXML Wiki](https://alexzhornyak.github.io/SCXML-tutorial/) | [Forum](https://github.com/alexzhornyak/ScxmlEditor-Tutorial/discussions) |
|---|---|---|

# Chart Design Panel

## Replace
Replace is performed in scope of selected shape

![img](../Images/chart_replace.png)

1. Select shape in the chart hierarchy from which to start replace
> NOTE: if you want to replace text in all chart, select root shape
2. Press `Ctrl+R`

3. Fill fields in replace dialog and press `Replace` button
![](../Images/chart_replace_dialog.png)

4. Select items that must be replaced and press `Reply` button
![](../Images/chart_replace_refactor.png)

### Regex Replace Example
Replace dialog has an option to switch replace with usage of regular expressions. In given example all transitions with the names `Transition_3`, `Transition_4` are swapped with regex groups to `3_Transition`, `4_Transition`, etc.

![](../Images/chart_replace_regex.png)

| [TOP](#top-anchor) | [Contents](../README.md#table-of-contents) | [SCXML Wiki](https://alexzhornyak.github.io/SCXML-tutorial/) | [Forum](https://github.com/alexzhornyak/ScxmlEditor-Tutorial/discussions) |
|---|---|---|---|
Binary file added Images/chart_replace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/chart_replace_dialog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/chart_replace_refactor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/chart_replace_regex.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ Current binaries are compiled with single development licensies registered by th
- Side toolbar
- Tool (bookmarks) panel
- Shapes panel
- Chart design panel
- [Chart design panel](Doc/ChartDesignPanel.md)
- States and children (Shapes)
- [Transitions (Connections)](Doc/Transitions.md)
- [Smart Switch Transitions](Doc/SmartSwitchTransitions.md)
Expand Down

0 comments on commit cefc472

Please sign in to comment.