| 103 | |
| 104 | |
| 105 | struct CableColorItem : ui::ColorDotMenuItem { |
| 106 | CableWidget* cw; |
| 107 | |
| 108 | void onAction(const ActionEvent& e) override { |
| 109 | // history::CableColorChange |
| 110 | history::CableColorChange* h = new history::CableColorChange; |
| 111 | h->setCable(cw); |
| 112 | h->newColor = color; |
| 113 | h->oldColor = cw->color; |
| 114 | APP->history->push(h); |
| 115 | |
| 116 | cw->color = color; |
| 117 | } |
| 118 | }; |
| 119 | |
| 120 | |
| 121 | struct PortCableItem : ui::ColorDotMenuItem { |
nothing calls this directly
no outgoing calls
no test coverage detected