blob: 2d5a56e24381f30a22b46f615b309630c1c54d0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/* This template is based off of the KOffice example written by Torben Weis <[email protected]
It was converted to a KDevelop template by Ian Reinhart Geiser <[email protected]>
*/
#ifndef %{APPNAME}_FACTORY_H
#define %{APPNAME}_FACTORY_H
#include <koFactory.h>
class TDEInstance;
class TDEAboutData;
class %{APPNAME}Factory : public KoFactory
{
Q_OBJECT
public:
%{APPNAME}Factory( TQObject* parent = 0, const char* name = 0 );
~%{APPNAME}Factory();
virtual KParts::Part *createPartObject( TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject *parent = 0, const char *name = 0, const char *classname = "KoDocument", const TQStringList &args = TQStringList() );
static TDEInstance* global();
// _Creates_ a TDEAboutData but doesn't keep ownership
static TDEAboutData* aboutData();
private:
static TDEInstance* s_global;
static TDEAboutData* s_aboutData;
};
#endif
|