21 #ifndef DESIGNER_PARTPLUGIN_H
22 #define DESIGNER_PARTPLUGIN_H
24 #include <tqwidgetplugin.h>
26 namespace KParts {
class ReadOnlyPart; }
35 TQ_PROPERTY( TQString url READ url WRITE setURL )
36 TQ_PROPERTY( TQString mimetype READ mimetype WRITE setMimetype )
40 TQString url()
const {
return m_url; }
41 void setURL(
const TQString& url ) { m_url = url; load(); }
44 TQString mimetype()
const {
return m_mimetype; }
45 void setMimetype(
const TQString& mimetype ) { m_mimetype = mimetype; load(); }
53 KParts::ReadOnlyPart* m_part;
61 TQStringList keys()
const;
62 TQWidget * create(
const TQString & key, TQWidget * parent,
const char * name );
63 TQString group(
const TQString & key )
const;
65 TQString includeFile(
const TQString & key )
const;
66 TQString toolTip(
const TQString & key )
const;
67 TQString whatsThis(
const TQString & key )
const;
68 bool isContainer(
const TQString & key )
const;
Generic part loader, able to view any kind of file for which a KParts::ReadOnlyPart is available.