|
|
@ -30,10 +30,10 @@ Plugin${APP_NAME}::~Plugin${APP_NAME}()
|
|
|
|
|
|
|
|
|
|
|
|
void Plugin${APP_NAME}::slotAction()
|
|
|
|
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
|
|
|
|
// than this or a different Part than this, simply delete or
|
|
|
|
// change the following block.
|
|
|
|
// change the following block.
|
|
|
|
if ( !parent()->inherits("KHTMLPart") )
|
|
|
|
if ( !parent()->inherits("TDEHTMLPart") )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQString title( i18n( "Cannot Translate Source" ) );
|
|
|
|
TQString title( i18n( "Cannot Translate Source" ) );
|
|
|
|
TQString text( i18n( "You cannot translate anything except web pages "
|
|
|
|
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
|
|
|
|
// Get a handle on our parent so we may get the necessary data for
|
|
|
|
// processing
|
|
|
|
// 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
|
|
|
|
// This plugin only uses the URL. You may use whatever data you
|
|
|
|
// need.
|
|
|
|
// need.
|
|
|
|