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
cbbe4b71
Commit
cbbe4b71
authored
Mar 07, 2018
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wb vrepext copy/paste bugfix
parent
fc7404cf
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
29 additions
and
10 deletions
+29
-10
wb/lib/wb/src/wb_session.cpp
wb/lib/wb/src/wb_session.cpp
+6
-1
wb/lib/wb/src/wb_treeexport.h
wb/lib/wb/src/wb_treeexport.h
+2
-1
wb/lib/wb/src/wb_vrepced.h
wb/lib/wb/src/wb_vrepced.h
+2
-1
wb/lib/wb/src/wb_vrepdb.h
wb/lib/wb/src/wb_vrepdb.h
+2
-1
wb/lib/wb/src/wb_vrepdbms.h
wb/lib/wb/src/wb_vrepdbms.h
+2
-1
wb/lib/wb/src/wb_vrepdbs.h
wb/lib/wb/src/wb_vrepdbs.h
+2
-1
wb/lib/wb/src/wb_vrepext.h
wb/lib/wb/src/wb_vrepext.h
+2
-1
wb/lib/wb/src/wb_vrepmem.h
wb/lib/wb/src/wb_vrepmem.h
+2
-1
wb/lib/wb/src/wb_vrepref.h
wb/lib/wb/src/wb_vrepref.h
+2
-1
wb/lib/wb/src/wb_vrepwbl.h
wb/lib/wb/src/wb_vrepwbl.h
+2
-1
wb/lib/wb/src/wb_wtt.cpp
wb/lib/wb/src/wb_wtt.cpp
+5
-0
No files found.
wb/lib/wb/src/wb_session.cpp
View file @
cbbe4b71
...
...
@@ -406,6 +406,11 @@ bool wb_session::copyOset( pwr_sAttrRef *arp, bool keepref, bool keepsym, bool i
pwr_tVid
vid
;
m_sts
=
LDH__SUCCESS
;
if
(
!
m_vrep
->
exportTreeIsImplemented
())
{
m_sts
=
LDH__NYI
;
return
false
;
}
// Avoid copying objects in plcprograms
pwr_sAttrRef
*
ap
=
arp
;
while
(
cdh_ObjidIsNotNull
(
ap
->
Objid
))
{
...
...
@@ -1156,4 +1161,4 @@ bool wb_session::commit()
}
return
m_srep
->
commit
(
&
m_sts
);
}
\ No newline at end of file
}
wb/lib/wb/src/wb_treeexport.h
View file @
cbbe4b71
...
...
@@ -44,8 +44,9 @@ class wb_treeexport
public:
virtual
bool
exportTree
(
wb_treeimport
&
i
,
pwr_tOid
oid
)
=
0
;
virtual
bool
exportTreeIsImplemented
()
=
0
;
virtual
~
wb_treeexport
()
{}
};
#endif
\ No newline at end of file
#endif
wb/lib/wb/src/wb_vrepced.h
View file @
cbbe4b71
...
...
@@ -178,6 +178,7 @@ public:
virtual
bool
exportDocBlock
(
wb_import
&
i
)
{
return
m_vrep
->
exportDocBlock
(
i
);}
virtual
bool
exportMeta
(
wb_import
&
i
)
{
return
m_vrep
->
exportMeta
(
i
);}
virtual
bool
exportTree
(
wb_treeimport
&
i
,
pwr_tOid
oid
)
{
return
m_vrep
->
exportTree
(
i
,
oid
);}
virtual
bool
exportTreeIsImplemented
()
{
return
m_vrep
->
exportTreeIsImplemented
();}
virtual
bool
importTreeObject
(
wb_merep
*
merep
,
pwr_tOid
oid
,
pwr_tCid
cid
,
pwr_tOid
poid
,
pwr_tOid
boid
,
const
char
*
name
,
pwr_mClassDef
flags
,
size_t
rbSize
,
size_t
dbSize
,
void
*
rbody
,
void
*
dbody
)
{
...
...
@@ -220,4 +221,4 @@ public:
};
#endif
\ No newline at end of file
#endif
wb/lib/wb/src/wb_vrepdb.h
View file @
cbbe4b71
...
...
@@ -233,6 +233,7 @@ public:
virtual
bool
exportMeta
(
wb_import
&
e
);
virtual
bool
exportTree
(
wb_treeimport
&
i
,
pwr_tOid
oid
);
virtual
bool
exportTreeIsImplemented
()
{
return
true
;}
bool
exportTreeHelper
(
wb_treeimport
&
i
,
pwr_tOid
oid
,
bool
isRoot
);
virtual
bool
importTree
(
bool
keepref
,
bool
keepsym
)
{
return
false
;}
virtual
bool
importTreeObject
(
wb_merep
*
merep
,
pwr_tOid
oid
,
pwr_tCid
cid
,
pwr_tOid
poid
,
...
...
@@ -263,4 +264,4 @@ public:
//pwr_tStatus checkObject(pwr_tOid oid, pwr_tCid cid);
}
;
#endif
\ No newline at end of file
#endif
wb/lib/wb/src/wb_vrepdbms.h
View file @
cbbe4b71
...
...
@@ -234,6 +234,7 @@ public:
virtual
bool
exportMeta
(
wb_import
&
e
);
virtual
bool
exportTree
(
wb_treeimport
&
i
,
pwr_tOid
oid
);
virtual
bool
exportTreeIsImplemented
()
{
return
true
;}
bool
exportTreeHelper
(
wb_treeimport
&
i
,
pwr_tOid
oid
,
bool
isRoot
);
virtual
bool
importTree
(
bool
keepref
,
bool
keepsym
)
{
return
false
;}
virtual
bool
importTreeObject
(
wb_merep
*
merep
,
pwr_tOid
oid
,
pwr_tCid
cid
,
pwr_tOid
poid
,
...
...
@@ -265,4 +266,4 @@ public:
}
;
#endif
#endif
\ No newline at end of file
#endif
wb/lib/wb/src/wb_vrepdbs.h
View file @
cbbe4b71
...
...
@@ -179,6 +179,7 @@ public:
virtual
bool
exportDocBlock
(
wb_import
&
e
);
virtual
bool
exportMeta
(
wb_import
&
e
);
virtual
bool
exportTree
(
wb_treeimport
&
i
,
pwr_tOid
oid
);
virtual
bool
exportTreeIsImplemented
()
{
return
true
;}
bool
exportTreeObject
(
wb_treeimport
&
i
,
dbs_sObject
*
op
,
bool
isRoot
);
virtual
bool
importTree
(
bool
keepref
,
bool
keepsym
)
{
return
false
;}
virtual
bool
importTreeObject
(
wb_merep
*
merep
,
pwr_tOid
oid
,
pwr_tCid
cid
,
pwr_tOid
poid
,
...
...
@@ -202,4 +203,4 @@ public:
};
#endif
\ No newline at end of file
#endif
wb/lib/wb/src/wb_vrepext.h
View file @
cbbe4b71
...
...
@@ -287,6 +287,7 @@ public:
virtual
bool
exportDocBlock
(
wb_import
&
i
)
{
return
false
;}
virtual
bool
exportMeta
(
wb_import
&
i
)
{
return
false
;}
virtual
bool
exportTree
(
wb_treeimport
&
i
,
pwr_tOid
oid
)
{
return
false
;}
virtual
bool
exportTreeIsImplemented
()
{
return
false
;}
bool
exportPaste
(
wb_treeimport
&
i
,
pwr_tOid
destination
,
ldh_eDest
destcode
,
bool
keepoid
,
pwr_tOid
**
rootlist
)
{
return
false
;}
virtual
bool
importTree
(
bool
keepref
,
bool
keepsym
)
{
return
false
;}
...
...
@@ -324,4 +325,4 @@ public:
void
cashe_remove
(
pwr_tOix
oix
);
};
#endif
\ No newline at end of file
#endif
wb/lib/wb/src/wb_vrepmem.h
View file @
cbbe4b71
...
...
@@ -383,6 +383,7 @@ public:
virtual
bool
exportDocBlock
(
wb_import
&
i
);
virtual
bool
exportMeta
(
wb_import
&
i
);
virtual
bool
exportTree
(
wb_treeimport
&
i
,
pwr_tOid
oid
);
virtual
bool
exportTreeIsImplemented
()
{
return
true
;}
bool
exportPaste
(
wb_treeimport
&
i
,
pwr_tOid
destination
,
ldh_eDest
destcode
,
bool
keepoid
,
wb_recix
*
recix
,
pwr_tOid
**
rootlist
);
virtual
bool
importTreeObject
(
wb_merep
*
merep
,
pwr_tOid
oid
,
pwr_tCid
cid
,
pwr_tOid
poid
,
...
...
@@ -435,4 +436,4 @@ public:
};
#endif
\ No newline at end of file
#endif
wb/lib/wb/src/wb_vrepref.h
View file @
cbbe4b71
...
...
@@ -159,6 +159,7 @@ public:
virtual
bool
exportDocBlock
(
wb_import
&
i
)
{
return
false
;}
virtual
bool
exportMeta
(
wb_import
&
i
)
{
return
false
;}
virtual
bool
exportTree
(
wb_treeimport
&
i
,
pwr_tOid
oid
)
{
return
false
;}
virtual
bool
exportTreeIsImplemented
()
{
return
false
;}
bool
exportPaste
(
wb_treeimport
&
i
,
pwr_tOid
destination
,
ldh_eDest
destcode
,
bool
keepoid
,
pwr_tOid
**
rootlist
)
{
return
false
;}
virtual
bool
importTreeObject
(
wb_merep
*
merep
,
pwr_tOid
oid
,
pwr_tCid
cid
,
pwr_tOid
poid
,
...
...
@@ -187,4 +188,4 @@ public:
// virtual bool importMeta(dbs_sMenv *mep) { return false;}
};
#endif
\ No newline at end of file
#endif
wb/lib/wb/src/wb_vrepwbl.h
View file @
cbbe4b71
...
...
@@ -233,6 +233,7 @@ public:
virtual
bool
exportDocBlock
(
wb_import
&
i
);
virtual
bool
exportMeta
(
wb_import
&
i
);
virtual
bool
exportTree
(
wb_treeimport
&
i
,
pwr_tOid
oid
);
virtual
bool
exportTreeIsImplemented
()
{
return
true
;}
virtual
bool
importTree
(
bool
keepref
,
bool
keepsym
)
{
return
false
;}
virtual
bool
importTreeObject
(
wb_merep
*
merep
,
pwr_tOid
oid
,
pwr_tCid
cid
,
pwr_tOid
poid
,
pwr_tOid
boid
,
const
char
*
name
,
pwr_mClassDef
flags
,
...
...
@@ -251,4 +252,4 @@ public:
virtual
const
char
*
fileName
()
{
return
""
;}
};
#endif
\ No newline at end of file
#endif
wb/lib/wb/src/wb_wtt.cpp
View file @
cbbe4b71
...
...
@@ -1193,6 +1193,11 @@ void Wtt::activate_paste()
sts
=
ldh_Paste
(
ldhses
,
sel_list2
->
Objid
,
ldh_eDest_After
,
0
,
0
,
0
);
reset_cursor
();
if
(
EVEN
(
sts
))
{
message
(
'E'
,
wnav_get_message
(
sts
));
return
;
}
if
(
(
sel_cnt1
==
1
&&
sel_is_attr1
[
0
]
==
0
)
||
(
sel_cnt2
==
1
&&
sel_is_attr2
[
0
]
==
0
))
{
pwr_tOid
oid
;
...
...
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