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
a8f5a0a8
Commit
a8f5a0a8
authored
May 24, 2006
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
3f9ec11d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
68 deletions
+3
-68
wb/changelog.txt
wb/changelog.txt
+3
-0
wb/lib/wb/src/wb_c_objbodydef.c
wb/lib/wb/src/wb_c_objbodydef.c
+0
-68
No files found.
wb/changelog.txt
View file @
a8f5a0a8
...
@@ -27,3 +27,6 @@
...
@@ -27,3 +27,6 @@
060519 lw wb Update of instance objects when a class is modified (without reload).
060519 lw wb Update of instance objects when a class is modified (without reload).
060522 cs wtt Update Class added in menu, and new commands: 'update classes' and
060522 cs wtt Update Class added in menu, and new commands: 'update classes' and
'check classes'.
'check classes'.
060524 cs wb StructName in ObjBodyDef inserted in PostCreate method.
060524 cs wtt Bugfix in classeditor. Change of classname caused unidentified class of
the template object of the class.
\ No newline at end of file
wb/lib/wb/src/wb_c_objbodydef.c
deleted
100644 → 0
View file @
3f9ec11d
/*
* Proview $Id: wb_c_objbodydef.c,v 1.3 2005-09-06 10:43:30 claes Exp $
* Copyright (C) 2005 SSAB Oxelösund AB.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with the program, if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
**/
/* wb_c_classdef.c -- work bench methods of the ClassDef class. */
#include <string.h>
#include "wb_pwrs.h"
#include "wb_pwrs_msg.h"
#include "wb_ldh.h"
static
pwr_tStatus
AnteCreate
(
ldh_tSesContext
Session
,
pwr_tObjid
Father
,
pwr_tClassId
Class
)
{
pwr_tCid
cid
;
pwr_tStatus
sts
;
if
(
cdh_ObjidIsNull
(
Father
))
return
PWRS__POSOBJBODYDEF
;
// Check that the father is of class ClassDef
sts
=
ldh_GetObjectClass
(
Session
,
Father
,
&
cid
);
if
(
EVEN
(
sts
)
||
cid
!=
pwr_eClass_ClassDef
)
return
PWRS__POSOBJBODYDEF
;
return
PWRS__SUCCESS
;
}
static
pwr_tStatus
AnteMove
(
ldh_tSesContext
Session
,
pwr_tObjid
Object
,
pwr_tObjid
Father
,
pwr_tObjid
OldFather
)
{
// Check that that the father is the same
if
(
!
(
Father
.
oix
==
OldFather
.
oix
&&
Father
.
vid
==
OldFather
.
vid
))
return
PWRS__MOVEBODY
;
return
PWRS__SUCCESS
;
}
pwr_dExport
pwr_BindMethods
(
$
ObjBodyDef
)
=
{
pwr_BindMethod
(
AnteCreate
),
pwr_BindMethod
(
AnteMove
),
pwr_NullMethod
};
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