Methodes of interest

Christoph Cullmann cullmann at babylon2k.de
Sun May 26 18:38:04 UTC 2002


Hi,
2 new global functions to create Documents/Editor parts just from given 
library name:

Document *KTextEditor::createDocument ( const char* libname, QObject *parent = 
0, const char *name = 0 );

Editor *KTextEditor::createEditor ( const char* libname, QWidget *parentWidget 
= 0, const char *widgetName = 0, QObject *parent = 0, const char *name = 0 );

What we win:
 - looks nice ;)
 - short
 - does give back the right kind of pointers, if no factory can be create or   
   the factory don't create any object/right object, 0 returned

What we lose ;)
 - the chance of missusing dyn. casts ;) 


-- 
Christoph Cullmann
Kate/KDE developer
cullmann at kde.org
http://kate.kde.org




More information about the KDevelop-devel mailing list