Author: ianmacarthur
Date: 2010-04-02 08:29:42 -0700 (Fri, 02 Apr 2010)
New Revision: 7409
Log:
Fix a few minor typos in the wrapper description text
Modified:
branches/branch-3.0/README.123.wrapper
Modified: branches/branch-3.0/README.123.wrapper
===================================================================
--- branches/branch-3.0/README.123.wrapper 2010-04-02 12:38:57 UTC (rev
7408)
+++ branches/branch-3.0/README.123.wrapper 2010-04-02 15:29:42 UTC (rev
7409)
@@ -4,15 +4,15 @@
This is a short description on how to convert a former FLTK1 header into the
FLTK3 equivalent:
-- find the new class name and rename the file (note cpital .H vs. lower case
.h):
+- find the new class name and rename the file (note capital .H to lower case
.h):
svn mv fltk3/Fl_Widget.H fltk3/Widget.h
- update the Copyright year
- make all initial #ifdef unique (Fl_Widget_H become Fltk3_Widget_H)
-- rename all occurences of the class name in the header (Fl_Widget becomes
Widget)
+- rename all occurrences of the class name in the header (Fl_Widget becomes
Widget)
- rename all include file references in fltk3/ and src/ (Fl_Widget.H becomes
Widget.h)
- rename all class references in fltk3/ and src/ (Fl_Widget becomes
fltk3::Widget)
- rename other types (enums) that may be hiding in this file (Fl_When becomes
fltk3::When)
-- wrap all cahnges in "namespace fltk3 {" and "} // namespace fltk3"
+- wrap all changes in "namespace fltk3 {" and "} // namespace fltk3"
- compile and fix bugs
@@ -24,9 +24,9 @@
becomes Fltk1_Widget_H)
- include the corresponding class header (#include <fltk3/Widget.h>)
- remove all comments except the header and footer
-- remove all private memebrs of the class
+- remove all private members of the class
- remove all member variables, only keep member methods
-- create a protected ctor for the class (add "proteted: Fl_Widget() {}")
+- create a protected ctor for the class (add "protected: Fl_Widget() {}")
- remove all code from all methods including ctor and dtor
- add the following code to all ctor's:
{
@@ -36,7 +36,7 @@
- a group constructor needs the additional line in FLTK1 only:
begin();
- comment out all other methods ("#if 0 // fltk123:" and "#endif")
-- do the same thing for all files that are included b this header!
+- do the same thing for all files that are included by this header!
- test compile with a test program that includes this header
- fix compile issues
- uncomment individual functions and make them call the original class:
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit