@@ -18,11 +18,12 @@ import './zeroline/substation-editor.js';
18
18
import './zeroline/ied-editor.js' ;
19
19
import { Settings } from './Setting.js' ;
20
20
import { communicationMappingWizard } from './wizards/commmap-wizards.js' ;
21
- import { gooseIcon } from './icons.js' ;
21
+ import { gooseIcon , smvIcon } from './icons.js' ;
22
22
import { isPublic , newWizardEvent } from './foundation.js' ;
23
23
import { selectGseControlWizard } from './wizards/gsecontrol.js' ;
24
24
import { wizards } from './wizards/wizard-library.js' ;
25
25
import { getAttachedIeds } from './zeroline/foundation.js' ;
26
+ import { selectSampledValueControlWizard } from './wizards/sampledvaluecontrol.js' ;
26
27
27
28
function shouldShowIEDs ( ) : boolean {
28
29
return localStorage . getItem ( 'showieds' ) === 'on' ;
@@ -47,6 +48,7 @@ export class ZerolinePane extends LitElement {
47
48
@query ( '#commmap' ) commmap ! : IconButton ;
48
49
@query ( '#showieds' ) showieds ! : IconButtonToggle ;
49
50
@query ( '#gsecontrol' ) gsecontrol ! : IconButton ;
51
+ @query ( '#smvcontrol' ) smvcontrol ! : IconButton ;
50
52
@query ( '#createsubstation' ) createsubstation ! : IconButton ;
51
53
52
54
openCommunicationMapping ( ) : void {
@@ -65,6 +67,11 @@ export class ZerolinePane extends LitElement {
65
67
if ( wizard ) this . dispatchEvent ( newWizardEvent ( wizard ) ) ;
66
68
}
67
69
70
+ openSampledValueControlSelection ( ) : void {
71
+ const wizard = selectSampledValueControlWizard ( this . doc . documentElement ) ;
72
+ if ( wizard ) this . dispatchEvent ( newWizardEvent ( wizard ) ) ;
73
+ }
74
+
68
75
toggleShowIEDs ( ) : void {
69
76
if ( shouldShowIEDs ( ) ) setShowIEDs ( 'off' ) ;
70
77
else setShowIEDs ( 'on' ) ;
@@ -119,6 +126,13 @@ export class ZerolinePane extends LitElement {
119
126
> ${ gooseIcon } </ mwc- icon- butto n
120
127
> </ abbr
121
128
>
129
+ <abbr title= "${ translate ( 'zeroline.smvcontrol' ) } "
130
+ > <mwc- icon- butto n
131
+ id= "smvcontrol"
132
+ @click = "${ ( ) => this . openSampledValueControlSelection ( ) } "
133
+ > ${ smvIcon } </ mwc- icon- butto n
134
+ > </ abbr
135
+ >
122
136
</ nav>
123
137
</ h1>
124
138
${ this . renderIedContainer ( ) }
0 commit comments