[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdesdk/kate/plugins/externaltools
From: Dominik Haumann <dhdev () gmx ! de>
Date: 2008-03-31 22:54:02
Message-ID: 1207004042.174157.9143.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 792384 by dhaumann:
register the KateExternalToolsCommand again in the CommandInterface.
M +7 -17 kateexternaltoolsplugin.cpp
--- trunk/KDE/kdesdk/kate/plugins/externaltools/kateexternaltoolsplugin.cpp \
#792383:792384 @@ -25,6 +25,8 @@
#include <kiconloader.h>
#include <ktexteditor/document.h>
#include <ktexteditor/view.h>
+#include <ktexteditor/editor.h>
+#include <kate/application.h>
#include <kparts/part.h>
#include <kaction.h>
@@ -57,6 +59,11 @@
if (KAuthorized::authorizeKAction("shell_access"))
{
+ KTextEditor::CommandInterface* cmdIface =
+ qobject_cast<KTextEditor::CommandInterface*>( Kate::application()->editor() );
+ if( cmdIface )
+ cmdIface->registerCommand( KateExternalToolsCommand::self() );
+
externalTools = new KateExternalToolsMenuAction( i18n("External Tools"), \
actionCollection(), mainWindow, mainWindow ); \
actionCollection()->addAction("tools_external", externalTools);
externalTools->setWhatsThis( i18n("Launch external helper applications") );
@@ -71,21 +78,4 @@
KateExternalToolsPluginView::~KateExternalToolsPluginView ()
{}
-/*
- if ( KAuthorized::authorize("shell_access") )
- {
- KTextEditor::CommandInterface* cmdIface =
- qobject_cast<KTextEditor::CommandInterface*>( \
KateDocManager::self()->editor() );
- if( cmdIface )
- cmdIface->registerCommand( KateExternalToolsCommand::self() );
- }
-
- if ( KAuthorized::authorize("shell_access") )
- {
- externalTools = new KateExternalToolsMenuAction( i18n("External Tools"), this, \
this );
- actionCollection()->addAction( "tools_external", externalTools );
- externalTools->setWhatsThis( i18n("Launch external helper applications") );
- }
- */
// kate: space-indent on; indent-width 2; replace-tabs on;
-
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic