Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
a7244567
Commit
a7244567
authored
Jan 30, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Button for eventlog added to operator window menu
parent
d6b0bc68
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
6 deletions
+39
-6
java/jpwr/jop/src/JopOpWindow.java
java/jpwr/jop/src/JopOpWindow.java
+17
-3
java/jpwr/jop/src/JopSession.java
java/jpwr/jop/src/JopSession.java
+5
-1
java/jpwr/jop/src/JopSessionIfc.java
java/jpwr/jop/src/JopSessionIfc.java
+2
-1
java/jpwr/jop/src/JopSessionRep.java
java/jpwr/jop/src/JopSessionRep.java
+15
-1
No files found.
java/jpwr/jop/src/JopOpWindow.java
View file @
a7244567
/*
/*
* Proview $Id: JopOpWindow.java,v 1.
6 2006-03-28 06:14:38
claes Exp $
* Proview $Id: JopOpWindow.java,v 1.
7 2007-01-30 06:52:55
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
* Copyright (C) 2005 SSAB Oxelsund AB.
*
*
* This program is free software; you can redistribute it and/or
* This program is free software; you can redistribute it and/or
...
@@ -83,6 +83,16 @@ public class JopOpWindow extends JPanel {
...
@@ -83,6 +83,16 @@ public class JopOpWindow extends JPanel {
this
.
add
(
button
);
this
.
add
(
button
);
}
}
s
=
sret
.
str
+
".EnableEventLog"
;
iret
=
en
.
gdh
.
getObjectInfoInt
(
s
);
if
(
iret
.
evenSts
())
return
;
if
(
iret
.
value
!=
0
)
{
button
=
new
OpWindButton
(
session
,
""
,
"Eventlog"
,
OpWindButton
.
EVENTLOG
);
this
.
add
(
button
);
}
s
=
sret
.
str
+
".EnableNavigator"
;
s
=
sret
.
str
+
".EnableNavigator"
;
iret
=
en
.
gdh
.
getObjectInfoInt
(
s
);
iret
=
en
.
gdh
.
getObjectInfoInt
(
s
);
if
(
iret
.
evenSts
())
return
;
if
(
iret
.
evenSts
())
return
;
...
@@ -164,8 +174,9 @@ public class JopOpWindow extends JPanel {
...
@@ -164,8 +174,9 @@ public class JopOpWindow extends JPanel {
public
static
final
int
LOGIN
=
3
;
public
static
final
int
LOGIN
=
3
;
public
static
final
int
NAVIGATOR
=
4
;
public
static
final
int
NAVIGATOR
=
4
;
public
static
final
int
ALARMLIST
=
5
;
public
static
final
int
ALARMLIST
=
5
;
public
static
final
int
HELP
=
6
;
public
static
final
int
EVENTLOG
=
6
;
public
static
final
int
PROVIEW
=
7
;
public
static
final
int
HELP
=
7
;
public
static
final
int
PROVIEW
=
8
;
JopSession
session
;
JopSession
session
;
String
action
;
String
action
;
int
type
;
int
type
;
...
@@ -196,6 +207,9 @@ public class JopOpWindow extends JPanel {
...
@@ -196,6 +207,9 @@ public class JopOpWindow extends JPanel {
case
ALARMLIST:
case
ALARMLIST:
session
.
openAlarmList
();
session
.
openAlarmList
();
break
;
break
;
case
EVENTLOG:
session
.
openEventLog
();
break
;
case
HELP:
case
HELP:
session
.
executeCommand
(
"help index"
);
session
.
executeCommand
(
"help index"
);
break
;
break
;
...
...
java/jpwr/jop/src/JopSession.java
View file @
a7244567
/*
/*
* Proview $Id: JopSession.java,v 1.
4 2005-09-01 14:57:50
claes Exp $
* Proview $Id: JopSession.java,v 1.
5 2007-01-30 06:52:55
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
* Copyright (C) 2005 SSAB Oxelsund AB.
*
*
* This program is free software; you can redistribute it and/or
* This program is free software; you can redistribute it and/or
...
@@ -84,6 +84,10 @@ public class JopSession {
...
@@ -84,6 +84,10 @@ public class JopSession {
((
JopSessionIfc
)
sessionRep
).
openAlarmList
();
((
JopSessionIfc
)
sessionRep
).
openAlarmList
();
}
}
public
void
openEventLog
()
{
((
JopSessionIfc
)
sessionRep
).
openEventLog
();
}
public
void
openLogin
()
{
public
void
openLogin
()
{
((
JopSessionIfc
)
sessionRep
).
openLogin
();
((
JopSessionIfc
)
sessionRep
).
openLogin
();
}
}
...
...
java/jpwr/jop/src/JopSessionIfc.java
View file @
a7244567
/*
/*
* Proview $Id: JopSessionIfc.java,v 1.
4 2005-09-01 14:57:50
claes Exp $
* Proview $Id: JopSessionIfc.java,v 1.
5 2007-01-30 06:52:55
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
* Copyright (C) 2005 SSAB Oxelsund AB.
*
*
* This program is free software; you can redistribute it and/or
* This program is free software; you can redistribute it and/or
...
@@ -32,6 +32,7 @@ public interface JopSessionIfc {
...
@@ -32,6 +32,7 @@ public interface JopSessionIfc {
public
void
removeUtility
(
Object
utility
);
public
void
removeUtility
(
Object
utility
);
public
void
openNavigator
(
PwrtObjid
oid
);
public
void
openNavigator
(
PwrtObjid
oid
);
public
void
openAlarmList
();
public
void
openAlarmList
();
public
void
openEventLog
();
public
void
openLogin
();
public
void
openLogin
();
public
void
openGraphFrame
(
String
name
,
String
instance
,
boolean
scrollbar
,
boolean
classGraph
);
public
void
openGraphFrame
(
String
name
,
String
instance
,
boolean
scrollbar
,
boolean
classGraph
);
public
void
openFlowFrame
(
PwrtObjid
oid
,
String
center
);
public
void
openFlowFrame
(
PwrtObjid
oid
,
String
center
);
...
...
java/jpwr/jop/src/JopSessionRep.java
View file @
a7244567
/*
/*
* Proview $Id: JopSessionRep.java,v 1.
9 2006-06-16 05:09:38
claes Exp $
* Proview $Id: JopSessionRep.java,v 1.
10 2007-01-30 06:52:55
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
* Copyright (C) 2005 SSAB Oxelsund AB.
*
*
* This program is free software; you can redistribute it and/or
* This program is free software; you can redistribute it and/or
...
@@ -30,6 +30,7 @@ public class JopSessionRep implements JopSessionIfc {
...
@@ -30,6 +30,7 @@ public class JopSessionRep implements JopSessionIfc {
JopSession
session
;
JopSession
session
;
XttTree
navigator
;
XttTree
navigator
;
MhFrame
alarmList
;
MhFrame
alarmList
;
HistSearch
eventLog
;
JopLoginFrame
login
;
JopLoginFrame
login
;
//Vector<Object> frames = new Vector<Object>();
//Vector<Object> frames = new Vector<Object>();
Vector
frames
=
new
Vector
();
Vector
frames
=
new
Vector
();
...
@@ -82,6 +83,19 @@ public class JopSessionRep implements JopSessionIfc {
...
@@ -82,6 +83,19 @@ public class JopSessionRep implements JopSessionIfc {
}
}
}
}
public
void
openEventLog
()
{
if
(
eventLog
==
null
)
{
eventLog
=
new
HistSearch
(
""
,
session
);
eventLog
.
setVisible
(
true
);
}
else
{
eventLog
.
setVisible
(
true
);
eventLog
.
setState
(
Frame
.
NORMAL
);
eventLog
.
toFront
();
// alarmList.requestFocus(); // Has no effect...
}
}
public
void
openLogin
()
{
public
void
openLogin
()
{
if
(
login
==
null
)
{
if
(
login
==
null
)
{
login
=
new
JopLoginFrame
(
session
);
login
=
new
JopLoginFrame
(
session
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment