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
acf2a1bc
Commit
acf2a1bc
authored
Nov 04, 2011
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Xtt opplace, starup applications added, and layout option hide navigator
parent
ce3413a5
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
337 additions
and
3 deletions
+337
-3
src/wbl/pwrb/src/pwrb_c_opplace.wb_load
src/wbl/pwrb/src/pwrb_c_opplace.wb_load
+291
-0
src/wbl/pwrb/src/pwrb_td_opwindlayoutmask.wb_load
src/wbl/pwrb/src/pwrb_td_opwindlayoutmask.wb_load
+10
-0
xtt/lib/xtt/gtk/xtt_op_gtk.cpp
xtt/lib/xtt/gtk/xtt_op_gtk.cpp
+3
-1
xtt/lib/xtt/src/xtt_op.cpp
xtt/lib/xtt/src/xtt_op.cpp
+30
-2
xtt/lib/xtt/src/xtt_op.h
xtt/lib/xtt/src/xtt_op.h
+2
-0
xtt/lib/xtt/src/xtt_xnav_command.cpp
xtt/lib/xtt/src/xtt_xnav_command.cpp
+1
-0
No files found.
src/wbl/pwrb/src/pwrb_c_opplace.wb_load
View file @
acf2a1bc
This diff is collapsed.
Click to expand it.
src/wbl/pwrb/src/pwrb_td_opwindlayoutmask.wb_load
View file @
acf2a1bc
...
...
@@ -111,6 +111,16 @@ SObject pwrb:Type
Attr Value = 32
EndBody
EndObject
!/**
! Hide the Navigator.
!*/
Object HideNavigator $Bit
Body SysBody
Attr PgmName = "HideNavigator"
Attr Text = "HideNavigator"
Attr Value = 64
EndBody
EndObject
EndObject
EndSObject
...
...
xtt/lib/xtt/gtk/xtt_op_gtk.cpp
View file @
acf2a1bc
...
...
@@ -961,6 +961,8 @@ int OpGtk::configure( char *opplace_str)
if
(
opplace_p
->
StartJavaProcess
)
start_jop
=
1
;
// Store autostart array
memcpy
(
autostart_aref
,
opplace_p
->
AutoStart
,
sizeof
(
autostart_aref
));
// Examine Graph objects
for
(
i
=
0
;
i
<
sizeof
(
opplace_p
->
FastAvail
)
/
sizeof
(
opplace_p
->
FastAvail
[
0
]);
i
++
)
{
...
...
xtt/lib/xtt/src/xtt_op.cpp
View file @
acf2a1bc
...
...
@@ -94,8 +94,8 @@ void Op::scan()
int
Op
::
appl_action
(
int
idx
)
{
char
cmd
[
80
]
;
char
name
[
80
]
;
pwr_tCmd
cmd
;
pwr_tAName
name
;
int
sts
;
if
(
command_cb
)
{
...
...
@@ -363,3 +363,31 @@ void Op::sup_scan( void *data)
op
->
sup_timerid
->
add
(
time
,
sup_scan
,
op
);
}
void
Op
::
appl_startup
()
{
pwr_tCmd
cmd
;
pwr_tAName
name
;
int
sts
;
if
(
command_cb
)
{
if
(
layout_mask
&
pwr_mOpWindLayoutMask_HideNavigator
)
{
strcpy
(
cmd
,
"close navigator"
);
command_cb
(
parent_ctx
,
cmd
);
}
for
(
unsigned
int
i
=
0
;
i
<
sizeof
(
autostart_aref
)
/
sizeof
(
autostart_aref
[
0
]);
i
++
)
{
if
(
cdh_ObjidIsNotNull
(
autostart_aref
[
i
].
Objid
))
{
sts
=
gdh_AttrrefToName
(
&
autostart_aref
[
i
],
name
,
sizeof
(
name
),
cdh_mName_volumeStrict
);
if
(
ODD
(
sts
))
{
strcpy
(
cmd
,
"ope gra/obj="
);
strcat
(
cmd
,
name
);
command_cb
(
parent_ctx
,
cmd
);
}
}
}
}
}
xtt/lib/xtt/src/xtt_op.h
View file @
acf2a1bc
...
...
@@ -98,6 +98,7 @@ class Op {
pwr_tAttrRef
button_aref
[
25
];
int
button_cnt
;
int
start_jop
;
pwr_tAttrRef
autostart_aref
[
25
];
Jop
*
jop
;
void
(
*
command_cb
)(
void
*
,
char
*
);
void
(
*
map_cb
)(
void
*
);
...
...
@@ -129,6 +130,7 @@ class Op {
int
appl_action
(
int
idx
);
int
jop_command
(
char
*
command
);
int
sup_init
();
void
appl_startup
();
void
activate_exit
();
void
activate_aalarm_ack
();
void
activate_balarm_ack
();
...
...
xtt/lib/xtt/src/xtt_xnav_command.cpp
View file @
acf2a1bc
...
...
@@ -2867,6 +2867,7 @@ static int xnav_open_func( void *client_data,
xnav
->
op
->
add_close_button
();
strcpy
(
xnav
->
opplace_name
,
opplace_str
);
xnav
->
op
->
set_title
(
xnav
->
user
);
xnav
->
op
->
appl_startup
();
// Load eventlist
if
(
xnav
->
ev
)
{
...
...
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