Mercurial > hg > ugly-duckling
annotate src/app/app.component.html @ 464:50f61d1945db
Hook up some buttons for navigating history (undo / redo). Some refactoring to allow for the audio player to get updated as a consequence of a state change (the audio related to the current top of the stack is used).
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Fri, 30 Jun 2017 14:01:22 +0100 |
parents | 7bb0bac6f8dc |
children | ae96db60f25c |
rev | line source |
---|---|
dev@236 | 1 <div class="ugly-container"> |
dev@236 | 2 <div class="ugly-header"> |
dev@190 | 3 <md-toolbar color="primary"> |
dev@190 | 4 <md-icon svgIcon="duck"></md-icon> |
dev@102 | 5 |
dev@236 | 6 <span class="ugly-toolbar-filler"></span> |
dev@102 | 7 |
dev@236 | 8 <ugly-playback-control></ugly-playback-control> |
dev@190 | 9 <ugly-recording-control |
dev@456 | 10 (finishedRecording)="onFileOpened($event, true); tray.close()" |
dev@190 | 11 ></ugly-recording-control> |
dev@102 | 12 |
dev@190 | 13 <!-- This fills the remaining space of the current row --> |
dev@236 | 14 <span class="ugly-toolbar-filler"></span> |
dev@1 | 15 |
dev@13 | 16 |
dev@236 | 17 <ugly-audio-file-open |
dev@435 | 18 (fileOpened)="onFileOpened($event); tray.close()" |
dev@236 | 19 ></ugly-audio-file-open> |
dev@423 | 20 <button md-icon-button (click)="tray.toggle()"> |
dev@190 | 21 <md-icon>extension</md-icon> |
dev@190 | 22 </button> |
dev@464 | 23 <button md-icon-button (click)="analyses.stepBack()"> |
dev@464 | 24 <md-icon>undo</md-icon> |
dev@464 | 25 </button> |
dev@464 | 26 <button md-icon-button (click)="analyses.stepForward()"> |
dev@464 | 27 <md-icon>redo</md-icon> |
dev@464 | 28 </button> |
dev@190 | 29 </md-toolbar> |
dev@190 | 30 </div> |
dev@7 | 31 |
dev@427 | 32 <ugly-action-tray #tray> |
dev@427 | 33 <ugly-feature-extraction-menu |
dev@436 | 34 (requestOutput)="tray.close(); extractFeatures($event)" |
dev@427 | 35 [disabled]="!canExtract" |
dev@427 | 36 > |
dev@427 | 37 </ugly-feature-extraction-menu> |
dev@427 | 38 </ugly-action-tray> |
dev@236 | 39 <div class="ugly-content"> |
dev@419 | 40 <ugly-notebook-feed |
dev@456 | 41 (removeItem)="removeItem($event)" |
dev@419 | 42 [analyses]="analyses.toIterable()" |
dev@419 | 43 [onSeek]="onSeek"></ugly-notebook-feed> |
dev@190 | 44 </div> |
dev@190 | 45 </div> |