| 135 | |
| 136 | |
| 137 | struct CableAdd : Action { |
| 138 | int64_t cableId = -1; |
| 139 | int64_t inputModuleId = -1; |
| 140 | int inputId = -1; |
| 141 | int64_t outputModuleId = -1; |
| 142 | int outputId = -1; |
| 143 | NVGcolor color = color::BLACK_TRANSPARENT; |
| 144 | void setCable(app::CableWidget* cw); |
| 145 | bool isCable(app::CableWidget* cw) const; |
| 146 | void undo() override; |
| 147 | void redo() override; |
| 148 | CableAdd() { |
| 149 | name = "add cable"; |
| 150 | } |
| 151 | }; |
| 152 | |
| 153 | |
| 154 | struct CableRemove : InverseAction<CableAdd> { |
nothing calls this directly
no outgoing calls
no test coverage detected