Difference between revisions of "Creating a new SPObject"
Jump to navigation
Jump to search
(reverted spam) |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Copy sp-skeleton.cpp and sp-skeleton.h to your files, and rename everything from /skeleton/i to your name. | |||
Add your object name to the list in sp-object-repr.cpp's repr_name_entries, and add the new .h file to the include list at the top. This will let your new SPObject have it's functions get called when a Repr appears in the tree. | |||
Revision as of 07:49, 18 October 2005
Copy sp-skeleton.cpp and sp-skeleton.h to your files, and rename everything from /skeleton/i to your name.
Add your object name to the list in sp-object-repr.cpp's repr_name_entries, and add the new .h file to the include list at the top. This will let your new SPObject have it's functions get called when a Repr appears in the tree.