[Scribus] some more rubbish
Paul
paul
Sun Dec 21 23:04:09 CET 2003
Hi,
> Thank you, that's a good one
A couple of comments...
myplugin.h
Why is all the code extern "C"? - Qt is purely a C++ library, so using
it in C is likely to cause major headaches. Telling it extern "C" means
to compile it as an external C source.
I would say it should read
#include <scribus.h>
extern void Run(QWidget *d, ScribusApp *plug);
extern QString Name();
extern int Type();
Now the final one could be extern "C", but it's unlikely to be
Also, if you have a lot of extern C stuff, you're better off with
extern "C" {
//
//
}
rather than a pile of separates.
There is also no header called Scribus.h - it's scribus.h
Other than that, this simple example ain't bad. It's certainly well
documented :-)
TTFN
Paul
--
One OS to fool them all
One browser to find them
One email client to bring them all
And through security holes, blind them...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://nashi.altmuehlnet.de/pipermail/scribus/attachments/20031221/db000c77/attachment.pgp
More information about the scribus
mailing list