You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.1 KiB
67 lines
1.1 KiB
15 years ago
|
%{CPP_TEMPLATE}
|
||
|
|
||
13 years ago
|
#include <tqlayout.h>
|
||
15 years ago
|
|
||
|
#include <klocale.h>
|
||
|
#include <kglobal.h>
|
||
|
#include <kparts/genericfactory.h>
|
||
|
|
||
|
#include "%{APPNAMELC}.h"
|
||
|
|
||
14 years ago
|
typedef KGenericFactory<%{APPNAME}, TQWidget> %{APPNAME}Factory;
|
||
15 years ago
|
K_EXPORT_COMPONENT_FACTORY( kcm_%{APPNAME}, %{APPNAME}Factory("kcm%{APPNAMELC}"))
|
||
|
|
||
13 years ago
|
%{APPNAME}::%{APPNAME}(TQWidget *parent, const char *name, const TQStringList&)
|
||
12 years ago
|
: TDECModule(parent, name), myAboutData(0)
|
||
15 years ago
|
{
|
||
|
// place widgets here
|
||
|
load();
|
||
|
};
|
||
|
|
||
|
|
||
|
%{APPNAME}::~%{APPNAME}()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
|
||
|
void %{APPNAME}::load()
|
||
|
{
|
||
|
// insert your loading code here...
|
||
|
}
|
||
|
|
||
|
|
||
|
void %{APPNAME}::defaults()
|
||
|
{
|
||
|
// insert your default settings code here...
|
||
|
emit changed(true);
|
||
|
}
|
||
|
|
||
|
|
||
|
void %{APPNAME}::save()
|
||
|
{
|
||
|
// insert your saving code here...
|
||
|
emit changed(true);
|
||
|
}
|
||
|
|
||
|
|
||
|
int %{APPNAME}::buttons()
|
||
|
{
|
||
12 years ago
|
return TDECModule::Default|TDECModule::Apply|TDECModule::Help;
|
||
15 years ago
|
}
|
||
|
|
||
|
|
||
|
void %{APPNAME}::configChanged()
|
||
|
{
|
||
|
// insert your saving code here...
|
||
|
emit changed(true);
|
||
|
}
|
||
|
|
||
|
|
||
14 years ago
|
TQString %{APPNAME}::quickHelp() const
|
||
15 years ago
|
{
|
||
|
return i18n("Helpful information about the %{APPNAMELC} module.");
|
||
|
}
|
||
|
|
||
|
|
||
|
#include "%{APPNAMELC}.moc"
|