-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25d652a
commit 30e617b
Showing
10 changed files
with
366 additions
and
30 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
SBOLCanvasFrontend/src/app/download-graph/download-graph.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
SBOLCanvasFrontend/src/app/save-graph/save-graph.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 44 additions & 18 deletions
62
SBOLCanvasFrontend/src/app/toolbar/toolbar.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,106 @@ | ||
<mat-toolbar color="primary"> | ||
<!-- style="background-image:url('assets/banner.png'); background-repeat:no-repeat; background-position:center; background-size:contain">--> | ||
|
||
<!-- menu --> | ||
<mat-toolbar-row class="toolbar-row"> | ||
|
||
<!-- <mat-divider class="toolbar-divider-style-fix" [vertical]="true"></mat-divider>--> | ||
|
||
<!-- <span class="toolbar-spacer"></span>--> | ||
|
||
<!-- <mat-divider class="toolbar-divider-style-fix" [vertical]="true"></mat-divider>--> | ||
|
||
<!-- File menu--> | ||
<button mat-stroked-button class="toolbar-row-button" [matMenuTriggerFor]="fileMenu">File</button> | ||
<mat-menu #fileMenu="matMenu"> | ||
<span style="font-family:sans-serif;font-size:.8em;color:gray;">SynBioHub</span> | ||
|
||
<button mat-menu-item class="toolbar-row-button" | ||
(click)="openUploadDialog()">Upload</button> | ||
[matTooltip]="'Save module to SynBioHub'" | ||
(click)="openSaveDialog()">Save</button> | ||
|
||
<button mat-menu-item class="toolbar-row-button" | ||
(click)="openDownloadDialog()">Download</button> | ||
[matTooltip]="'Load module from SynBioHub'" | ||
(click)="openLoadDialog()">Load</button> | ||
|
||
<span style="font-family:sans-serif;font-size:.8em;color:gray;">Local Device</span> | ||
|
||
<button mat-menu-item class="toolbar-row-button" | ||
(click)="openSaveDialog()">Save</button> | ||
[matTooltip]="'Download module as xml'" | ||
(click)="openDownloadDialog()">Download</button> | ||
|
||
<button mat-menu-item class="toolbar-row-button" | ||
(click)="openLoadDialog()">Load</button> | ||
[matTooltip]="'Upload module from xml'" | ||
(click)="openUploadDialog()">Upload</button> | ||
|
||
<button mat-menu-item class="toolbar-row-button" | ||
[matTooltip]="'Export diagram as picture'" | ||
(click)="openExportDialog()">Export</button> | ||
</mat-menu> | ||
|
||
<!-- View menu--> | ||
<button mat-stroked-button class="toolbar-row-button" [matMenuTriggerFor]="viewMenu">View</button> | ||
<mat-menu #viewMenu="matMenu"> | ||
<button mat-menu-item class="toolbar-row-button" | ||
[matTooltip]="'Focus in the selected part to view and edit its subparts'" | ||
(click)="graphService.enterGlyph()">Enter Glyph</button> | ||
|
||
<button mat-menu-item class="toolbar-row-button" | ||
[matTooltip]="'Focus out to the parent part'" | ||
(click)="graphService.exitGlyph()">Exit Glyph</button> | ||
|
||
<button mat-menu-item class="toolbar-row-button" | ||
(click)="graphService.zoomIn()">Zoom In</button> | ||
|
||
<button mat-menu-item class="toolbar-row-button" | ||
(click)="graphService.zoomOut()">Zoom Out</button> | ||
[matTooltip]="'Show or hide scar glyphs'" | ||
(click)="graphService.toggleScars()">Toggle Scar Visibility</button> | ||
|
||
<button mat-menu-item class="toolbar-row-button" | ||
[matTooltip]="'Center camera so all parts are visible'" | ||
(click)="graphService.fitCamera()">Reset View</button> | ||
|
||
<button mat-menu-item class="toolbar-row-button" | ||
[matTooltip]="'Return to 100% zoom'" | ||
(click)="graphService.setZoom(1)">Reset Zoom</button> | ||
</mat-menu> | ||
|
||
<mat-form-field style="max-width: 70px;"> | ||
<mat-divider class="toolbar-divider-style-fix" [vertical]="true"></mat-divider> | ||
|
||
<mat-form-field class="zoom-input" [matTooltip]="'Camera zoom'"> | ||
<input matInput (change)="zoomChanged($event)" [value]="getZoomDisplayValue()"> | ||
</mat-form-field> | ||
|
||
<button mat-stroked-button class="toolbar-row-button" | ||
[matTooltip]="'Zoom in'" | ||
(click)="graphService.zoomIn()"><mat-icon>zoom_in</mat-icon></button> | ||
|
||
<button mat-stroked-button class="toolbar-row-button" | ||
[matTooltip]="'Zoom out'" | ||
(click)="graphService.zoomOut()"><mat-icon>zoom_out</mat-icon></button> | ||
|
||
<mat-divider class="toolbar-divider-style-fix" [vertical]="true"></mat-divider> | ||
|
||
<button mat-stroked-button class="toolbar-row-button" | ||
[matTooltip]="'Delete selected parts'" | ||
(click)="graphService.delete()"><mat-icon>delete</mat-icon></button> | ||
|
||
<button mat-stroked-button class="toolbar-row-button" | ||
[matTooltip]="'Undo'" | ||
(click)="graphService.undo()"><mat-icon>undo</mat-icon></button> | ||
|
||
<button mat-stroked-button class="toolbar-row-button" | ||
[matTooltip]="'Redo'" | ||
(click)="graphService.redo()"><mat-icon>redo</mat-icon></button> | ||
|
||
<mat-divider class="toolbar-divider-style-fix" [vertical]="true"></mat-divider> | ||
|
||
<button mat-stroked-button class="toolbar-row-button" | ||
[matTooltip]="'Flip selected part\'s orientation'" | ||
(click)="graphService.flipSequenceFeatureGlyph()"><mat-icon>swap_vert</mat-icon></button> | ||
|
||
<button mat-stroked-button class="toolbar-row-button" | ||
(click)="graphService.flipSequenceFeatureGlyph()">Flip</button> | ||
[matTooltip]="'Bring selected part to front'" | ||
(click)="graphService.sendSelectionToFront()"><mat-icon>flip_to_back</mat-icon></button> | ||
|
||
<button mat-stroked-button class="toolbar-row-button" | ||
(click)="graphService.toggleScars()">Toggle Scars</button> | ||
[matTooltip]="'Send selected part to back'" | ||
(click)="graphService.sendSelectionToBack()"><mat-icon>flip_to_front</mat-icon></button> | ||
|
||
<span class="toolbar-spacer"></span> | ||
|
||
<img src="assets/banner.png" | ||
style="max-width:100%;max-height:100%"/> | ||
|
||
</mat-toolbar-row> | ||
</mat-toolbar> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.