>There is a partial guide in lib/Wx/NewClass.pod (waiting for your 
>feedback to be improved ;-)
Hi Mattia,

Sorry this turned out to be so long!

Well first of all, after having put this off for a long time, I've taken the
plunge.  So I'm starting to give this NewClass.pod some attention by trying
to wrap wxRichTextPrintout.  After not understanding that it was all in POD,
it was much easier than I anticipated.

Here are my thoughts so far:

1) For new users (like me) some indication that I should use a pod-reader (I
used pod2html) to read this file and that the code is in C++ (if it is) and
what sort of editor and compiler I would need (if I need one).  I'm going to
try to use a native Kubuntu text editor (kate), so I'll let you know if it
works.

2) CONSTANTS is misspelled in :

see L</"COSTANTS"> and L</"EVENTS">.

3) Also links generated by pod2html don't take you anywhere for:

see L</"COSTANTS"> and L</"EVENTS">.

see L</"OVERLOADING">.

see L</"VIRTUAL METHODS">.

I guess maybe you planned to write these sections, but didn't get round to
it.

4) Something about how the directory structure is set up and what directory
to put the xsp file in would be nice.  Eg "Take a copy of the SVN download
directory as a starting point and look for or create an appropriate
directory" (in this case ext/richtext/XS) 

I have copied RichTextPrinting.xsp to RichTextPrintout.xsp and done a global
search/replace for RichTextPrinting to RichTextPrintout.

"Update the constructor from the line in NewClass.h and also copy the
methods to NewClass.xsp while deleting anything in curly brackets (together
with the brackets) and inserting a semi-colon in it's place."

and then re-run the install process.

5) The line "Add a new file XS/NewClass.xsp and update the MANIFEST. Choose
a relevant .xs file in the top level directory (es. Controls.xs) and add
this line:"
 should read "...(eg. Con...".

6) I also think I need to update (or create) a file RichText.xs with a new
type map entry (also typemap.xsp) (which I've done).

Finally, I couldn't see and entry in typemap.tmpl for RichTextPrinting to
copy for RichTextPrintout.  Does it not need to be there?

So now the only thing I haven't finished is the VIRTUAL METHODS.  Any clues
on this and any comments on what I've done so far would be welcome (in the
interim I'm going to use the definition without the word 'virtual' which is
how it seems to be for wxPrint.  Does there need to be some sort of stub to
stop the compiler from crashing?).

Have a good day.

Regards

Steve


Reply via email to