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
599ba28d
Commit
599ba28d
authored
Aug 18, 2014
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Xtt default OpPlace changed from name 'OpDefault' to attribute IsDefaultOp in OpPlace object
parent
070021c9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
17 deletions
+16
-17
src/wbl/pwrb/src/pwrb_c_opplace.wb_load
src/wbl/pwrb/src/pwrb_c_opplace.wb_load
+6
-5
wb/lib/wb/src/wb_c_opplace.cpp
wb/lib/wb/src/wb_c_opplace.cpp
+5
-0
xtt/exe/rt_xtt/src/xtt_main.cpp
xtt/exe/rt_xtt/src/xtt_main.cpp
+5
-12
No files found.
src/wbl/pwrb/src/pwrb_c_opplace.wb_load
View file @
599ba28d
...
@@ -331,13 +331,14 @@ SObject pwrb:Class
...
@@ -331,13 +331,14 @@ SObject pwrb:Class
EndBody
EndBody
EndObject
EndObject
!/**
!/**
! Obsolete from V4.7.0.
! @Summary Used as default OpPlace if no specific OpPlace is specified.
! An OpPlace object can be specified as an argument to rt_xtt when
! rt_xtt is started. If no OpPlace is specified, the OpPlace object
! where IsDefaultOp is set, will be used.
!*/
!*/
Object
OpNumber $Attribute 2
Object
IsDefaultOp $Attribute 50
Body SysBody
Body SysBody
Attr TypeRef = "pwrs:Type-$Int32"
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags |= PWR_MASK_INVISIBLE
Attr Flags |= PWR_MASK_RTHIDE
EndBody
EndBody
EndObject
EndObject
EndObject
EndObject
...
...
wb/lib/wb/src/wb_c_opplace.cpp
View file @
599ba28d
...
@@ -53,6 +53,7 @@ static pwr_tStatus PostCreate (
...
@@ -53,6 +53,7 @@ static pwr_tStatus PostCreate (
pwr_tStatus
sts
;
pwr_tStatus
sts
;
pwr_tObjName
name
;
pwr_tObjName
name
;
pwr_tMask
value
=
1
;
pwr_tMask
value
=
1
;
pwr_tBoolean
bvalue
=
1
;
int
size
;
int
size
;
sts
=
ldh_ObjidToName
(
Session
,
Object
,
ldh_eName_Object
,
sts
=
ldh_ObjidToName
(
Session
,
Object
,
ldh_eName_Object
,
...
@@ -65,6 +66,10 @@ static pwr_tStatus PostCreate (
...
@@ -65,6 +66,10 @@ static pwr_tStatus PostCreate (
sts
=
ldh_SetObjectPar
(
Session
,
Object
,
"RtBody"
,
sts
=
ldh_SetObjectPar
(
Session
,
Object
,
"RtBody"
,
"OpWindLayout"
,
(
char
*
)
&
value
,
sizeof
(
value
));
"OpWindLayout"
,
(
char
*
)
&
value
,
sizeof
(
value
));
if
(
EVEN
(
sts
))
return
sts
;
if
(
EVEN
(
sts
))
return
sts
;
sts
=
ldh_SetObjectPar
(
Session
,
Object
,
"RtBody"
,
"IsDefaultOp"
,
(
char
*
)
&
value
,
sizeof
(
bvalue
));
if
(
EVEN
(
sts
))
return
sts
;
}
}
return
PWRS__SUCCESS
;
return
PWRS__SUCCESS
;
...
...
xtt/exe/rt_xtt/src/xtt_main.cpp
View file @
599ba28d
...
@@ -696,7 +696,6 @@ Xtt::Xtt( int *argc, char **argv[], int *return_sts) :
...
@@ -696,7 +696,6 @@ Xtt::Xtt( int *argc, char **argv[], int *return_sts) :
if
(
select_opplace
)
{
if
(
select_opplace
)
{
// Check if there is only one single opplace
// Check if there is only one single opplace
pwr_tOName
fullname
;
pwr_tOName
fullname
;
pwr_tObjName
name
;
pwr_tStatus
sts
;
pwr_tStatus
sts
;
pwr_tOid
oid
;
pwr_tOid
oid
;
...
@@ -705,9 +704,6 @@ Xtt::Xtt( int *argc, char **argv[], int *return_sts) :
...
@@ -705,9 +704,6 @@ Xtt::Xtt( int *argc, char **argv[], int *return_sts) :
for
(
sts
=
gdh_GetClassList
(
pwr_cClass_OpPlace
,
&
oid
);
for
(
sts
=
gdh_GetClassList
(
pwr_cClass_OpPlace
,
&
oid
);
ODD
(
sts
);
ODD
(
sts
);
sts
=
gdh_GetNextObject
(
oid
,
&
oid
))
{
sts
=
gdh_GetNextObject
(
oid
,
&
oid
))
{
sts
=
gdh_ObjidToName
(
oid
,
name
,
sizeof
(
name
),
cdh_mName_object
);
if
(
EVEN
(
sts
)
||
cdh_NoCaseStrcmp
(
name
,
"opdefault"
)
==
0
)
continue
;
sts
=
gdh_ObjidToName
(
oid
,
fullname
,
sizeof
(
fullname
),
cdh_mName_volumeStrict
);
sts
=
gdh_ObjidToName
(
oid
,
fullname
,
sizeof
(
fullname
),
cdh_mName_volumeStrict
);
if
(
EVEN
(
sts
))
continue
;
if
(
EVEN
(
sts
))
continue
;
...
@@ -726,8 +722,10 @@ Xtt::Xtt( int *argc, char **argv[], int *return_sts) :
...
@@ -726,8 +722,10 @@ Xtt::Xtt( int *argc, char **argv[], int *return_sts) :
for
(
sts
=
gdh_GetClassList
(
pwr_cClass_OpPlace
,
&
oid
);
for
(
sts
=
gdh_GetClassList
(
pwr_cClass_OpPlace
,
&
oid
);
ODD
(
sts
);
ODD
(
sts
);
sts
=
gdh_GetNextObject
(
oid
,
&
oid
))
{
sts
=
gdh_GetNextObject
(
oid
,
&
oid
))
{
sts
=
gdh_ObjidToName
(
oid
,
name
,
sizeof
(
name
),
cdh_mName_object
);
pwr_sClass_OpPlace
*
opp
;
if
(
ODD
(
sts
)
&&
cdh_NoCaseStrcmp
(
name
,
"opdefault"
)
==
0
)
{
sts
=
gdh_ObjidToPointer
(
oid
,
(
void
**
)
&
opp
);
if
(
ODD
(
sts
)
&&
opp
->
IsDefaultOp
)
{
sts
=
gdh_ObjidToName
(
oid
,
name
,
sizeof
(
name
),
cdh_mName_volumeStrict
);
sts
=
gdh_ObjidToName
(
oid
,
name
,
sizeof
(
name
),
cdh_mName_volumeStrict
);
if
(
EVEN
(
sts
))
exit
(
sts
);
if
(
EVEN
(
sts
))
exit
(
sts
);
...
@@ -844,13 +842,12 @@ void Xtt::opplace_selected_cb( void *ctx, char *text)
...
@@ -844,13 +842,12 @@ void Xtt::opplace_selected_cb( void *ctx, char *text)
if
(
xtt
->
op_close_button
)
if
(
xtt
->
op_close_button
)
strcat
(
cmd
,
" /closebutton"
);
strcat
(
cmd
,
" /closebutton"
);
xtt
->
xnav
->
command
(
cmd
);
xtt
->
xnav
->
command
(
cmd
);
xtt
->
xnav
->
load_ev_from_opplace
();
//
xtt->xnav->load_ev_from_opplace();
}
}
void
Xtt
::
list_opplace
()
void
Xtt
::
list_opplace
()
{
{
pwr_tOName
texts
[
20
];
pwr_tOName
texts
[
20
];
pwr_tObjName
name
;
pwr_tStatus
sts
;
pwr_tStatus
sts
;
pwr_tOid
oid
;
pwr_tOid
oid
;
pwr_tVid
root_vid
;
pwr_tVid
root_vid
;
...
@@ -867,10 +864,6 @@ void Xtt::list_opplace()
...
@@ -867,10 +864,6 @@ void Xtt::list_opplace()
sts
=
gdh_ObjidToName
(
oid
,
texts
[
i
],
sizeof
(
texts
[
0
]),
cdh_mName_volumeStrict
);
sts
=
gdh_ObjidToName
(
oid
,
texts
[
i
],
sizeof
(
texts
[
0
]),
cdh_mName_volumeStrict
);
if
(
EVEN
(
sts
))
continue
;
if
(
EVEN
(
sts
))
continue
;
sts
=
gdh_ObjidToName
(
oid
,
name
,
sizeof
(
name
),
cdh_mName_object
);
if
(
EVEN
(
sts
)
||
cdh_NoCaseStrcmp
(
name
,
"opdefault"
)
==
0
)
continue
;
i
++
;
i
++
;
if
(
i
==
(
int
)(
sizeof
(
texts
)
/
sizeof
(
texts
[
0
])
-
2
))
if
(
i
==
(
int
)(
sizeof
(
texts
)
/
sizeof
(
texts
[
0
])
-
2
))
break
;
break
;
...
...
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