Commit dcc84934 authored by Claes Sjofors's avatar Claes Sjofors

Web operator window, possibility to remove Help and Proview buttons

parent 7cb5aca6
......@@ -146,12 +146,25 @@ public class JopOpWindow extends JPanel {
this.add( navigatorButton);
}
helpButton = new OpWindButton( session, "", JopLang.transl("Help"),
s = sret.str + ".DisableHelp";
iret = en.gdh.getObjectInfoInt( s);
if ( iret.evenSts()) return;
if ( iret.value != 0) {
helpButton = new OpWindButton( session, "", JopLang.transl("Help"),
OpWindButton.HELP);
this.add( helpButton);
button = new OpWindButton( session, "", "Proview",
OpWindButton.PROVIEW);
this.add( button);
this.add( helpButton);
}
s = sret.str + ".DisableProview";
iret = en.gdh.getObjectInfoInt( s);
if ( iret.evenSts()) return;
if ( iret.value != 0) {
button = new OpWindButton( session, "", "Proview",
OpWindButton.PROVIEW);
this.add( button);
}
this.add( new JSeparator());
CdhrString sretName = null;
......
......@@ -146,6 +146,24 @@ SObject pwrb:Class
EndBody
EndObject
!/**
! Disable the Help button.
! The Help button contains a link to the project help text.
!*/
Object DisableHelp $Attribute 16
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
EndBody
EndObject
!/**
! Disable the Proview button.
! The Proview button contains a link to the Proview web documentation page.
!*/
Object DisableProview $Attribute 17
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
EndBody
EndObject
!/**
! Obsolete since V4.7.0.
!*/
Object UserObject $Attribute 10
......
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