Commit d7643d39 authored by claes's avatar claes

Button Proview added

parent b6b87d72
...@@ -77,6 +77,9 @@ public class JopOpWindow extends JPanel { ...@@ -77,6 +77,9 @@ public class JopOpWindow extends JPanel {
button = new OpWindButton( session, "", "Help", button = new OpWindButton( session, "", "Help",
OpWindButton.HELP); OpWindButton.HELP);
this.add( button); this.add( button);
button = new OpWindButton( session, "", "Proview",
OpWindButton.PROVIEW);
this.add( button);
this.add( new JSeparator()); this.add( new JSeparator());
CdhrString sretName = null; CdhrString sretName = null;
...@@ -143,6 +146,7 @@ public class JopOpWindow extends JPanel { ...@@ -143,6 +146,7 @@ public class JopOpWindow extends JPanel {
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 HELP = 6;
public static final int PROVIEW = 7;
JopSession session; JopSession session;
String action; String action;
int type; int type;
...@@ -176,8 +180,11 @@ public class JopOpWindow extends JPanel { ...@@ -176,8 +180,11 @@ public class JopOpWindow extends JPanel {
case HELP: case HELP:
session.executeCommand("help index"); session.executeCommand("help index");
break; break;
case PROVIEW:
session.executeCommand("open url \"$pwr_doc/index.html\"");
break;
case WEBGRAPH: case WEBGRAPH:
session.openGraphFrame( action, instance, scrollbar); session.openGraphFrame( action, instance, scrollbar, false);
break; break;
case WEBLINK: case WEBLINK:
String cmd = "open url \"" + action + "\""; String cmd = "open url \"" + action + "\"";
......
...@@ -77,6 +77,9 @@ public class JopOpWindow extends JPanel { ...@@ -77,6 +77,9 @@ public class JopOpWindow extends JPanel {
button = new OpWindButton( session, "", "Help", button = new OpWindButton( session, "", "Help",
OpWindButton.HELP); OpWindButton.HELP);
this.add( button); this.add( button);
button = new OpWindButton( session, "", "Proview",
OpWindButton.PROVIEW);
this.add( button);
this.add( new JSeparator()); this.add( new JSeparator());
CdhrString sretName = null; CdhrString sretName = null;
...@@ -143,6 +146,7 @@ public class JopOpWindow extends JPanel { ...@@ -143,6 +146,7 @@ public class JopOpWindow extends JPanel {
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 HELP = 6;
public static final int PROVIEW = 7;
JopSession session; JopSession session;
String action; String action;
int type; int type;
...@@ -176,8 +180,11 @@ public class JopOpWindow extends JPanel { ...@@ -176,8 +180,11 @@ public class JopOpWindow extends JPanel {
case HELP: case HELP:
session.executeCommand("help index"); session.executeCommand("help index");
break; break;
case PROVIEW:
session.executeCommand("open url \"$pwr_doc/index.html\"");
break;
case WEBGRAPH: case WEBGRAPH:
session.openGraphFrame( action, instance, scrollbar); session.openGraphFrame( action, instance, scrollbar, false);
break; break;
case WEBLINK: case WEBLINK:
String cmd = "open url \"" + action + "\""; String cmd = "open url \"" + action + "\"";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment