File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 < mat-icon > arrow_drop_down</ mat-icon >
66 </ button >
77 < mat-menu #menu ="matMenu " [overlapTrigger] ="false " yPosition ="below ">
8- < button *ngFor ="let tool of toolNames " mat-menu-item (value) ="tool " (click) ="onChangeTool(tool) "> {{ tool }}</ button >
8+ < button *ngFor ="let tool of toolNames " mat-menu-item (value) ="tool " (click) ="onChangeTool(tool) "> {{ tool
9+ }}</ button >
910 </ mat-menu >
1011
1112 < button mat-raised-button color ="primary " (click) ="onReset() " [disabled] ="!dataLoaded "> Reset</ button >
13+ < button mat-raised-button color ="primary " (click) ="onUndo() " [disabled] ="!dataLoaded "> undo</ button >
14+ < button mat-raised-button color ="primary " (click) ="onRedo() " [disabled] ="!dataLoaded "> redo</ button >
1215 < button mat-raised-button color ="primary " (click) ="openTagsDialog() " [disabled] ="!dataLoaded "> Tags</ button >
1316 </ div >
1417 < div class ="layerContainer ">
1821 </ div >
1922 < div class ="legend mat-small ">
2023 < p > Powered by
21- < a href ="https://github.com/ivmartel/dwv "> dwv</ a >
22- {{ versions.dwv }}
23- and Angular {{ versions.angular }}</ p > </ div >
24- </ div >
24+ < a href ="https://github.com/ivmartel/dwv "> dwv</ a >
25+ {{ versions.dwv }}
26+ and Angular {{ versions.angular }}
27+ </ p >
28+ </ div >
29+ </ div >
Original file line number Diff line number Diff line change @@ -168,6 +168,20 @@ export class DwvComponent implements OnInit {
168168 }
169169 }
170170
171+ /**
172+ * handle an undo event
173+ */
174+ onUndo ( ) {
175+ this . dwvApp . undo ( ) ;
176+ }
177+
178+ /**
179+ * handle a redo event
180+ */
181+ redo ( ) {
182+ this . dwvApp . redo ( ) ;
183+ }
184+
171185 /**
172186 * Open the DICOM tags dialog.
173187 */
You can’t perform that action at this time.
0 commit comments