blob: 63f305ae1f65b9f8418fc97b09067be61b26b875 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
//
// C++ Implementation: kmftqtdesignerplugin
//
// Description:
//
//
// Author: Christian Hubinger <chubinger@irrsinnig.org>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "kmftqtdesignerplugin.h"
// TQt includes
// Prokject includes
#include "kmfipv4addresswidget.h"
namespace KMF {
TQ_EXPORT_PLUGIN( KMFTQTDesignerPlugin )
KMFTQTDesignerPlugin::KMFTQTDesignerPlugin()
: TQWidgetPlugin() {}
KMFTQTDesignerPlugin::~KMFTQTDesignerPlugin() {}
TQStringList KMFTQTDesignerPlugin::keys() const {
TQStringList list;
list << "KMFIPv4AddressWidget";
return list;
}
TQWidget* KMFTQTDesignerPlugin::create ( const TQString &key, TQWidget* parent, const char* name ) {
if ( key == "KMFIPv4AddressWidget" )
return new KMFIPv4AddressWidget ( parent, name );
return 0;
}
TQString KMFTQTDesignerPlugin::group ( const TQString& feature ) const {
if ( feature == "KMFIPv4AddressWidget" )
return "Input";
return TQString();
}
TQIconSet KMFTQTDesignerPlugin::iconSet ( const TQString& ) const {
return TQIconSet ( TQPixmap ( TQString("filechooser_pixmap") ) );
}
TQString KMFTQTDesignerPlugin::includeFile ( const TQString& feature ) const {
if ( feature == "KMFIPv4AddressWidget" )
return "kmfipv4addresswidget.h";
return TQString();
}
TQString KMFTQTDesignerPlugin::toolTip ( const TQString& feature ) const {
if ( feature == "KMFIPv4AddressWidget" )
return "File Chooser Widget";
return TQString();
}
TQString KMFTQTDesignerPlugin::whatsThis ( const TQString& feature ) const {
if ( feature == "KMFIPv4AddressWidget" )
return "A widget to change an IPv4 Address";
return TQString();
}
bool KMFTQTDesignerPlugin::isContainer ( const TQString& ) const {
return FALSE;
}
}
|