summaryrefslogtreecommitdiffstats
path: root/kapptemplate
diff options
context:
space:
mode:
Diffstat (limited to 'kapptemplate')
-rw-r--r--kapptemplate/README2
-rw-r--r--kapptemplate/kpartplugin/plugin-Makefile.am8
-rw-r--r--kapptemplate/kpartplugin/plugin_app.cpp6
3 files changed, 8 insertions, 8 deletions
diff --git a/kapptemplate/README b/kapptemplate/README
index d48a2a3d..eb20be57 100644
--- a/kapptemplate/README
+++ b/kapptemplate/README
@@ -23,7 +23,7 @@ Currently, KAppTemplate creates four different types of frameworks:
3) KPart plugin
- This creates a sample KPart plugin that acts on KHTMLPart
+ This creates a sample KPart plugin that acts on TDEHTMLPart
4) Existing application conversion
diff --git a/kapptemplate/kpartplugin/plugin-Makefile.am b/kapptemplate/kpartplugin/plugin-Makefile.am
index 21b5ccdd..7c01ef75 100644
--- a/kapptemplate/kpartplugin/plugin-Makefile.am
+++ b/kapptemplate/kpartplugin/plugin-Makefile.am
@@ -8,13 +8,13 @@ KDE_ICON = ${APP_NAME_LC}
# Install this plugin in the KDE modules directory
kde_module_LTLIBRARIES = lib${APP_NAME_LC}plugin.la
-# This is all standard. Remove the LIB_KHTML reference if you are not
-# using the KHTML Part
+# This is all standard. Remove the LIB_TDEHTML reference if you are not
+# using the TDEHTML Part
lib${APP_NAME_LC}plugin_la_SOURCES = plugin_${APP_NAME_LC}.cpp
-lib${APP_NAME_LC}plugin_la_LIBADD = \$(LIB_KPARTS) \$(LIB_KHTML)
+lib${APP_NAME_LC}plugin_la_LIBADD = \$(LIB_KPARTS) \$(LIB_TDEHTML)
lib${APP_NAME_LC}plugin_la_LDFLAGS = -module \$(KDE_PLUGIN) \$(all_libraries)
# Install the .rc file in the Part's directory (in this case, the part
-# is KHTMLPart)
+# is TDEHTMLPart)
pluginsdir = \$(kde_datadir)/tdehtml/kpartplugins
plugins_DATA = plugin_${APP_NAME_LC}.rc
diff --git a/kapptemplate/kpartplugin/plugin_app.cpp b/kapptemplate/kpartplugin/plugin_app.cpp
index 98a44cad..29388b46 100644
--- a/kapptemplate/kpartplugin/plugin_app.cpp
+++ b/kapptemplate/kpartplugin/plugin_app.cpp
@@ -30,10 +30,10 @@ Plugin${APP_NAME}::~Plugin${APP_NAME}()
void Plugin${APP_NAME}::slotAction()
{
- // This plugin assumes KHTMLPart. If your plugin can handle more
+ // This plugin assumes TDEHTMLPart. If your plugin can handle more
// than this or a different Part than this, simply delete or
// change the following block.
- if ( !parent()->inherits("KHTMLPart") )
+ if ( !parent()->inherits("TDEHTMLPart") )
{
TQString title( i18n( "Cannot Translate Source" ) );
TQString text( i18n( "You cannot translate anything except web pages "
@@ -45,7 +45,7 @@ void Plugin${APP_NAME}::slotAction()
// Get a handle on our parent so we may get the necessary data for
// processing
- KHTMLPart *part = dynamic_cast<KHTMLPart *>(parent());
+ TDEHTMLPart *part = dynamic_cast<TDEHTMLPart *>(parent());
// This plugin only uses the URL. You may use whatever data you
// need.